Solution Architecture18 November 202611 min read

The Connected Service Enterprise — Part 7 of 10

The service orchestration layer

Connecting channels to back-end systems is the easy part. The orchestration layer decides which system holds the truth about a case, which steps run in what order, where an agent may help and what happens when one action in four fails. Part 7 of The Connected Service Enterprise gives an executive view, a logical architecture and the idempotency and compensation rules that keep a case consistent.

#Service Orchestration#Solution Architecture#MCP#AI Agents#Case Management#Customer Experience
Glass shapes of a phone, an open doorway, a chat bubble and an envelope send cyan threads into a single folder that travels along a path to a glowing yellow light, over a faint map of southern Africa.

At 22:10 on a Friday, a customer of Blouberg Bank, our fictional South African bank, reports on WhatsApp that her card was stolen and that two transactions on her statement are not hers. Four things need to happen: block the card, open a dispute for the two transactions, order a replacement card and book a courier to deliver it. Each of those lives in a different system. The chat assistant blocks the card in seconds. The dispute is opened on Monday by a contact-centre agent who has to ask her to repeat the details. The replacement card is ordered twice, because a timeout made the first order look as if it had failed. Nobody books the courier, so she calls the bank three more times.

Blouberg's first instinct was to buy a more capable agent. But every individual step worked. What was missing was the layer that knows which steps belong to this request, which have run, which failed, who owns the next decision and what to tell the customer.

It builds on the case as defined in Part 2, Design around the case: one customer need the organisation has accepted to resolve, with a single identifier, an accountable owner, evidence, tasks, decisions, status and an audit history, kept until resolution is confirmed. The AI control plane is in Series 03 and production engineering is in Series 05. This part is about the service, not the model.

The executive view: five jobs, one case

Executives need the jobs the layer must do and who answers for each, not the component list.

JobWhat it doesAccountable ownerWhat breaks without it
Hold the caseKeeps one record of the request, its evidence, status and ownerService ownerCustomers repeat themselves; staff see different versions of the truth
Run the stepsSequences actions, waits for people and partners, enforces service-level timersProcess ownerSteps are forgotten between channels and shifts
Connect the systemsExposes core systems as governed APIs, events and toolsPlatform or integration ownerEvery new channel builds its own point-to-point links
Apply judgementClassifies, summarises, retrieves and drafts where rules cannotProduct owner, with risk sign-offStaff do repetitive reading and typing; or an ungoverned model does it
Decide and approveApplies policy and human authority to consequential actionsBusiness owner of each actionThe model, or whoever built the integration, decides by default

Every failure in the last column happened at Blouberg, and none was caused by the model.

The logical architecture

This is a logical view: it names responsibilities, not products.

Connected service reference architecture, logical viewCHANNELSWeb and appBranchContact centreWhatsApp, emailPartner channelEDGE AND TRUSTAPI edge: security, rate limits, accessibilityIdentity, consent and authorisationORCHESTRATION CORECase system of recordstatus, evidence, ownerWorkflow enginesteps, timers, retriesAgent coordinatorbounded specialistsSHARED CAPABILITIESKnowledgeand recordsTool catalogue:APIs and MCPHuman queuesand approvalsNotificationsand statusSYSTEMS OF RECORD AND PARTNERSCore bankingCard platformPayments anddisputesPartners andcourierspolicy-checked callsACROSS EVERY LAYERObservability, evaluation,cost and service analyticsSecurity, retentionand auditResilience andmanual fallbackTHE MODEL PROPOSES; THE CASE, WORKFLOW AND POLICY DECIDE
Read top to bottom. Every channel enters through the same edge and the same identity and consent checks, then reaches one persistent case. The case system, the workflow engine and the agent coordinator form the orchestration core: the case holds the truth about the request, the workflow holds the steps and timers, and the coordinator handles only the steps that need judgement. Every action on a system of record passes through the tool catalogue, where policy and approvals sit outside the model. The bottom band applies to every layer.

Three components form the orchestration core, and the most common design mistake is to blur them.

  • The case system of record holds the truth about the request: who asked, what evidence was given, what was decided, what the status is and who owns it. A customer-relationship management (CRM) platform or a dedicated case-management system can play this role, as long as one of them is named as the record. Digital case management as the spine of a regulator shows the same idea in a public body.
  • The workflow engine holds the truth about the steps: which ran, which are waiting, which timers run and what happens on failure. It is durable. An agent without durable state cannot own a long-running process explains why that matters.
  • The agent coordinator holds nothing durable. It handles the steps that need judgement, using bounded specialist agents, and returns proposals and results to the workflow. If the coordinator disappears mid-case, the case and the workflow should still know exactly where things stand.

The rule that falls out of this is simple. Conversation history is not the case, and the model's memory is not the workflow. Part 2 makes the same point for channels: conversation memory is not a system of record.

APIs, events, workflows and MCP do different jobs

Each integration style has a job. Most arguments come from using one for another's job.

MechanismUse it forAvoid it for
Synchronous APIA request that needs an answer now: card status, balance, block a cardLong-running work that waits for people or partners
EventAnnouncing a fact other systems may care about: "card blocked", "dispute opened"Commands that must be acted on exactly once by one owner
Workflow engineMulti-step work with waits, timers, retries, approvals and compensationSingle calls that an API already handles
Case systemThe durable record of the request, its owner and its statusStep sequencing and timers
Tool catalogue and MCPDescribing approved capabilities so an AI application can discover and call themGranting authority; it describes capability, it does not approve use

A few standards help keep these honest. CloudEvents, a Cloud Native Computing Foundation (CNCF) graduated project, gives events a common envelope (core specification v1.0.2, checked on 18 November 2026). Business Process Model and Notation (BPMN) from the Object Management Group gives business and technical teams one notation for workflows (current version 2.0.2).

The Model Context Protocol (MCP) is the newest of the five. The current specification, version 2026-07-28 as checked on 18 November 2026, defines how servers offer tools, resources and prompts to AI applications over JSON-RPC. It also states plainly that MCP "cannot enforce these security principles at the protocol level", and that hosts must obtain explicit user consent before invoking a tool. In other words, MCP is a good way to publish Blouberg's "order replacement card" capability once for several AI applications. It is not where the decision to order a card is made. CloudNala's series MCP Without the Hype covers the protocol, and API, function calling and MCP are different layers separates the three.

A coordinator that routes, and authority that stays outside the model

Where a step needs judgement, a coordinator can route it to a specialist. Four kinds cover most service work. Each has a narrow job, and none holds authority of its own.

SpecialistExample in the Blouberg caseMay doMay not do
LookupFind the card, the account and the two transactionsRead named records for this customerRead other customers' records or change anything
RetrievalFind the dispute policy and the time limits that applySearch approved knowledge with the customer's permissionsTreat a retrieved policy as a decision
ReportingSummarise the case for the dispute team and the customerDraft summaries and status messagesSend a message that commits the bank without a check
ActionPropose "order replacement card to the address on file"Propose a tool call with argumentsExecute it; the workflow and policy check do that

The action specialist is where most of the risk sits, so the architecture keeps the decision outside it. The model proposes a tool call. The workflow engine checks that this step is allowed at this point in the case. A policy check confirms the customer's identity strength, the action limits and whether a person must approve. Only then does the call reach the system of record, through the tool catalogue, with credentials scoped to that one action. Part 2 of Series 03 sets out the harness that does this inside one agent; Part 1 shows which boundary owns which control.

Many steps need no agent at all. Blocking a reported card is a rule, and it should run as a rule; use a workflow until the unknown forces an agent gives the test. Bind each specialist to the case type and the tools it needs.

Idempotency: make every action safe to repeat

Blouberg's duplicate card order is a common failure: a call timed out, the caller could not tell whether it had worked, and it tried again. Both attempts succeeded.

An operation is idempotent when doing it twice has the same effect as doing it once. Ordering a card is not idempotent unless you make it so. The usual method is an idempotency key: a unique value sent with the request so that the receiving system recognises a repeat and returns the original result instead of acting again. The IETF's HTTP API working group is standardising this as an Idempotency-Key header for methods such as POST and PATCH. It is still an Internet-Draft (version 08, checked on 18 November 2026), not an RFC, so treat it as a design reference rather than a settled standard.

For a case, three rules matter more than the header format:

  • Build the key from the business request, not the technical attempt. Case reference plus step name plus step version is a good start. A key generated fresh on each retry protects nothing.
  • Make the receiving system honour it. A key the card platform ignores is decoration. If a downstream system cannot honour keys, the workflow must check state before it retries.
  • Give one layer ownership of retries. When the channel, the agent and the workflow all retry, three sensible settings multiply. Who owns the retry? explains the arithmetic, and Part 7 of Series 03 covers safe retries during a model or cloud outage.

Compensation: when one action in four fails

The courier booking is the second failure. Three actions succeeded and the fourth did not. A database would roll back. A connected service cannot, because the card block has already protected the customer, the dispute reference has already been sent to her and a card may already be printing.

One case, four actions, one partial failureACTIONSTATERECOVERY CHOICE1 Block the cardDone. Never undoneautomatically2 Open the disputeDone. Case referencesent to customer3 Order replacementcardDone once, keyed tothe case and step4 Book courierFailed afterbounded retriesRetry with the same keywhile it is safeForward recovery: offerbranch collectionCompensate: cancel cardorder if customer asksHand to a person withthe case evidenceCase record: every step, key, result, retry, compensation and decision,so staff, customer messages and audit all read the same truthIRREVERSIBLE STEPS RUN ONLY AFTER THE CHECKS THAT JUSTIFY THEM
The fictional Blouberg Bank case has four actions. The first three succeeded and the fourth failed. Each action carries an idempotency key built from the case and the step, so a retry cannot order a second card. The orchestrator does not roll everything back: the card block protects the customer and stays in place. It first tries forward recovery, such as branch collection, and only compensates the card order if the customer chooses to cancel. Every outcome is written to the case.

Microsoft's compensating transaction pattern (updated 16 April 2026, checked on 18 November 2026) describes the general approach well, and it is not specific to any product. Three of its points apply directly. A compensating action does not necessarily return the system to its starting state; it compensates for the work that was done. Compensation steps can themselves fail, so they should be idempotent too. And the design should define "points of no return", so that irreversible steps happen only after the validations that justify them.

Classify every action before you build it.

ClassBlouberg exampleOn later failure
ProtectiveBlock the cardNever compensate automatically; it protects the customer
CompensableOrder replacement cardCancel only if the customer chooses, or the case is withdrawn
Forward-recoverableBook courierRetry, then offer an alternative such as branch collection
IrreversibleProvisional credit paid to the customerRun only after the checks that justify it; recovery is a new case decision, not an undo

The same guidance says a person should make decisions that are high impact or hard to automate. At Blouberg, the customer chooses between a re-booked courier and branch collection; the workflow offers the options.

The Case Card contribution

This part fills the Case Card fields that describe how the case is carried out, shown for Blouberg's fictional stolen-card case.

Case Card fieldBlouberg entry
case_system_of_recordCase-management platform; the chat history is linked, not the record
actionsBlock card (protective), open dispute, order card (compensable), book courier (forward-recoverable)
people_and_agentsLookup, retrieval and reporting agents; action proposals only; dispute team approves credits
systems_and_partnersCard platform, disputes system, core banking, courier partner via tool catalogue
exceptionsCourier failure, address mismatch, identity check below threshold, duplicate request
status_and_notificationsStatus events from the workflow drive WhatsApp, app and contact-centre views

The South African version

Three local conditions shape the orchestration layer.

Consent and minimality travel with every tool call. Under the Protection of Personal Information Act (POPIA), processing should be limited to what the purpose needs. In an orchestrated case, every specialist and partner call is processing. The lookup agent should receive the card and the two transactions, not the customer's whole history, and the courier partner should receive a delivery address and a reference, not the dispute. This is general information, not legal advice.

Partners are part of the case. Couriers, branch networks and outsourced contact centres carry many South African journeys. Their status must come back into the case as events, or the status page will show "dispatched" long after a delivery failed.

Public services face the same problem at national scale. Government's Roadmap for the Digital Transformation of Government, launched in May 2025, sets out better ways to verify identity, share data safely and make payments, with MyMzansi as a single access point (SAnews, checked on 18 November 2026). Shared identity and data exchange help, but each department still needs a case, a workflow and an owner.

Orchestration readiness checklist

Before adding another channel or agent to a service:

  1. Name the case system of record, and confirm no channel keeps its own competing status.
  2. Put multi-step work with waits, timers or partners in a durable workflow, not in a conversation.
  3. Publish system capabilities through a governed tool catalogue, with MCP where several AI applications need them.
  4. Give each specialist agent a narrow job, bound to the case type and its tools.
  5. Keep the authority check outside the model: workflow position, policy, identity strength and approvals.
  6. Give every consequential action an idempotency key built from the case and step, and confirm the receiver honours it.
  7. Classify every action as protective, compensable, forward-recoverable or irreversible, and design the recovery for each.
  8. Write every step, retry, compensation and decision to the case, so staff, customers and auditors read the same truth.

Previous: Part 6, Meetings as operating data. Next: Part 8, Service continuity end to end. All parts are on the series page.

How CloudNala can help

CloudNala designs service orchestration around one real case type. We map the case, name the system of record for each kind of truth, separate workflow steps from steps that need judgement, and design the tool catalogue, authority checks, idempotency keys and compensation rules for each action. You leave with a logical architecture your service owner, risk team and engineers agree on, and a short list of the integrations to build first.


Work with CloudNala

CloudNala helps organisations move from technology ambition to practical execution across cloud, AI, data, platform engineering and digital services.

Whether you are exploring AI, modernising your cloud environment, building a public-sector digital service, or turning an idea into a working MVP, we can help you shape the roadmap and deliver the next step.

Book a Service Orchestration Review or write to us at consult@cloudnala.co.za

Found this useful?

Share