3 places
Page 2 of 8 · 6 costs

The 3-place rule works, and it has 6 costs

Far writes wait about 0.2 seconds, mixed actions are not one transaction, and the global database is a single point.

The gain

The rule removes 3 real things from the call design

In the call design, Ben's app in US West calls the app in Singapore to take a seat. Every region must know every other region.

The 3-place rule needs no such call. Each program talks to 2 databases only: its own, and the global one.

This table lists what goes away:

What the 3-place rule removes.
PartCall design3-place rule
Calls between regionsNeeded, every region knows every regionGone
Link from seat to questForeign key in the owner's regionForeign key in the global database
Code that routes a write to the owner's regionNeeded in the frameworkGone

So the gain is less code and fewer moving parts. No correctness is lost.

Costs 1 and 2

Every far write waits about 0.2 seconds, and the quest owner waits too

A global database sits in one region. Programs in the other 2 regions pay one ocean trip per statement.

The chart shows the wait for one write, by where the writer is:

Wait for one write
Global database in US West; distance simulated on one machine
Own regional database · measured
0.3 ms
Global, writer in US West · under 1 ms
0.9 ms
Global, writer in Frankfurt · simulated
146 ms
Global, writer in Singapore · simulated
187 ms
Global, 4 statements from Singapore · estimate: 4 trips
748 ms
Show as table
ms
Own regional database0.3
Global, writer in US West0.9
Global, writer in Frankfurt146
Global, writer in Singapore187
Global, 4 statements from Singapore748

Waits for one write to the global database, from our own tests, 22 Nov 2026; the last bar is 4 times 187 ms.

Two things stand out. A transaction of 4 separate statements costs 4 trips. Estimate And the wait depends on where the writer lives, not on whose data it is.

So Ana in Singapore now waits 187 ms on her own quest.

In the call design her own quest costs her 0.3 ms.

The guard is rule 1: one global write is one statement or one database function.

Cost 3

One action cannot change a regional and the global database together

A transaction lives in one database. It cannot span 2.

Take Ben paying 50 gems for a seat. His gems live in his regional database. The seat lives in the global database.

Either write can succeed while the other fails. So the action needs 3 steps and a retry, as in the call design.

Cost 4

When the global database is down, shared features stop in every region

The global database is a new part with many dependants. Here is where it fits:

In the call design the same store exists, but it holds only unique names. So less stops when it is down.

Costs 5 and 6

The global bucket grows over time, and private data must stay out of it

"Everything else" is an open door. Each new feature that is hard to place lands in the global database.

Each row there makes a far person wait. After a year most writes could be global, and the 3 regions buy little.

The second risk is law. The global database sits in one country. Health data and chat messages must not leave the home region.

The guards are rules 2 and 3. A row with one owner stays shared. Private data never goes global.

What stays

The rule does not remove weak links between databases

A seat in the global database still points at Ben's account in US West. Those 2 rows live in 2 databases.

So the link from the seat to the person is a weak ref in both models. The same holds for every like and comment.