Designing AlloResto for a Connection That Might Not Be There
1 min read
- architecture
- offline-first

Restaurant floors don’t pause for a dropped connection, so neither can the software running them.
The design constraint
Every write has to succeed locally first, then reconcile. That single rule shapes almost everything downstream — data model, conflict resolution, even how we think about “real time.”
What changed in practice
- Local-first writes with a durable outbox.
- Last-writer-wins is not good enough for orders — we needed operation-level merge, not record-level.
- Sync status became a first-class UI concern, not an afterthought toast.
Offline-first isn’t a feature flag you bolt on. It’s a constraint you design the whole system around from day one.