← All guides

Offline queue conflicts: when two versions of the truth arrive together

Data, integrations & replication · 4 min read · By Dex Carter · Published 2026-10-28 · Last updated 2026-10-28

Offline capability means the edge keeps its own truth for a while. When the connection returns, the truths reconcile, usually silently, because most data flows one way. Conflicts are born where the flow is genuinely two-way: a record edited in two places during the same window, or a transaction whose context (price, member state, stock) changed centrally while the store was trading on the older copy.

The conflict classes, and their natural winners

ClassExampleSane rule
Reference data (prices, items, offers)Head office changed the price at noon; the offline store sold at the old price until 3The sales stand as made (the customer was charged the price the till lawfully showed); the central version wins going forward from reconnect, conflicts here are reporting notes, not corrections
Member/customer dataMember updated their phone at a store while also updating it onlineField-level judgement: newest change per field, with a human-review queue for identity fields rather than silent overwrite
Transactional (the sales themselves)A transaction exists at the till; a well-meaning retry creates it twice centrallyUniqueness by transaction identity (store/terminal/number), duplicates are a transport problem, solved by de-duplication keys, never by deleting one copy quietly
Stock-affectingA count or adjustment posted centrally while the store traded offlineBoth movements stand (they both happened physically); reconciliation explains the resulting figure rather than choosing a winner

Design the review queue, not just the rules

Rules resolve the classes they anticipate. The residue, the genuinely ambiguous few, needs a visible queue with an owner and an ageing clock, because an unreviewed conflict doesn't stay neutral: member data stays wrong at the next visit, and a duplicated transaction distorts a statement until somebody adopts it. Small and daily beats perfect and eventual: conflicts reviewed within a day are corrections; within a month, they are archaeology.

Shrink the conflict window

Communicating conflicts to the humans in them

Every automated resolution produces a human story, a price that changed under a quoted job, a member record merged, a stock figure adjusted by replay. The design should include the sentence each affected human hears: the store told which figure moved and why, in the morning note rather than a system log; the customer whose quoted price was superseded, handled by a person with the policy already decided. Systems that resolve conflicts silently teach their users that the data is haunted, and haunted systems get worked around, the spreadsheet returns, the notebook returns. The conflict report's real function is therefore trust maintenance: it demonstrates, weekly, that conflicts are seen, decided by rules the humans agreed, and never merely lost. Keep its language human for the same reason.

Tell the customer-facing systems the truth, late if necessary

Conflicts do not stay inside the integration layer; they surface wherever the data was already consumed. A member balance shown in an app from pre-reconnect data, a web stock figure that included a unit the store had actually sold, these are small wrongnesses the customer meets before your queue does. Design the republish as part of conflict handling: when a conflict resolves, the corrected fact flows again to every consumer of the wrong one, and customer-facing displays prefer a slightly stale, flagged figure over a confidently wrong one during long offline windows ("stock levels may be delayed at this store today" is a sentence that costs nothing and buys exactly the trust it describes). The goal is not zero conflicts, offline trading guarantees some, it is a system in which being wrong is temporary, visible, and repaired in public.

The conflict report's finest hour

A worked sequence. A store trades offline through a Saturday network outage; on Sunday the queue replays. Among 4,100 transactions, eleven conflict flags survive the automatic rules: three prices changed centrally on Saturday evening against items the store sold at the old price Sunday morning (before reconnection), five stock figures where central adjustments and store sales genuinely disagree, three member balances claimed by two stores. The report hands the duty manager eleven stories, each with its rule recommendation attached: honour the till price (the customers are blameless, the margin note goes to the price-change owner), recount five lines Monday, merge three balances under the standard. By Monday lunch the incident is eleven closed lines. The same weekend without the report is a fortnight of creeping mistrust in the numbers. Conflict machinery is bought for exactly one weekend a year, and it is cheap at the price.

Most conflict volume is a function of offline duration. The cheapest conflict strategy is therefore boring connectivity: monitor store connection health, treat a store trading offline past a threshold as an incident with a clock, and make reconnection sweeps verify queue drainage (counts sent vs received) rather than assuming the green light means agreement. Success: reconnections that are non-events, a conflict queue measured in items rather than days, and the sentence "the two systems disagreed, so…" always finishing with a rule that was written before the disagreement happened.

, Dex Carter, Tech Writer