Skip to content

Shared Database

Medium — good to knowArchitecture

ELI5 — The Vibe Check

Shared database is when multiple services all read from and write to the same database. It's simpler than database-per-service but it couples everything together. One service's migration can break another service. It's a shared apartment — convenient but messy.

Real Talk

An integration pattern where multiple services share a single database instance and schema. While simpler than database-per-service (no need for API composition or event synchronization), it creates tight coupling between services, makes independent deployments risky, and prevents polyglot persistence.

When You'll Hear This

"We started with a shared database and it was fine, but now service A's migration keeps breaking service B." / "Shared database is a valid choice for small teams — not every system needs database-per-service."

Made with passive-aggressive love by manoga.digital. Powered by Claude.