Database-per-service is the textbook answer for microservices. It sounds clean. Each service owns its data. No hidden coupling. Schema changes stay local. Then you need to join data across services, and the textbook runs out of pages.
The hidden costs of isolation
Cross-service joins become API calls or event replays. Transactions that used to be one SQL statement become distributed sagas. Your data team, which used to query the warehouse, now has to build ETL pipelines from every service’s private database.
When shared databases make sense
Small teams. Tightly coupled domains. Applications where analytical queries dominate. A well-designed shared schema with clear ownership per table can give you most of the benefits of separation without the distributed systems headache.
The hybrid approach
The best real-world answer is usually hybrid: services that need strict isolation get their own DB, services that share a tightly coupled domain share one. The wrong answer is picking a rule and applying it uniformly.
This is the kind of architectural call we help clients navigate under New Products and Legacy Modernization.