System Design Atlas

Omnichannel customer service

07 / 10Worked example

Critical flow

What proof remains for service case after lost result, and what may happen afterwards?

Now the architecture is tested at its sensitive point of failure. The reply draft and send command commit together. The channel provider accepts the command, but its acknowledgement is lost. Channel processing reconciles the same provider reference; a new send with a new key remains blocked until the existing command is resolved.

Starting point Channel processing runs outside the case commit.

Assumptions for the example case

Own fictitious example design. A service case via e-mail and chat with human confirmed knowledge suggestions. A send command without evidenced status is added to the investigation list from 120 seconds. All figures and test goals are illustrative assumptions.

Critical flow with commit and failure point

Critical flow with commit

1
Email and chat providers → Channel adaptersMessage within its source namespace
2
Channel adapters → Permanent InboxDeduplicated commits
3
Permanent Inbox → Support case APIVerified customer reference
4
Support case API → Case and draft data storeCase + Draft + Outbox
5
Case and draft data store → Channel processingConfirmed draft

Sending binds the confirmed draft version and selected channel.

The reply draft and send command commit together. The channel provider accepts the command, but its acknowledgement is lost. Channel processing reconciles the same provider reference; a new send with a new key remains blocked until the existing command is resolved.

Ordering and failure outcomes

Required order
The reply draft and send command commit together. The channel provider accepts the command, but its acknowledgement is lost. Channel processing reconciles the same provider reference; a new send with a new key remains blocked until the existing command is resolved.
Crash before commit
For service case F-34, no new permanent proof exists yet. The same command may be re-examined; unconfirmed intermediate work does not give a domain guarantee.
Crash after commit, before response
The command journal entry records the original result. Identical replay returns that evidence; a fresh view of the current state comes from the read contract.
External uncertainty
Missing feedback from a channel provider leaves the outcome unknown. Confirmed acceptance, definitive rejection and missing evidence have distinct states; the responsible role reconciles the same reference.

Resolve uncertain delivery using the same reference

Resolve uncertain delivery using the same reference

Resolve uncertain delivery using the same reference.

The reply draft and send command commit together. The channel provider accepts the command, but its acknowledgement is lost. Channel processing reconciles the same provider reference; a new send with a new key remains blocked until the existing command is resolved.

An externally sent response binds the confirmed draft version and the selected channel; uncertain identity similarity leads to an assignment proposal. The exercise specifies the input and expected result.

Alternative considered
Submitting a new request after a response is lost can execute the same business operation again.
Trade-off
Open proof from channel providers requires a work list.
Reassess
Frequent unresolved outcomes require a more reliable contract for external reconciliation.

Try it yourself

Mark the commit point, failure point and next permitted action. Explain the effect of an identical retry.

A hint for your attempt

Trace the same request through the datastore and response path.

Compare with a possible solution
Flow and failure
The reply draft and send command commit together. The channel provider accepts the command, but its acknowledgement is lost. Channel processing reconciles the same provider reference; a new send with a new key remains blocked until the existing command is resolved.
Commit and replay
Domain change and command result are stored together before response. Loss of response after commit leads to reading this result. For service case F-34, this does not have a second effect.

Apply to your project

What feedback could be missing even though the underlying action has already taken place?

Next, waiting grounds separate technical and professional delay.