How to Split a Shared Database Safely in a Monolith Migration
Split a shared database by separating ownership first: map coupling, isolate schemas, pick CDC, outbox or dual writes, then cut over with rollback at each step.
14 min read
Category
When one deployable is the right answer, how to structure it, and how to migrate in either direction.
Split a shared database by separating ownership first: map coupling, isolate schemas, pick CDC, outbox or dual writes, then cut over with rollback at each step.
14 min read
Learn when modules in a modular monolith should call each other through narrow APIs, when to use in-process events, and how to enforce boundaries.
14 min read
Design a modular monolith database in PostgreSQL: schema per module, enforced data ownership, cross-module foreign keys, safe cross-module queries and migrations.
14 min read
Learn how to enforce module boundaries in a monolith using dependency rules, package visibility, build units, and architecture tests that run in CI.
13 min read
Learn when to split a monolith: how to confirm scaling bottlenecks, team contention, and deploy coupling, what to try first, and how to extract safely.
14 min read
Learn when moving from microservices to a monolith makes sense, how to merge services into a modular monolith incrementally, and what it costs.
14 min read
Learn to scale a monolith by profiling bottlenecks, then applying vertical scaling, stateless horizontal scaling, caching, read replicas and async jobs.
17 min read
Learn what microservices really cost, how to build and scale a modular monolith, and the concrete signals that justify extracting a service.
12 min read
Learn when a modular monolith beats microservices, how to enforce module boundaries, and which team size, deployment, and scaling needs justify a split.
18 min read
Run a monolith to microservices migration as small, reversible extractions behind a routing layer, with data ownership, parity checks and clear exit points.
14 min read
Learn how monolith vs microservices cost breaks down across infrastructure, operational overhead and team time, and how to find your break-even point.
13 min read
Size database connection pools from real database capacity and a global connection budget, tune HikariCP, use PgBouncer, and diagnose connection exhaustion.
14 min read