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 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:
| Part | Call design | 3-place rule |
|---|---|---|
| Calls between regions | Needed, every region knows every region | Gone |
| Link from seat to quest | Foreign key in the owner's region | Foreign key in the global database |
| Code that routes a write to the owner's region | Needed in the framework | Gone |
So the gain is less code and fewer moving parts. No correctness is lost.
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:
Show as table
| ms | |
|---|---|
| Own regional database | 0.3 |
| Global, writer in US West | 0.9 |
| Global, writer in Frankfurt | 146 |
| Global, writer in Singapore | 187 |
| Global, 4 statements from Singapore | 748 |
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.
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.
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.
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.
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.