Designing a DMS that still works on 3G in Cà Mau
Offline-first sync is not an optimisation for field sales in Vietnam — it is the product. How we structure the queue and resolve conflicts.
19 August 20269 min
A sales rep in Cà Mau opens the app at the back of a grocery with one bar of 3G, takes an order, and moves to the next outlet. If any part of that depends on the network, the day is lost. So none of it does.
The queue is the app
Every action a rep takes is written locally as an intent — visit started, stock counted, order placed — and the queue is the source of truth until the server acknowledges it. The screen never waits for a response, and a rep who has been offline since morning sees exactly the same interface as one who has not.
Conflicts are a business decision
Two reps can legitimately sell the last case of a product. The resolution is not technical: the order that syncs second is accepted and flagged for the distributor, because rejecting it silently on a rep’s phone is how a platform loses the field team. We learned that the expensive way.
What we measure
Not sync latency. Time from opening the app to the first field being editable, on a cold start, with no network. If that number grows, adoption falls, and every other metric follows it down.
- DMS
- Offline-first
- Mobile
- Field sales