shared database
One database used directly by several services.
In more detail
It looks convenient but means neither service can change a table alone, so they must release together and can break each other's invariants. The rule is one writer per table and a contract for everyone else.
Related terms
- distributed monolith — A system split into services that still have to be released together, so it has the costs of services and none of the benefits.
- data ownership — The rule that each piece of data has exactly one service or team that writes it and defines what it means.
- API contract — The written promise an API makes about its operations, inputs, outputs and errors, which callers rely on while the code behind it changes.
Taught in
- Monolith Versus Services: The Honest Trade Offs — Scalable System Design & Distributed Architecture