ADR-0003 — Choreography over orchestration for cross-system collaboration
Forces / Drivers
- Requirement / Constraint:
../context/requirements.md#fr-5-automation--playbook-execution— FR-5 Automation and playbook execution across multiple systems.../context/requirements.md#nfr-2-reliability— NFR-2 Reliability; a single-point-of-failure orchestrator would gate the entire pipeline.../context/quality-goals.md— Availability 99.9 % and E2E latency < 5 min.../context/capacity-model.md— 1000-customer reference envelope: approximately 20 incidents/s, 400 domain events/s, and 1,000 workflow activities/s at the sustained 5× peak. A single orchestrator on the cross-system flow becomes the throughput ceiling.
- Principle(s) embodied:
§ 6 Choreography over orchestration,§ 4 Event-driven microservices,§ 17 Failure containment. - WAF pillar optimized:
reliability(primary);performance-efficiency,operational-excellence(secondary).
Context
ADR-0001 established event-driven microservices as the collaboration substrate; ADR-0002 established Areas of Volatility (systems) as the physical decomposition. Neither ADR answered how services coordinate across systems on an end-to-end business flow (incident arrival → enrichment → triage → ticket creation → customer notification → response).
Note the frame: the choice being made here is not “event-driven vs. synchronous” — that was ADR-0001, and it was decided in favour of event-driven. Nor is it “modern event-driven vs. Tiberium’s low-code Logic-Apps stack” — that migration is driven by an independent set of concerns (testability, deployability, monitoring) and is the subject of the pending Workflow substrate — Temporal ADR. The V2 consolidation inherited an already event-driven design from the Voyager side of the merge; the open question was:
Given that services communicate via events, what shape does cross-system coordination take?
Two archetypes exist inside event-driven architecture:
- Event-driven orchestration. A dedicated orchestrator service subscribes to domain events, decides what should happen next, and publishes commands to individual services (which may then publish reply events back). The orchestrator holds the flow definition; participants execute a step. Examples: Camunda, Netflix Conductor, AWS Step Functions in command/callback mode.
- Event-driven choreography. Each service publishes events describing what happened; other services subscribe and react on their own judgement. There is no dedicated flow-owning component. Flow is emergent from the sum of local subscriptions.
Both models remain fully event-driven — the broker, the async delivery, the loose runtime coupling are the same in both. The difference is where the flow knowledge lives:
| Aspect | Event-driven orchestration | Event-driven choreography |
|---|---|---|
| Flow knowledge | Concentrated in one orchestrator | Distributed across subscribers |
| Adding a new step | Change the orchestrator | New consumer subscribes; no coordination |
| Adding a new consumer of an existing step | Register with orchestrator or change flow | Subscribe to the existing event |
| Compensation / rollback | Explicit, centralised | Distributed sagas or local compensations |
| End-to-end flow trace | Read the orchestrator’s flow definition | Distributed tracing + sequence diagrams |
| Scaling axis | Orchestrator throughput bounds flow throughput | Each subscriber scales independently |
| Blast radius on orchestrator failure | Every in-flight flow stalls | N/A — no orchestrator to fail |
| Coupling to services’ internals | Orchestrator knows every service’s commands + reply events | Each service only knows the events it emits/consumes |
At ION V2’s target scale — hundreds of systems participating across bounded contexts, teams evolving contributions independently, 25× customer growth on the horizon — the orchestration-shape’s change coupling and scaling coupling costs became the dominant concern.
However — event-driven choreography as the platform-wide style does not exclude a workflow engine inside a system’s boundary. Long-lived workflows (customer approvals waiting hours or days), human-in-the-loop steps, and structured saga/compensation logic all benefit from durable, replayable execution history — the strength of a workflow engine. The scoping rule is: choreography across systems, orchestration allowed inside a system. In V3 this is realised by the self-hosted Temporal cluster in the Cogs system — the platform’s one accepted § 21 Azure-native managed services first exception, because no Azure-managed workflow substrate covers Temporal’s execution model at ION’s scale — orchestrating flows within the boundary Cogs owns; it does not dictate cross-system flow.
Decision
ION V2 adopts event-driven choreography as the collaboration model across systems:
- Cross-system collaboration is choreographed. Each system publishes domain events describing what happened. Other systems subscribe and decide locally how to react. There is no dedicated platform-level orchestrator service and no shared flow-definition artefact.
- Each system owns its own decisions and its own error handling. DLQs, retries, compensations, and human-review paths are the responsibility of the reacting system, not a global conductor.
- Orchestration is permitted inside a system’s boundary for long-lived or structured workflows. In V3 this is realised by the self-hosted Temporal cluster in Cogs (see the pending Workflow substrate — Temporal ADR). A workflow engine that runs inside one system’s boundary and does not reach across system boundaries is compatible with this ADR; a workflow engine that dictates cross-system flow is not.
- Cross-system flows are documented as sequence diagrams (mermaid) in
../design/and evolved with the events they describe. There is no single executable flow artefact for the platform because the flow is emergent from the sum of local subscriptions.
Alternatives considered
- Option A — Event-driven orchestration at the platform level (dedicated orchestrator service). Rejected. Every new step in a cross-system flow requires orchestrator changes even when the change is owned by another team; the orchestrator inevitably knows every participant’s command + reply-event contracts (volatility bleed — the opposite of ADR-0002); its throughput bounds every flow it participates in; its failure stalls every in-flight instance. The runtime is still event-driven, but the design-time coupling defeats the volatility-based decomposition.
- Option B — Hybrid: platform orchestrator for critical-path flows, choreography for the rest. Rejected as an ADR-level rule. The rule needs to be crisp because “critical-path” drifts over time — any flow can and does become critical when a customer depends on it. Instead the rule is choreography across systems, orchestration inside a system (see Decision). This keeps the rule simple and moves the workflow engine inside the volatility boundary that owns it.
- Option C — Distributed sagas with a coordinator per business flow. Rejected as the cross-system rule but retained as an intra-system tool. Saga coordinators are useful inside a system that owns a long-lived multi-step transaction (Ticket lifecycle in Watchtower, Investigation lifecycle in Alya). They should not span systems, or they inherit every orchestrator drawback in Option A.
- Option D — Pure choreography with no workflow engines anywhere. Rejected. Some flows are legitimately long-lived and legitimately benefit from durable, replayable execution history (customer-approval waits, human triage, retryable multi-step response actions). Denying a workflow engine inside a system for those cases would force every service to reinvent Temporal-shaped machinery locally, poorly.
Rationale
The chosen scoped rule wins because it optimises the two properties event-driven choreography is best at (blast-radius containment, independent evolution) while retaining orchestration inside a system’s boundary where durable long-lived execution actually earns its cost.
- No cross-system flow-throughput ceiling. With no dedicated orchestrator on the platform flow, the aggregate 1,000 activities/s peak from the capacity model distributes naturally across each reacting system’s own scaling axis. No component sees the sum.
- No cross-system single point of failure in the collaboration path. If ION IQ is degraded, incidents still arrive, get triaged, get ticketed — only the IQ-specific reactions (autonomous investigation, summarisation) stall. Contrast with any orchestrated variant, where an orchestrator hiccup freezes every in-flight instance.
- Independent evolution without cross-team coordination. A new consumer of
incident.enriched(a new AI investigator in ION IQ, a new dashboard projection in Veritas, a new SLA timer in Watchtower) can subscribe without any producer change and without any orchestrator flow update. Direct realisation of§ 5 No direct service-to-service callsand its rationale. - Local error handling matches local knowledge. Only Kingsman knows how to retry a Recorded Future call under credit exhaustion; only Watchtower knows how to batch Sentinel comment writes against the 75 / 5 min throttle; only Pigeon knows how to fan out across multiple Teams bots when hitting the ~8 msg/s ceiling (see
../context/capacity-model.md#subsystem-capacity-budgets). Pushing this knowledge into a central orchestrator would force it to know every downstream service’s throttling regime — a variety of knowledge that has no single owner. - Choreography aligns with volatility-based decomposition. ADR-0002 says a system contains volatility inside its boundary; an orchestrator that reaches into every system’s contracts explicitly violates that boundary. Choreography enforces it.
- Orchestration retained where it belongs. Long-lived workflows (hours or days of open state, approval waits, retryable multi-activity sequences) need durable execution history and time-based triggers. A workflow engine inside Cogs provides that without dictating cross-system flow.
- Cross-system flow is documentable without being a global artefact. Sequence diagrams in
../design/capture “what happens when an incident arrives” as a view of the choreography, not as an executable central definition. When a system adds a new reaction, the sequence diagram gains a new lane; nothing about the runtime flow needs to be re-registered anywhere.
Consequences
Positive
- No platform-wide single point of failure in the collaboration path.
- Each system evolves its flow contribution on its own release cadence.
- Adding a new consumer of an existing event is a one-team change.
- Failure containment: a broken subscription only fails one subscribing system.
- Compatible with volatility-based decomposition (ADR-0002): each system owns its part of the flow.
Negative
- End-to-end flow tracing is harder. No single artefact says “here is the incident-handling flow”. Distributed tracing (App Insights
traceparentpropagation) and sequence diagrams in../design/are the recourse; both must be first-class from day one. - Reasoning about correctness is distributed. Whether an incident actually reaches the ticket store depends on every subscription being live and correct. Requires strong observability (subscription lag alerts, DLQ alerts) and strong contract testing.
- Debugging cross-system incidents requires correlation IDs (CloudEvents
id, ION correlation ID) to be propagated diligently at every hop. - Requires a documented event catalogue (CloudEvents + AsyncAPI — ADR-0005) so consumers can discover what’s published and reason about subscribing.
- Compensation logic is distributed. No central saga coordinator to roll a flow back — each participating system implements the compensating action for its own step. Requires explicit design of compensation events per business flow.
Neutral / follow-ups
- Sequence diagrams for cross-system flows live in
../design/as mermaid diagrams (per../standards/documentation-standards.md#7-diagram-tool-split) — one per canonical flow. - Every published event must have an owning system listed in
../design/; “who owns this event” is the equivalent of “who owns this API”. - The
Trilateral APIprinciple (§ 10) elevates events to first-class contracts precisely so choreography is safe to evolve.
WAF Pillar Impact
- Primary pillar:
reliability— no dedicated orchestrator failure mode on the cross-system flow; failure containment via subscription isolation + DLQs. A slow or failed system does not stall the platform. - Secondary pillars:
performance-efficiency— no orchestrator throughput ceiling on the platform’s aggregate flow; each system scales its subscribers independently.operational-excellence— no orchestrator-owning team becomes a coordination bottleneck; each system deploys independently.
- Trade-offs:
- Sacrifices the single-place-to-read-the-flow that a central orchestrator’s flow definition provides.
- Sacrifices simple end-to-end tracing; requires investment in distributed tracing.
- Requires stricter event-schema discipline (breaking a schema now breaks any consumer, not just “the orchestrator”).
- Distributes compensation/saga logic; requires explicit design per business flow.
References
../references/Architecture- Ontinue ION V2.md,../references/Architecture- Ontinue ION v3.md— V2/V3 architecture consolidations; the choreographed style is captured as the cross-system solution strategy.../references/Event Sourcing- Design.md— the V3 event model that makes choreography’s event-carried state (ADR-0004) practical.../references/Architecture V2- Automation.md,../references/Architecture V2- ADR4 - Automation-SOAR.md— V2 automation-flow model.../references/Container View- Cogs.md— the Cogs system that owns Temporal (the intra-system orchestration engine).- External: Sam Newman, Building Microservices (2nd ed.), ch. 4 — orchestration vs. choreography trade-offs within event-driven architectures.
Related ADRs
- Depends on:
- Enables:
- ADR-0004 — Event-Carried State Transfer (events carrying state is what makes choreography viable — consumers don’t have to call producers back).
- ADR-0005 — CloudEvents + AsyncAPI (event catalogue + versioning discipline the choreography depends on).
- ADR-0006 — Event Sourcing (an event log becomes the natural persistence pattern once events are the collaboration currency).
- Related:
- ADR: Workflow substrate — Temporal (pending) — the intra-system orchestration engine that this ADR explicitly permits (in Cogs) but restricts to system-local scope.
- ADR-0008 — Event backbone (shared Service Bus).