
Every retail operation with more than one location eventually hits the same wall: the internet at one of the outlets is unreliable, and the POS depends on it. Sales stall at the counter, queues build, and staff fall back to a paper pad they'll re-key later — badly.
What breaks when the connection goes
It's rarely just checkout. A cloud-only POS also loses price lookups, stock checks, customer history and receipt printing the moment the link drops. The failure is total and it happens at the worst possible time — the busy period that saturated the connection in the first place.
Offline-first in three parts
Designing for this properly means three things working together:
- A local store. The register keeps its own copy of the catalogue, prices, customers and current stock. Reads never touch the network.
- A write queue. Every sale, refund and stock movement is written locally first and appended to an ordered queue. The cashier gets an instant confirmation regardless of connectivity.
- Background sync. When the connection returns, the queue drains to the server in order. Nothing is lost and nothing waits.
Designing for conflict
The hard part isn't going offline — it's coming back. Two outlets might sell the last unit of an item during the same offline window. You need explicit rules:
- Sales are append-only facts; they never conflict, they just accumulate.
- Stock quantity is derived from movements, so an oversell surfaces as a negative balance you can act on, not a lost transaction.
- Master data (prices, products) flows one way, from head office down, so a register never has to argue about whose price is correct.
Cash-up is the real test
The honest measure of an offline-first build is the end-of-day reconciliation. If a register spent three hours offline and its cash-up still ties out to the ledger automatically when it reconnects, the design works. If someone has to manually re-enter the offline sales, it doesn't — you've just moved the outage to closing time.