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
Omnichannel service
Sending binds the confirmed draft version and selected channel.
Domain responsibilities within the API
Internal responsibilities
Modules remain within the API process.
Map responsibilities to runtime components
| Domain task | Runtime | Responsibility |
|---|---|---|
| Message assignment | Support case API | Connects verified customer reference with a concern. |
| Case ownership | Support case API | Tracks ownership and handovers between teams. |
| Knowledge suggestion | Support case API | Provides source-based drafts for human review. |
| Reply approval | Support case API | Binds confirmed text to channel and recipient. |
| Channel processing | Separate background process | Processes stored work and external feedback. |
| Channel providers | External boundary | Provides 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.
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?