
Design the Reconciliation Path Before the Happy Path
Distributed workflows will disagree. Reliable architecture makes those disagreements visible, explainable, and repairable.
Reconciliation is not cleanup work added after a distributed workflow fails. It is a first-class architecture capability for detecting mismatched state, preserving evidence, assigning ownership, and restoring a trusted business outcome.
A customer completes a transaction, the external provider accepts it, and the internal order remains pending. A shipment is created, but the inventory reservation has disappeared. A subscription is active in one service and cancelled in another. Each component may be behaving exactly as designed, yet the business outcome is wrong.
This is where many architecture diagrams stop being useful. They describe how a command should move through the system, but not how the organization will discover and repair the cases where the resulting states disagree. The happy path is detailed; the reconciliation path is left to dashboards, support tickets, and improvised scripts.
My view is straightforward: reconciliation is not operational cleanup. In any workflow that crosses system, ownership, or transaction boundaries, it is a first-class business capability. It should be designed at the same time as the normal flow, with explicit evidence, rules, ownership, and recovery actions.
Distributed workflows create legitimate disagreement
A database transaction can protect a local invariant. It cannot make independent systems share one instantaneous truth. Once a workflow includes asynchronous messages, third-party APIs, caches, batch processes, human approvals, or independently deployed services, temporary disagreement becomes a normal operating condition.
Retries may duplicate an action. Messages may arrive out of order. A timeout may hide a successful remote operation. A later correction may overtake an earlier event. A component may recover with stale state. None of these conditions automatically means the design is poor. The architectural failure is allowing disagreement to remain invisible or unresolvable.
The goal is therefore not to promise perfect synchronization. The goal is to control uncertainty: know what can disagree, detect when tolerance has been exceeded, explain the evidence, and provide a safe route back to a valid business state.
Define what must agree before choosing the mechanism
Teams often begin with a tool: a queue, an orchestration engine, a change feed, or a scheduled comparison job. The better starting point is the business invariant. What must be true when the workflow is considered complete?
For an order, the invariant may connect authorization, order status, inventory, and fulfilment eligibility. For identity provisioning, it may connect the approved entitlement, the account created in a target system, and the audit record. The invariant gives reconciliation a purpose. Without it, comparison logic tends to produce noisy differences without indicating which ones matter.
For each critical workflow, document at least:
- The correlation identity: the stable business key that connects records and events across boundaries.
- The expected state relationship: which combinations are valid, temporarily acceptable, or impossible.
- The evidence: timestamps, version identifiers, request identifiers, source events, and external references needed to explain the outcome.
- The tolerance window: how long disagreement may persist before it becomes an exception.
- The authority rule: which source is authoritative for each fact, including cases where authority depends on workflow stage.
- The repair policy: whether the system retries, compensates, pauses for review, or accepts the difference.
This is more precise than declaring one system the source of truth. In real workflows, authority is usually scoped. One system may own payment status, another fulfilment status, and a third the customer-visible projection. Reconciliation must respect those boundaries rather than overwrite them with a simplistic winner.
Build a closed reconciliation loop
A useful reconciliation design has four connected responsibilities. Treating them as a loop prevents the common outcome where detection creates an ever-growing exception queue but no dependable recovery.
1. Detect
Detection can be continuous, event-driven, or scheduled. The frequency should follow business exposure, not engineering fashion. A high-value authorization may require rapid checks; an analytical projection may tolerate a daily comparison. Detection should identify a violated invariant and retain the observation that triggered it.
2. Explain
An exception must carry enough context for a person or automated policy to decide what happened. “Records differ” is not actionable. A useful exception says which facts differ, when each changed, which operations were attempted, what evidence exists from each boundary, and which rule classified the condition.
3. Repair
Repair actions should be explicit commands, not direct data edits hidden in an administrative script. Examples include reissuing an idempotent request, rebuilding a projection from retained events, releasing a reservation, initiating compensation, or routing the case to an accountable operator. Every repair should be repeatable where possible and should produce an auditable result.
4. Learn
Reconciliation data is architecture feedback. Group exceptions by cause, boundary, age, value at risk, and repair outcome. Recurring patterns may reveal a weak contract, an unsafe retry policy, missing idempotency, ambiguous ownership, or an unrealistic tolerance window. The loop is complete only when those findings influence design and operations.
Make ownership part of the architecture
A technically sound detector can still fail if nobody owns the exceptions. Architecture decisions must connect the mechanism to an operating model.
Define who is accountable for each exception class, what can be repaired automatically, what requires separation of duties, and how unresolved cases are escalated. Estimate the expected queue volume and the time required to investigate one case. A design that generates hundreds of opaque exceptions for a small operations team is not resilient; it has moved system complexity into human labour.
Leaders should also ask what business exposure accumulates while an exception remains open. Count and age are useful, but they are not enough. A small number of unresolved cases may represent significant financial, contractual, regulatory, or customer impact. Prioritization should reflect that exposure.
Accept the tradeoffs deliberately
Reconciliation is not free. It requires durable identifiers, retained evidence, comparison logic, exception storage, access controls, operational tooling, and tests for repair actions. Evidence retention can also create privacy and data-lifecycle obligations. These costs should be visible in the architecture decision, not discovered after production incidents.
Not every integration needs the same depth. Use a stronger reconciliation design when the workflow moves money, changes entitlement, commits scarce inventory, triggers an irreversible external action, or affects a regulated record. A low-impact cached view may only need expiry and rebuild. Proportionality matters.
There is also a balance between automated repair and human judgment. Automation is appropriate when the invariant, authority, and corrective action are unambiguous. Human review is safer when evidence conflicts, the action is irreversible, or the business meaning cannot be inferred from technical state alone. The architecture should support both without turning manual intervention into untracked database surgery.
Questions to add to the architecture review
- Which business invariants cross a transaction or ownership boundary?
- How will we correlate evidence across every participant in the workflow?
- How long may states disagree before the business is exposed?
- Can we distinguish a delayed outcome from a permanently lost one?
- What repair commands exist, and are they safe to repeat?
- Who owns each exception class, and what information will that person receive?
- How will reconciliation trends change future architecture decisions?
These questions shift the review from “Does the integration work?” to “Can the organization maintain a trustworthy outcome when the integration behaves imperfectly?” That is a more demanding standard, and a more useful one.
Conclusion
The quality of a distributed system is not defined only by how elegantly it completes the normal flow. It is also defined by how quickly it recognizes disagreement, how clearly it explains the evidence, and how safely it restores a valid business state.
Design the reconciliation path while the workflow, contracts, and ownership model are still being shaped. Doing so turns exceptions from surprises into controlled operating states—and makes reliability an architectural property rather than an emergency procedure. If a critical workflow has no clear reconciliation path, that is a valuable place to begin the next architecture review.
Explore more insights
Browse more architecture, cloud, AI, and strategy articles.


