Offline edits and merge
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.
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.