System Design Atlas

Omnichannel customer service

06 / 10Worked example

The overall architecture

How are the responsibility for service case and external processing distributed among modules and processes?

The local consistency rule determines the boundaries of the support case API. Channel processing runs separately for deferred work. The modules Message Assignment, Case Ownership, Knowledge Suggestion, Reply Approval structure responsibility within the API; they are not individually operated services. Email and chat providers enter a permanent inbox via separate channel adapters. Message assignment only binds to the Support case API after checked customer reference. Case data, draft revisions and send commands are related; a knowledge base provides cited proposals that the service team confirms. Channel processing reads the outbox and transmits the exact confirmed draft to the selected provider. Specialist team edits assigned excerpts. The input and output paths have their own receipts and are shown separately in the diagram.

Starting point Message references remain unique within their source namespace.

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.

Runtime components and datastores

Runtime topology

Email and chat providersSeparate channel receipts
Specialised teamediting the assigned section

Omnichannel service

Channel adaptersDeduplicate separately within each source namespace
Permanent InboxStore the message before acknowledging receipt
Support case APIAssignment and response confirmation
Case and draft data storeCase, Revision, Outbox
Channel processingSend the exact draft
Email and chat providers → Channel adaptersMessage within its source namespace
Channel adapters → Permanent InboxDeduplicated commits
Permanent Inbox → Support case APIVerified customer reference
Support case API → Case and draft data storeCase + Draft + Outbox
Case and draft data store → Channel processingConfirmed draft
Channel processing → Email and chat providersselected channel
Support case API → Specialised teamAssigned question

Sending binds the confirmed draft version and selected channel.

Email and chat providers feed a durable inbox through separate channel adapters. The support case API assigns messages only after verifying the customer reference. Case data, draft revisions and send commands are linked; a knowledge base supplies cited suggestions for the service team to approve. Channel processing reads the outbox and sends the exact confirmed draft to the selected provider. The specialist team handles assigned excerpts. Incoming and outgoing paths have separate evidence and are shown separately in the diagram.

Domain responsibilities within the API

Internal responsibilities

Message assignmentAssign the message only after verifying customer identity
Case managementTrack status, specialist handoff and follow-up case
Draft approvalCheck the knowledge source and approve the draft
Send commandSend exact draft with provider reference

Modules remain within the API process.

The support case API contains message assignment, case ownership, knowledge suggestions and reply approval. The diagram shows calls between domain modules; modules do not have separate server icons.

Map responsibilities to runtime components

Domain taskRuntimeResponsibility
Message assignmentSupport case APIConnects verified customer reference with a concern.
Case ownershipSupport case APITracks ownership and handovers between teams.
Knowledge suggestionSupport case APIProvides source-based drafts for human review.
Reply approvalSupport case APIBinds confirmed text to channel and recipient.
Channel processingSeparate background processProcesses stored work and external feedback.
Channel providersExternal boundaryProvides or confirms the evidence agreed for this case.

Message assignment

Runtime
Support case API
Responsibility
Connects verified customer reference with a concern.

Case ownership

Runtime
Support case API
Responsibility
Tracks ownership and handovers between teams.

Knowledge suggestion

Runtime
Support case API
Responsibility
Provides source-based drafts for human review.

Reply approval

Runtime
Support case API
Responsibility
Binds confirmed text to channel and recipient.

Channel processing

Runtime
Separate background process
Responsibility
Processes stored work and external feedback.

Channel providers

Runtime
External boundary
Responsibility
Provides or confirms the evidence agreed for this case.

Channel processing runs outside the case commit

Channel processing runs outside the case commit

Channel processing runs outside the case commit.

An externally sent reply binds the confirmed draft version and selected channel; uncertain identity similarity produces a suggested association.

Cases, channel messages, draft reply revisions, and send requests must represent the same valid state. Your exercise identifies the input and expected result.

Alternative considered
A separate service for each module distributes the promise “An externally sent response binds the confirmed draft version and the selected channel; uncertain identity similarity leads to a proposal for assignment” to additional network boundaries.
Trade-off
Common schema changes require coordinated releases.
Reassess
Significantly deviating load of channel processing or independent responsibility justifies a new runtime boundary.

Try it yourself

Assign message assignment, channel processing and channel provider to module, process and external system. Justify the authoritative data store.

A hint for your attempt

A domain responsibility becomes a process only when it has its own execution unit.

Compare with a possible solution
Boundaries
Message assignment is a module in support case API; channel processing is its own process; channel provider is outside.
Storage
Cases, channel messages, draft revisions and send commands hold the authoritative evidence. An externally sent response binds the confirmed draft version and the selected channel; uncertain identity similarity leads to an assignment proposal. The joint transaction protects this connection; external responses remain separate evidence.

Apply to your project

Which planned service boundary would distribute a currently local guarantee across the network?

Next: Unknown delivery is clarified with the same reference.