Database per service
Each microservice owns its data store privately; others access the data only through its API or events.
Keeping each service's data private enforces loose coupling and lets teams choose the best storage technology. It is a defining trait of microservices. The consequence is that cross-service queries and transactions need patterns such as API composition, CQRS views and sagas.
- Type
- Architecture pattern
- Category
- Architecture
- License
- Free
- Pricing
- Free
- Level
- Advanced
- Technologies
- architecture, databases, microservices
- Last verified
- 26 Nov 2026
What Database per service is used for
- Microservice data ownership
Strengths
- Loose coupling
- Polyglot persistence
Limitations
- Cross-service queries and consistency are harder
How it relates to other tools
- Database per service part of Microservices architecture
- Database per service works with Saga pattern