Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Most distributed SQL and cloud databases advertise snapshot isolation or serializable as their default, while traditional databases default to READ COMMITTED. As a senior technical leader choosing a database direction for the next decade, how do you weigh isolation guarantees against latency and cost?

Try it yourself

Isolation levels: what a second read sees

Step through two transactions and see exactly when read committed and repeatable read give different answers.

Read this example as text

T1 at read committed

  1. T1 begins. Transaction T1 starts with isolation level READ COMMITTED. The row holds balance 100.
  2. T1 reads the balance. T1 reads 100. Under read committed each statement looks afresh at what is committed when the statement starts.
  3. T2 changes the row. A second transaction, T2, sets the balance to 150 but has not committed. The database keeps both versions: 100 is still the committed one.
  4. T1 reads again, before T2 commits. T1 reads 100 again. Neither level shows another transaction's uncommitted change, so there is no dirty read. T1 does not wait for T2 either.
  5. T2 commits. T2 commits. The committed balance is now 150.
  6. T1 reads a third time. T1 reads 150. The same query, inside one transaction, returned 100 and then 150. This is a non-repeatable read, and read committed allows it.
  7. T1 commits. T1 ends. A transaction that starts now reads 150 at either level.

T1 read 100, 100, then 150: a non-repeatable read.

T1 at repeatable read

  1. T1 begins. Transaction T1 starts with isolation level REPEATABLE READ. The row holds balance 100.
  2. T1 reads the balance. T1 reads 100. Under repeatable read this first read fixes T1's snapshot: T1 will keep seeing the data as it was committed at this moment.
  3. T2 changes the row. A second transaction, T2, sets the balance to 150 but has not committed. The database keeps both versions: 100 is still the committed one.
  4. T1 reads again, before T2 commits. T1 reads 100 again. Neither level shows another transaction's uncommitted change, so there is no dirty read. T1 does not wait for T2 either.
  5. T2 commits. T2 commits. The committed balance is now 150.
  6. T1 reads a third time. T1 still reads 100. Its snapshot was fixed at its first read, so T2's commit is invisible to it. The read is repeatable.
  7. T1 commits. T1 ends. A transaction that starts now reads 150 at either level.

T1 read 100 three times: its reads were repeatable.

What this example leaves out
  • Modelled on PostgreSQL and MySQL InnoDB, where a plain SELECT reads a snapshot and never waits for a writer.
  • SQL Server's default read committed uses locks instead: there, T1's second read would wait for T2 to finish.
  • Only reads are compared. What happens when T1 also writes the row (a lost update, or an error in PostgreSQL) is not modelled.

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.

Step throughWhere a distributed serializable write spends its time
  1. Applicationsends the transaction
  2. Gateway noderoutes to the leaseholder of each range
  3. Consensusquorum of replicas must agree, one round trip
  4. Cross-region hoponly if data leaders live in other regions, 60 to 150 ms
  5. 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.

A decision table for the direction
FactorTraditional SQL, READ COMMITTEDDistributed SQL, SERIALIZABLE
Anomaly bugspossible, teams must reason about themprevented, retries required
Single-region latencylowesta few ms more for consensus
Multi-region writesneeds app-level designbuilt in, latency by placement
Operations and skillswidely knownspecialist knowledge
Lock-in and exitopen source optionsvaries, 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.

What to say in the interviewAbout 80 seconds aloud

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.
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/