Offline edits and merge

  • Build
  • Pixel 06

Difficulty 4 of 5

Phones edit notes offline. At 0:20 the phones and the cloud lose each other for 30 s, and 200 edits/s keep coming. Add a store with the ID notes. Take at least 1,000 edits on both sides, reject none, and lose none when the link returns. Budget: 30 USD/month.

Play level

Mobile users200 req/sNode API1 vCPU · 1 GB
HTTP/2Mobile users200 req/sNode API1 vCPU · 1 GB
The board at the start of the level
Read and write quorumsLeft and right arrows change R. Tap to change W.

W 3 + R 3 of 5 · every read sees the last write

Goals and limits

Lost writes
none
Error rate
under 0.1%
Split-brain writes
at least 1,000
Monthly cost
under 30 USD/mo
Parts you can add
Key-value store, Document DB, Wide-column DB, Postgres
Part limit
2
Traffic
200 req/s

Concepts

How players did

Player results load from the server.