
A 3ms UPDATE across two regions: inside the Aurora DSQL paper
The paper reports a 2.1ms SELECT in a cluster spanning two AWS regions whose round trip is 14.4ms. How the architecture pulls that off, what the authors admit it costs, and why the operational argument lands harder on small deployments than large ones.
AWS has published the full Aurora DSQL architecture paper on arXiv. Here are three p99 latencies from it, for a cluster spanning us-east-1 and us-east-2 with a witness in us-west-2: a primary key SELECT in 2.1 ms, an UPDATE in 3.4 ms, and a COMMIT in 29.2 ms.
The number that makes those interesting is the one next to them. A network round trip between those two regions takes 14.4 ms at p99, so individual statements finish in a fraction of one round trip, in a database that is strongly consistent and active-active across both.
There is no trick to it: statements never leave the region, and only COMMIT does, exactly once per transaction. Almost everything else in the design follows from that, including the parts that hurt.
This is a walkthrough of how it works and what it costs, not a substitute for the paper. Four ideas carry the whole thing:
- Coordination gets paid once, at commit, instead of per statement
- Reads coordinate with nothing, thanks to precision clocks and MVCC
- Atomicity is delegated to a log rather than built into the commit protocol
- A bounded transaction lifetime replaces global bookkeeping
If you read nothing else here, read the third one.
Before the mechanics, follow one transaction, because the rest of this article is a zoom on each of its steps. You open it, and the query processor stamps it with a start time taken from a precision clock. You run a SELECT, and storage hands back rows as they existed at that exact timestamp, served from a replica in your own availability zone. You run an UPDATE, and nothing is written anywhere: the change sits in the query processor's memory. You COMMIT, and only now does the transaction leave the machine, first to ask an adjudicator whether anyone else touched those same keys, then to land in a log that makes it durable. Everything before the commit stayed local, and that asymmetry is what the rest of this explains.

The argument before the architecture
Before any mechanics, the paper spends its first pages on application architecture rather than database internals, and that framing justifies everything after it. The picture is the default shape of an Amazon service: a stateless, auto-scaling fleet across three availability zones behind a regional database endpoint, with host failures handled by load balancer health checks and datacenter failures by DNS. Concurrency and durability are handed entirely to the database, which is what lets the fleet stay boring. Stretch that across two regions and the application survives losing one, with no operator intervention and no data loss.
The goals follow from that. They wanted nothing for the customer to operate and enough PostgreSQL fidelity that transaction semantics carry over along with the wire protocol. They wanted it to scale to millions of transactions per second and back to zero, run active-active across continents, and stay strongly consistent so nobody has to reason about eventual consistency. They call it "a database of first resort," something you adopt small and keep as you grow. Most of the sharp trade-offs later only look reasonable against that goal.
Where do you pay for coordination
Most distributed SQL writeups explain how to shard SQL. This paper answers a different question, and one of its sections is named for it: where do you pay for coordination, and does that cost grow with scale? Their rule is to refuse any coordination that is not constant time with respect to scale.
So reads coordinate with nothing, writes buffer inside the query processor until you commit, and the single cross-region round trip at commit carries the isolation decision and the durability guarantee together. Contrast that with Spanner and CockroachDB, which the paper groups as pessimistic: they hold distributed lock state, so they coordinate during execution, usually per statement. Figure 5 in the paper shows an unnamed competitor's latency rising in a straight line as you add UPDATE statements to a transaction, while DSQL stays flat and identical in both regions. The practical rule they give is that a commit costs roughly twice the round trip to the nearest other region, and nothing else changes.
Concurrency control is optimistic, following Kung and Robinson's 1981 scheme, and the paper is explicit about dodging OCC's two classic problems. Reads come from an MVCC snapshot, so a transaction never aborts for having read old data. Isolation is snapshot isolation rather than serializability, so only write-write conflicts abort. That matters more than it sounds in OLTP, where most writes are also reads.
The second argument for OCC has nothing to do with throughput, and everything to do with the fact that no client can block another one. The authors report lock contention and lock-retry storms as recurring causes of outages and metastable failures at Amazon, and cross talk between clients as a real source of tail latency. They also mention post mortems where an operator went to lunch still holding a lock. They frame that as a stability property rather than a performance one.
Five components, and what each refuses to do
The system is split into five services, which lets each one change, scale and be isolated on its own terms. The quickest way to learn them is by what each declines to do.
- Query processors run a customized PostgreSQL inside a Firecracker MicroVM, one transaction at a time, and hold no durable state or conversation with each other. A new MicroVM is cloned from a memory snapshot rather than booted, which the paper credits for cutting restore time substantially. They attach at PostgreSQL's Access Method layer, so the buffer pool and lock manager are not in the path at all.
- Storage nodes hold rows and index entries rather than physical pages, which is a deliberate break from Aurora and what allows filtering and aggregation to be pushed down to the data. They answer exactly one kind of question: give me this key range, as of this timestamp. They also never fsync, because durability lives in the Journal and in S3.
- Adjudicators decide whether a transaction may commit and pick its commit time. Each key has at most one adjudicator at a time, they store no data, and their sharding is independent of storage sharding.
- Journal is an existing internal AWS service, also behind S3, DynamoDB and MemoryDB. Each journal is a durable, ordered, atomic stream that knows nothing about SQL, keys or isolation, and its atomicity turns out to hold up the entire commit protocol.
- Crossbars merge-sort journals into one total order per shard, so storage can apply the stream without coordinating with anyone.

Underneath all of it sits an economic argument worth a paragraph. Each physical machine carries thousands of customer workloads, and packing uncorrelated tenants together cuts the peak-to-average load ratio at roughly the square root of their number. Infrastructure cost tracks peak while revenue tracks average, so that ratio is where the margin comes from. Isolation is then chosen per component: process isolation where AWS wrote the code in a memory-safe language, and Firecracker where the code is open source or unsafe, which is exactly PostgreSQL's case.
Reads that coordinate with nothing
Every transaction takes a start timestamp from EC2's precision time infrastructure, which is microsecond-accurate with error bounds across regions, and every read asks storage for data as of that timestamp. Storage returns the newest version committed before it, and waits rather than answering if it has not caught up. A heartbeat is what makes that wait safe. Adjudicators advance their commit points in lockstep with physical time, and promise never to commit earlier than they already have, so storage can tell when its data is complete without asking anyone.
The consequences pile up quickly:
- Read replicas are unlimited, because adding one coordinates with nothing
- Reads come from the nearest replica in the same availability zone
- Readers never block anybody, and read-only transactions never abort
- COMMIT on a read-only transaction is a no-op where the query processor just forgets it
- None of this requires you to declare the transaction read-only
In the multi-region case storage additionally waits for journals from every region to pass the read timestamp, which keeps a snapshot valid even if a region disappears right after.
Two further design choices sit behind that read path. DSQL deliberately avoids large coherent caches in compute, because cache coherence is coordination. Aurora PostgreSQL leans on a big local cache on its single writer, and its read replicas keep incoherent caches of their own. That is precisely why such systems hand clients eventual consistency in exchange for read scale. The little that DSQL does cache, notably the catalog inside every query processor, gets its coherence from the commit protocol. Partitioning is by range rather than hash, trading hash's even heat spread for the spatial locality that real OLTP workloads tend to have, and the next section is where they pay for that choice.
The commit, and the best idea in the paper
An UPDATE writes nothing anywhere. It records the intended change locally in the query processor, in the same availability zone as your application. At COMMIT, three things happen at once: check isolation, make the result durable and atomic, and get it everywhere it must be visible.
For one adjudicator the check is a set intersection. Compare the keys this transaction wrote against the union of keys written by everything that committed between its start and commit times, and if they do not intersect it commits. What lands in the journal is a logical post image, meaning the resulting rows plus every index change they imply, which is why storage replicas can apply the stream deterministically without coordinating or even reading first. That buys a neat optimization. For non-unique secondary indexes the conflict check can be skipped entirely, because an index entry is just a primary key moving in or out of a set, and the primary key is already being checked.
When the write set spans several adjudicators it becomes a two-phase commit variant inspired by Warp. The query processor broadcasts prepare to all of them at once. Each votes and returns its local time plus a promise not to commit conflicts for a while. The leader takes the latest of those times as the commit time, and abandons the attempt if it falls after the earliest promise expires.
Here is the part that made me stop and reread. The authors point out this is not atomic commitment at all, but atomic voting on candidacy for commitment. The leader can abandon any time before the journal write without affecting correctness, because atomicity is not something the protocol achieves. The Journal already provides it, since the whole transaction goes in as one atomic write. And because only the leader's journal is written, there is no cross-journal coordination and no fault-tolerant coordinator to build, which sidesteps the problem Gray and Lamport wrote about entirely.

That generalizes past databases. If something in your system already gives you an atomic, ordered, durable append, do not build consensus on top of your business logic. Shrink the protocol to the decision and let the log be the commit point.
Quorum then shows up twice more. The first is that Journal only commits to two regions out of three, so a transaction waits for the nearest second region rather than the farthest. That is how a commit lands near 30 ms while the round trip to us-west-2 is 63 ms. And DSQL does not write to one journal at all: it erasure codes each commit across three in a 2-of-3 scheme, where one parity journal for two of data makes the parity a plain XOR. That takes a journal from 99.99% availability past seven and a half nines, but the stated motivation is latency variance, because a storage replica stalls unless every journal it reads from is available. Needing only two of three is what lets storage stop waiting on the slowest journal. Both mechanisms are the same move at different levels, which is to wait for enough rather than for everyone.
What it costs
Section 8 is called "Lessons from Production" and it is the most useful part of the paper.
- Snapshot isolation admits write skew. Customers get told to design schemas that force write-write conflicts where a business rule matters, and to reach for FOR UPDATE. Textbook snapshot isolation also fails to survive real SQL, since an ALTER TABLE concurrent with an insert can invalidate that insert. Catalog updates therefore get read-write conflict detection and become serializable, and FOR UPDATE and future foreign keys need the same treatment. That answer is worth copying: keep one default level for ordinary DML and strengthen only the operations that need it.
- A transaction may modify at most 3,000 rows and 10 MiB. The justification runs through Little's Law, because big writes force readers to see the world strictly before or after and block everyone queued behind them. The honest note is that customers complained about this limit more than the team expected, mostly during bulk loads.
- Foreign keys did not ship. They were cut for time to market after conversations with large customers who avoid them and small ones who saw little value, and then demand surprised the team.
- Range partitioning has three sharp edges. Sequences, secondary indexes led by a timestamp, and indexes on low cardinality columns like booleans. A hybrid hash-within-range scheme is planned, but the authors write that solving this in general while keeping read locality may not be possible at all.
- Transaction lifetime is capped at five minutes, and that cap is structural rather than a tuning choice. Nothing in the system tracks the set of in-flight transactions, so nobody can compute the oldest snapshot still in use, which means garbage collection cannot be exact. Instead every storage server independently forgets versions older than a fixed age and rejects reads that arrive too late. The authors say plainly this would be unacceptable for analytics, and point those workloads at change data capture.
The paper makes two smaller admissions worth noting. Deadlock is possible during the commit algorithm, though it stays rare because the algorithm is short, and it is handled by aborting and retrying the later transaction. Adjudicator placement is also a control plane optimization that may have no good answer for genuinely active-active workloads with keys spread across regions. And when a network partition forces the choice, DSQL picks consistency over availability, while clients on the majority side of the split keep both.
Clock skew produces the most interesting failure case in the paper. Beyond expected bounds, skew costs linearizability but not isolation, durability or atomicity, so strong snapshot isolation degrades to ordinary snapshot isolation. The property you lose is the one most application code depends on without ever writing it down, which is why they monitor skew several ways, run redundant clock hardware, and treat any skew as a failure.
How they know it works, and who keeps it running
Correctness came from specifying the core protocols in TLA+ and P and model checking them, including checking proposed optimizations before implementing them. Implementation testing is deterministic simulation in the FoundationDB tradition, using a Rust framework they wrote called turmoil, aimed at error handling rather than the happy path. SQL compatibility was fuzzed SQLancer-style, running millions of generated statements against both DSQL and Aurora PostgreSQL and comparing, which caught edge cases in floating point, collations and NULLs. Finally they run fault injection in production, and a slice of those same tests ships to customers through the AWS Fault Injection Service.
Section 7 is the one everybody skips, and it is where the no-operations promise actually lives. It maintains the partition map from key ranges to adjudicators and storage servers. What makes that survivable is that a stale map only costs liveness while correctness holds regardless, because each component can verify for itself whether it owns what it was asked about. A misdirected request gets rejected instead of answered wrongly. It watches reported heat and size and splits shards predictively, before anything is exhausted. Splits do not need to be atomic, because two shards may briefly claim overlapping ranges without breaking anything, and that single relaxation is what keeps scaling simple. The lesson they credit to DynamoDB is that sharding and replication must be controllable independently, otherwise a hot read range cannot be answered by adding replicas.
The closest relative in the literature is FoundationDB. Aurora, Neon and AlloyDB all use distributed storage but keep a single writable leader, and layers like Vitess and Citus scale those out by partitioning the key space across leaders, which usually costs transaction atomicity and isolation.
What I would take from this
Nothing here requires you to be building a database.
- Ask where your system pays for coordination, and whether that cost grows with scale. It catches per-statement locking, per-request leader election, and a lot of distributed workflow code.
- Delegate atomicity instead of implementing it. The multi-adjudicator protocol is small because the log already had the property they needed.
- Make the wrong state safe instead of impossible. A stale partition map is fine because every component can verify ownership itself, and splits need no atomicity because temporary overlap is harmless. That is cheaper than making bad states unreachable.
- Bound what you cannot track. A five minute cap replaced global in-flight transaction state, and unlocked independent cleanup on every storage server.
The paper closes on the argument I did not expect. Dynamo in 2007 and Werner Vogels in 2009 both argued that cloud scale required giving up strong consistency. The DSQL authors say that trade has since moved, thanks to better time distribution, networks, power and cooling, and protocols. Two decades of watching programmers struggle to write correct logic against eventually consistent stores pushed them the rest of the way. So they took linearizability, and report reaching nearly ten times lower read latency and four times lower write latency than the 2007 Dynamo paper did.
Who this is actually for
I have never had to run a database with active-active writes across regions, so a good part of this paper solves a problem I do not have. What I do have is a fleet of ordinary relational databases on AWS. The paper's central promise is aimed squarely there, and it has little to do with speed: the database stops being something anyone operates.
That promise usually gets sold to the largest deployment in the room, and I think it lands harder on the smallest, because the operational floor of a database does not fall with its traffic. A single-leader engine with a large cache on the writer, which is how this paper characterizes Aurora and its relatives, makes a reasonable default, and it stays reasonable right until you have twenty of them. At that point the bill is dominated by twenty version timelines, twenty failover configurations nobody rehearses, and twenty capacity floors that stay funded while the traffic sits near zero. Scaling to zero is worth more there than at the top end, which inverts the way these systems are usually pitched.
Where I would hesitate is the transaction cap. Three thousand rows and ten megabytes is generous for request-scoped work and tight for anything that ingests in batches, and the authors name it as their most frequent complaint. That is the question I would need answered first, well before anything about scale.
Read it yourself
- The paper: Aurora DSQL: Scalable, Multi-Region OLTP
- Marc Brooker's notes on the paper
- Werner Vogels on how the project started
If you only read three sections of it: 2.2 on optimizing for coordination, 5.1.1 on the multi-adjudicator commit, and 7 on the control plane.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article