Package: tackle-dgi
Tackle Data Gravity InsightsTackle Data Gravity Insights is a new way to gain insights into your monolithic application code so that you can better refactor it into domain driven microservices. It takes a wholistic approach to application modernization and refactoring by triangulating between code, and, data, and transactional boundaries.Application modernization is a complex topic with refactoring being the most complicated undertaking. Current tools only look at the application source code or only at the runtime traces when refactoring. This, however, yields a myopic view that doesn't take into account data relationships and transactional scopes. This project hopes to join the three views of application, data, and transactions into a 3D view of the all of the application relationships so that you can easily discover application domains of interest and refactor them into microservices. Accordingly, DGI consists of three key components:1. Call-/Control-/Data-dependency Analysis (code2graph):This is a source code analysis component that extracts various static code interaction features pertaining to object/dataflow dependencies and their respective lifecycle information. It presents this information in a graphical format with Classes asnodesand their dataflow, call-return, and heap-dependency interactionsedges.2. Schema:This component of DGI infers the schema of the underlying databases used in the application. It presents this information in a graphical format with database tables and columns asnodesand their relationships (e.g., foreign key, etc.) asedges.3. Transactions to graph (tx2graph):This component of DGI leveragesTackle-DiVAto perform a data-centric application analysis. It imports a set of target application source files (*.java/xml) and provides following analysis result files. It presents this information in a graphical format with database tables and classes asnodesand their transactional relationships asedges.InstallationTackle Data Gravity Insights is written in Python and can be installed using the Python package managerpip.pipinstall-Utackle-dgiUsageYou will need an instance of Neo4j to store the graphs thatdgicreates. You can start one up in a docker container and set an environment variable to letdgiknow where to find it.dockerrun-d--nameneo4j\-p7474:7474\-p7687:7687\-eNEO4J_AUTH="neo4j:konveyor"\neo4j:4.4.17Save the bolt url for further use:export NEO4J_BOLT_URL="neo4j://neo4j:konveyor@localhost:7687"You can now use thedgicommand to load information about your application into the graph database.Usage: dgi [OPTIONS] COMMAND [ARGS]...

 Tackle Data Gravity Insights

╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --neo4j-bolt  -n  TEXT  Neo4j Bolt URL                                                                               │
│ --quiet       -q        Be more quiet                                                                                │
│ --validate    -v        Validate but don't populate graph                                                            │
│ --clear       -c        Clear graph before loading                                                                   │
│ --help                  Show this message and exit.                                                                  │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ c2g         Code2Graph add various program dependencies (i.e., call return, heap, and data) into the graph           │
│ partition   Partition is a command runs the CARGO algorithm to (re-)partition a monolith into microservices          │
│ s2g         Schema2Graph parses SQL schema (*.DDL file) into the graph                                               │
│ tx2g        Transaction2Graph add edges denoting CRUD operations to the graph.                                       │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯DemoThis is a demonstration of the usage of DGIDemonstrationRunning DGITo run this project please refer to the steps in the getting started guideGetting StartedContributingTo contribute to this project you will need to set up your development environment and set up some files. The steps are in the following file:Set up your Developer Environment