Quick revision
The short answer
I would weigh isolation as a cost we pay either in the database or in bugs, and for most business data I would pay it in the database, because developers rarely reason correctly about weak isolation and anomaly bugs are expensive to find. But strong isolation in a distributed database costs latency that depends on where data lives, so I would measure it with our own access patterns, verify what each vendor really guarantees, include operational cost, skills and lock-in in the decision, and expect a mixed estate with a strongly consistent store for invariants.
What to remember
In this answer, we saw that stronger isolation removes classes of bugs developers rarely reason about correctly, while in distributed databases it costs coordination latency that depends on data placement. A good decision measures our own transactions, demands real evidence of what vendors guarantee, weighs operations, skills, migration and lock-in, and usually ends in a mixed estate: a strongly consistent store for invariants and cheaper stores for derived data, with clear ownership of where each kind of data lives.
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.
I would weigh isolation as a cost we pay either in the database or in bugs, and for most business data I would pay it in the database, because developers rarely reason correctly about weak isolation and anomaly bugs are expensive to find. But strong isolation in a distributed database costs latency that depends on where data lives, so I would measure it with our own access patterns, verify what each vendor really guarantees, include operational cost, skills and lock-in in the decision, and expect a mixed estate with a strongly consistent store for invariants.
Why this question is asked
A database direction chosen today shapes how every team writes code for ten years. The isolation default is part of that choice, because whatever the default is becomes the level almost all code runs at. Traditional databases defaulted to READ COMMITTED for throughput; many distributed SQL systems now default to snapshot isolation or serializable. Interviewers ask senior leaders this to see how they reason about trade-offs that cross correctness, latency, money and people. In this answer, we will look at what stronger isolation buys, what it costs in a distributed system, how to verify vendor claims, the non-technical factors, and why the answer is usually a mixed estate.
1Why the Defaults Differ
Isolation is the promise a database makes about how concurrent transactions affect each other. READ COMMITTED, the default in PostgreSQL, Oracle and SQL Server, only promises that we never see uncommitted data. It was chosen decades ago because it lets single-server databases run many transactions with little waiting. Distributed SQL databases, which spread data across many machines and often several regions, chose stronger defaults: CockroachDB defaults to SERIALIZABLE, Spanner offers external consistency, and several others offer snapshot isolation. They had to build coordination between nodes anyway, so a stronger guarantee became the selling point.
2What Stronger Isolation Buys
The main benefit is that whole classes of bugs disappear. With weak isolation, correctness depends on every developer noticing that two requests can interleave: the lost update in a stock counter, the write skew in a booking system, the report that adds up rows from two different moments. In practice most developers do not reason about this correctly, and the bugs are rare in tests and appear only under production load. Each one can cost weeks to diagnose and sometimes money or trust to repair. Under SERIALIZABLE, every transaction that is correct on its own stays correct when run concurrently, so reviews and tests can focus on business logic.
3What It Costs in a Distributed Database
Strong isolation across machines needs coordination. A write must be agreed by a quorum of replicas through a consensus protocol such as Raft or Paxos, and serializable or externally consistent reads may need to wait out clock uncertainty so that timestamps across nodes can be ordered safely. When the replicas sit in one region, that adds a few milliseconds. When a transaction touches data whose leaders are in different regions, it adds cross-region round trips, often 60 to 150 ms each.
So the latency depends far more on data placement than on the isolation level printed in the documentation. A transaction that stays within one region's data can be fast; one that updates a European customer and a US inventory row is slow at any level. That is why I would not decide from vendor benchmarks. I would build a prototype of our three or four hottest transactions, with realistic data placement and contention, and measure p50 and p99 latency, abort rates and cost per thousand transactions.
- Applicationsends the transaction
- Gateway noderoutes to the leaseholder of each range
- Consensusquorum of replicas must agree, one round trip
- Cross-region hoponly if data leaders live in other regions, 60 to 150 ms
- Commit wait or uncertaintysome systems wait out clock skew
5 layers, from the top down. Step through them one at a time.
Placement decides which layers a transaction pays for.
4Checking What the Vendor Really Guarantees
Names are not behaviour. Oracle's SERIALIZABLE is snapshot isolation; MySQL's REPEATABLE READ lets lost updates through; some systems have claimed serializability and had anomalies found by independent tests. So the evaluation requires evidence: the isolation documentation that names which anomalies are prevented, published independent analyses such as Jepsen reports and the vendor's response to them, and our own anomaly tests, for example a write skew test and a lost update test run under load and during a node failure. A vendor that cannot say precisely what happens during a network partition is telling us something.
5The Factors Beyond Isolation
Isolation is one row in the decision table, not the whole table. Operational cost matters: running a distributed database needs different skills, tools and on-call knowledge than PostgreSQL. Skills in the market matter: hiring engineers who know PostgreSQL is easy; hiring for a niche product is harder. Migration effort matters: SQL dialects, ORM support and the effort to rewrite stored procedures. And lock-in matters: a managed proprietary service may be excellent and still leave us with no exit if prices change.
| Factor | Traditional SQL, READ COMMITTED | Distributed SQL, SERIALIZABLE |
|---|---|---|
| Anomaly bugs | possible, teams must reason about them | prevented, retries required |
| Single-region latency | lowest | a few ms more for consensus |
| Multi-region writes | needs app-level design | built in, latency by placement |
| Operations and skills | widely known | specialist knowledge |
| Lock-in and exit | open source options | varies, check licences |
6Why the Answer Is Usually a Mixed Estate
In practice I would expect, and plan for, more than one kind of store. Data that carries invariants, such as balances, inventory, entitlements and orders, belongs in a strongly consistent store, run at SERIALIZABLE or with carefully designed constraints and locks. Derived data, such as search indexes, caches, analytics and recommendation features, can live in cheaper, eventually consistent stores, rebuilt from the source of truth. The leadership work is making ownership clear: which store holds the truth for each kind of data, who may write it, and how derived copies are fed, so that teams do not quietly build invariants on top of weaker stores. I would record the direction as an architecture decision with the measurements behind it and a date to revisit it.
7Follow-up questions
What evidence would you require from a vendor?
Precise documentation of each isolation level and the anomalies it prevents, with behaviour during failures and partitions. Independent test results, ideally a Jepsen analysis, with the vendor's fixes for anything found. Benchmarks on our own workload with realistic placement, contention and a failure injected, reporting p99 latency and abort rates, not only throughput. And references from customers running a similar workload, plus clear pricing for our expected growth so the cost of strong isolation is visible.
Would you choose SERIALIZABLE on a single PostgreSQL server too?
For data with invariants, often yes, as long as transactions are short and every entry point retries on 40001. On one server the cost is mostly abort rate under contention, which we can measure before committing.
How do you avoid a mixed estate turning into chaos?
By writing down, per data domain, the system of record and its consistency level, and by feeding every derived store from that record through events or change data capture rather than dual writes.
8Conclusion
In this answer, we saw that stronger isolation removes classes of bugs developers rarely reason about correctly, while in distributed databases it costs coordination latency that depends on data placement. A good decision measures our own transactions, demands real evidence of what vendors guarantee, weighs operations, skills, migration and lock-in, and usually ends in a mixed estate: a strongly consistent store for invariants and cheaper stores for derived data, with clear ownership of where each kind of data lives.
Open with
I'd start from the fact that isolation is a cost we pay somewhere: either in the database or in bugs. Most developers don't reason correctly about weak isolation, and lost updates or write skew only show up under production load and are expensive to find, so for data with invariants I'd rather pay in the database.
Then, if they want more
But in a distributed database strong isolation means consensus round trips and sometimes waiting out clock uncertainty, and the latency depends mostly on data placement. A transaction within one region might add a few milliseconds; one that spans regions can add a hundred or more.
So I'd measure our hottest transactions on a prototype with realistic placement and contention, looking at p99 latency and abort rates, not vendor benchmarks. I'd also verify what each vendor really guarantees, because names don't match behaviour; Oracle's serializable is snapshot isolation. I'd ask for precise documentation, Jepsen-style independent tests and our own anomaly tests during failures.
Then I'd weigh operational cost, skills in the hiring market, migration effort and lock-in alongside isolation. Realistically we'd end up with a mixed estate: a strongly consistent store for invariants like balances and orders, and cheaper stores for derived data, with clear ownership of which data lives where.
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
- PostgreSQL documentation, MySQL reference manual
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 "Most distributed SQL and cloud databases advertise snapshot isolation or serializable as...": https://scrivio-interview-library.netlify.app/databases/acid-and-isolation/485278d99b/