Quick revision
The short answer
A shared database gives easy joins and strong consistency but couples every team's schema, releases and scaling; database-per-service gives autonomy and independent scaling but adds asynchronous integration, reconciliation and operating cost. For executives we frame it in business terms: delivery speed, outage blast radius, hiring, and the cost of consistency bugs in money flows. We recommend a staged path, logical ownership first, then API-only access, then physical separation where it pays off, and we name the investment it needs.
What to remember
In this answer, we framed the shared database versus database-per-service choice for executives. We compared what each gives and costs, translated it into delivery speed, outage blast radius, hiring and the cost of consistency bugs in money flows, proposed a staged path of logical ownership, then API-only access, then physical separation where it pays off, named the platform and skills investment, and set evidence to decide whether to continue after the first year.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
A shared database gives easy joins and strong consistency but couples every team's schema, releases and scaling; database-per-service gives autonomy and independent scaling but adds asynchronous integration, reconciliation and operating cost. For executives we frame it in business terms: delivery speed, outage blast radius, hiring, and the cost of consistency bugs in money flows. We recommend a staged path, logical ownership first, then API-only access, then physical separation where it pays off, and we name the investment it needs.
Why this question is asked
This is one of the largest technical decisions a company makes, and it is irreversible in practice: years of work go into either direction. Executives do not need a lecture on CAP; they need to understand what each option does to delivery speed, risk and cost, and what we are asking them to fund. Interviewers ask it at the twenty-year level to see whether we can translate architecture into business consequences and propose a path that limits risk. In this answer, we will compare the two options honestly, translate them into the terms executives decide on, lay out a staged path over five years, list the investment, and say what evidence would change course.
1What Each Option Really Gives Us
In the shared database model, many teams read and write one large relational database. Its strength is real: any query can join any table, and a single transaction can change data owned by several teams with full ACID guarantees, atomic, consistent, isolated and durable. Reporting is easy. The cost is coupling. A column rename needs coordination across every team that reads it, migrations need a release train, one team's heavy query slows everyone, and the database can only scale as one unit.
In database-per-service, each service owns its data and others reach it only through its API or events. Teams change schemas and release on their own schedule, and each store scales and fails separately. The cost moves elsewhere: cross-service operations become asynchronous and eventually consistent, we need outboxes, idempotent consumers, sagas and reconciliation, analytics needs a separate platform to join data again, and there are many more databases to operate.
| Concern | Shared database | Database per service |
|---|---|---|
| Consistency | one ACID transaction across teams | strong inside a service, eventual between |
| Change | coordinated schema changes, release train | each team changes and ships alone |
| Failure | one database incident affects all teams | an incident stays in one service |
| Scaling | scale the whole database together | scale each store to its own load |
| Running cost | one platform, mature tooling | events, CDC, many stores, data platform |
2Translating It Into Business Terms
Executives decide on outcomes, so we restate the table. Delivery speed: how many weeks a typical change waits on coordination today, for example the average schema change needing sign-off from four teams and two weeks of lead time. Outage blast radius: in the last year, how many customer-facing incidents started in the shared database and how many teams they took down. Hiring and scale: whether we plan to grow from 15 to 40 teams, because coordination cost grows faster than team count.
Then the other side honestly. The cost of consistency bugs: with eventual consistency, money-related flows such as payments and refunds become harder to get right, and a duplicated refund costs real money and regulatory attention. And the cost of the platform and skills we need. A framing that only shows benefits will lose trust the first time a saga bug reaches the news. Our recommendation should show we have priced both sides.
3A Staged Path Rather Than a Big Bang
The worst option is a two-year rewrite that splits everything at once. Instead, we propose stages that each deliver value and each can stop. Stage one is logical ownership: every table gets one owning team, recorded in a catalogue, and only that team writes it. Nothing moves physically, but we learn where the real boundaries are and where cross-team writes exist.
Stage two is access through APIs and events: other teams stop reading owned tables directly, and use the owner's API or its events, with an outbox or CDC providing those events. This is where most of the coupling disappears, and it is fully reversible. Stage three is physical separation, moving a service's tables to its own database, done only where it pays off, such as a domain with very different load, availability needs or release pace. Some domains may reasonably stay in a shared database for years.
- Year 1: logical ownershipone owning team per table, write access enforced
- Year 1-2: API and event accessoutbox or CDC, no cross-team table reads
- Payoff clear for a domain?load, availability, release paceYesYear 2-5: separate its databaseNoKeep it shared, owned
- Review at each stagelead time, incidents, cost
4 steps in order. Play them, or step through them one at a time.
Each stage delivers value on its own and can be paused.
4The Investment We Must Name
Database-per-service fails when companies adopt the architecture without the platform. So we list it explicitly: an event platform such as managed Kafka with schema registry and compatibility rules; CDC tooling such as Debezium so existing applications can publish changes without dual writes; shared libraries for outbox, idempotent consumers and sagas; a data platform, a warehouse or lakehouse fed by those events, so analytics can still join data across domains; and observability with tracing and lag metrics.
And skills: engineers need training in distributed data patterns, and we need a platform team, perhaps 6 to 10 people, to own the shared pieces. Putting a rough cost on each, with the expected savings in lead time and incidents, lets the executive team compare a real investment with a real return.
5Follow-up questions
What evidence after the first year would make you stop or accelerate?
I would set targets before starting. Accelerate if change lead time for the teams that moved to API access drops, say from two weeks to a few days, incidents that cross team boundaries fall, and the platform pieces are adopted without heroics. Stop or slow down if consistency incidents in money flows rise, if teams spend more time on integration plumbing than on features, or if the platform cost runs well above plan. Because each stage stands on its own, stopping after stage two still leaves us better off than before.
Why not keep the shared database and just add read replicas?
Replicas solve read load, which is only one of the problems. They do nothing for schema coupling, coordinated releases or the blast radius of a bad migration, and those are usually what slows delivery. If load were the only issue, replicas and partitioning would be a cheaper answer.
How do you keep reporting working once data is split?
Through a data platform that receives every domain's changes as events or CDC streams and lets analysts join them. Reporting then reads from the platform, not from service databases, which also stops reports from loading production systems.
6Conclusion
In this answer, we framed the shared database versus database-per-service choice for executives. We compared what each gives and costs, translated it into delivery speed, outage blast radius, hiring and the cost of consistency bugs in money flows, proposed a staged path of logical ownership, then API-only access, then physical separation where it pays off, named the platform and skills investment, and set evidence to decide whether to continue after the first year.
Open with
I would avoid presenting this as microservices good or bad, and frame it as a trade in business terms over five years. The shared database gives us easy joins and strong consistency, but it couples everyone: schema changes need coordination, releases wait on each other, one bad query or migration affects every team, and it scales as one unit.
Then, if they want more
Database per service gives autonomy and independent scaling and contains outages, but we pay with asynchronous integration, sagas, reconciliation and more to operate.
For the executive team I would put numbers on both sides: today's lead time for a schema change, incidents rooted in the shared database and how many teams they hit, our hiring plans, and the risk that eventual consistency adds to payment and refund flows. My recommendation would be staged. First, logical ownership, one owning team per table.
Second, other teams access data only through the owner's APIs or events, using an outbox or CDC. Third, physically separate databases only where a domain clearly benefits.
I would name the investment, an event platform with schema registry, CDC tooling, shared libraries, a data platform for analytics joins, and a platform team plus training, and I would agree the first-year evidence for accelerating or stopping before we start.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring Cloud documentation, Resilience4j documentation
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "The company is choosing between keeping a single large relational database shared by...": https://scrivio-interview-library.netlify.app/spring-boot/distributed-data/3c2d4a55a9/