Ask any shop owner in Nairobi what their biggest point-of-sale complaint is, and network downtime is near the top of the list. Fibre gets cut, a router reboots, a branch loses power for twenty minutes - and a till that depends on a live connection just stops selling.
Sales don't wait for connectivity
UlterPOS was built around a simple rule: a cashier should never see a spinner at checkout. Every sale is written to a local queue first, then synchronized to the central database as soon as a connection is available. Stock levels, receipts, and payment references are generated locally and reconciled afterwards, not the other way around.
Reconciliation is the hard part, not the queueing
Queuing a sale locally is the easy half. The harder problem is what happens when two branches update the same stock item while offline, or when a queued M-Pesa confirmation arrives after the sale has already been marked paid by cash. We settled on a last-writer-wins model for stock counts with an audit trail, and idempotent payment matching keyed on the transaction reference rather than timestamp - so a duplicate webhook delivery never double-counts a payment.
What this means for the business
- Branch sales and inventory keep moving during an outage instead of stopping at the till
- Mobile money, card, and bank payments reconcile to the right sale automatically once connectivity returns
- Purchasing and supplier records stay consistent across branches without manual reconciliation at month end
The trade-off we accepted
Offline-first means more complexity in the sync layer and more edge cases to test. We decided that trade-off was worth it the first time a client told us their old system had simply refused to sell anything for half a day because the ISP was down. A retail system that depends entirely on uptime it doesn't control isn't really built for the environment it's sold into.