Menu

1 / 3

Mapping Monolith Dependencies With AI Agents Before You Extract a Service

DEV Community: microservices·Sam Amderson·3 days ago
#mm7gy6Lc
#devtomicroservices#devto#dev#tables#module
Long article (1639 words) — no AI summary yet.
Reading 0:00
15s threshold

Most teams pick the first service to extract by feel, then learn in week three that it shares tables with half the codebase. Good monolith dependency mapping AI work reverses that order.

Agents read the code and propose the graph, a script checks every edge, and an engineer chooses the first service from numbers instead of instinct.

This article builds the checking part step by step: a small Python scanner that maps imports and shared database tables, then ranks modules by how hard they will be to pull out.

What does a monolith dependency map need to find?

Whether you run monolith dependency mapping AI or do it by hand, it needs two kinds of edges. Code edges are the imports and calls between modules. Data edges are the tables that more than one module reads or writes.

The second kind is the one teams skip, and skipping it is how a split ends up as a distributed monolith.

Quick check: If two modules never import each other, are they independent? Not if they write the same table.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.