Quick revision
The short answer
I would assess each of the eight processes and move the long, frequently changing or regulated ones to orchestration or a workflow engine, while leaving short, stable choreographies alone. Each end-to-end process gets one owning team that owns its orchestrator. Event contracts go into a schema registry with compatibility rules so changes stop breaking consumers, correlation ids, tracing and a saga state view give end-to-end visibility, and we migrate incrementally, starting with the most painful flow and measuring incidents and lead time.
What to remember
In this answer, we treated invisible, fragile choreographies as both a design and an ownership problem. We assessed each of the eight processes and moved the long, changing or regulated ones to orchestration or a workflow engine, gave every process one owning team, stabilised event contracts with a schema registry, compatibility rules and contract tests, added correlation ids, tracing and a saga state view for visibility, and planned an incremental migration that starts with the most painful flow and is judged by incidents and lead time.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
I would assess each of the eight processes and move the long, frequently changing or regulated ones to orchestration or a workflow engine, while leaving short, stable choreographies alone. Each end-to-end process gets one owning team that owns its orchestrator. Event contracts go into a schema registry with compatibility rules so changes stop breaking consumers, correlation ids, tracing and a saga state view give end-to-end visibility, and we migrate incrementally, starting with the most painful flow and measuring incidents and lead time.
Why this question is asked
Choreographed sagas are attractive at first: each team publishes events and reacts to others, and nobody needs a central component. After a few years and eight processes, the same design produces the two complaints in this question: nobody can see a whole flow, and a change in one team breaks another. Interviewers ask this at the fifteen-year level because the fix is partly technical and partly organisational, and both halves are needed. In this answer, we will diagnose why choreography ends up here, decide per process which style fits, assign ownership, fix contracts with a schema registry, add end-to-end visibility, and plan an incremental migration with measures.
1Why Choreography Ends Up Here
In a choreographed saga, each service reacts to events and emits its own, and the process exists only as the sum of those reactions. There is no file, diagram or table that describes it. With three steps the flow fits in one person's head. With six steps across six services, owned by four teams, a question like what happens when a refund fails after shipping has no single place to be answered.
Changes break others for a related reason. An event published by one team is consumed by several teams it may not know about. When the publisher renames a field or changes the meaning of a status, consumers fail at runtime, often silently, and the process stops halfway. The coupling is real; it is just invisible.
2Assess Each Process Before Choosing a Style
Not all eight processes need the same treatment. We score each on a few questions: how many steps and services it spans, how often its rules change, whether it is regulated or touches money, how often it has caused incidents, and whether it is long-running, waiting for hours or days on people or partners.
| Process | Steps / services | Signals | Choice |
|---|---|---|---|
| Order to delivery | 6 / 5 | frequent changes, money, 9 incidents | orchestrate first |
| Refunds and returns | 5 / 4 | regulated, money | orchestrate |
| Account onboarding (KYC) | 6 / 4 | regulated, waits days | workflow engine |
| Loyalty points | 3 / 3 | stable, few incidents | keep choreography |
| Price update fan-out | 3 / 6 | notifications only | keep choreography |
The rule of thumb: long, frequently changing or regulated flows benefit from orchestration, where the steps and compensations are written in one place, or from a workflow engine such as Temporal or Camunda when they are long-running. Short, stable fan-outs, where one event simply informs several services, are a good fit for choreography and should stay that way.
3Give Every Process an Owner
Technology alone will not fix a flow that no team owns. For each end-to-end process we name one owning team. It owns the process definition, its orchestrator if it has one, its end-to-end tests, its dashboards and its on-call for stuck instances. The other services still own their own steps, reserve stock, charge the card, but they expose them as commands with clear contracts, and the owner composes them.
This changes conversations. Instead of five teams debating in an incident channel whose event broke the flow, the process owner sees the failure on its dashboard, knows which step failed, and contacts that step's team. Usually the owner is the team closest to the business outcome, for example the orders team for order to delivery.
4Stabilise Event Contracts With a Schema Registry
To stop changes breaking consumers, event schemas move into a schema registry, such as Confluent Schema Registry or Apicurio, with a compatibility rule enforced on every topic, typically backward or full compatibility. Producers register the schema in their build; a change that would break existing consumers, such as removing a required field or changing its type, is rejected before it reaches production.
Compatibility rules catch structural breaks, not changes in meaning, such as a status value that now means something different. For those, we add consumer-driven contract tests, where consumers state what they rely on and the producer's build checks it, and a simple rule that a change in meaning gets a new event type or version.
5Make the End-to-End Flow Visible
Every event and command carries a correlation id for the process instance, the order id for example, and trace context is propagated through Kafka headers so that OpenTelemetry shows one trace across all services. Logs include the correlation id, so a support engineer can search for one order and see everything.
On top of that, each process gets a saga state view: for orchestrated flows, the orchestrator's state table or the workflow engine's UI; for flows that stay choreographed, a small projection that listens to all the process's events and records the latest step per correlation id. That view answers the two questions that matter in practice: where is this instance, and how many instances are stuck at each step.
6Migrate Incrementally and Measure
We start with the most painful flow, here order to delivery, and move it to orchestration while the services keep their existing step logic. A common technique is to introduce the orchestrator alongside the existing events: it first observes and records state, which gives visibility immediately, then takes over sending commands step by step.
Before starting, we record a baseline for that flow: incidents per quarter, mean time to resolve them, and lead time for a change to the flow. After the migration we compare. If incidents and lead time improve, the next process follows; if not, we learn why before spending more. This keeps the programme honest and gives us the evidence to fund the next step.
7Follow-up questions
What is the cost of adopting a workflow engine organisation-wide?
There are direct costs, licences or a managed service, or the engineering to run a cluster such as Temporal with its database, and they grow with the number of executions. There are platform costs: a team to operate it, upgrade it and support others. And there are learning costs: engineers must learn the engine's programming model, for example Temporal's rule that workflow code must be deterministic, and how to version running workflows. It also becomes a critical dependency, so its availability limits every process on it. That is why I would adopt it for the processes that need it, not mandate it for all eight.
Why not simply document the choreographies better?
Documentation helps, but it describes what the flow was meant to be, not what it is, and it drifts as teams change their services. Visibility from real events and an owner who maintains the flow keep the picture true.
How do you prevent the orchestrator from becoming a monolith of business logic?
By keeping it to sequencing, state, retries and compensation decisions. Pricing rules, stock rules and payment rules stay in the services that own them, behind commands. If an orchestrator starts computing discounts, that logic belongs elsewhere.
8Conclusion
In this answer, we treated invisible, fragile choreographies as both a design and an ownership problem. We assessed each of the eight processes and moved the long, changing or regulated ones to orchestration or a workflow engine, gave every process one owning team, stabilised event contracts with a schema registry, compatibility rules and contract tests, added correlation ids, tracing and a saga state view for visibility, and planned an incremental migration that starts with the most painful flow and is judged by incidents and lead time.
Open with
I would treat this as both a design problem and an ownership problem. First I would assess each of the eight processes: how many steps and services, how often the rules change, whether it is regulated or touches money, how many incidents it caused and whether it is long-running.
Then, if they want more
The long, frequently changing or regulated ones should move to orchestration, or a workflow engine like Temporal or Camunda when they wait for hours or days. Short, stable fan-outs can stay choreographed. Second, every end-to-end process gets one owning team that owns its orchestrator, tests, dashboards and on-call, while the other teams own their steps as commands.
Third, to stop changes breaking other teams, event schemas go into a schema registry with compatibility rules enforced in the build, plus consumer-driven contract tests for changes in meaning.
Fourth, visibility: correlation ids on every message, trace context through Kafka headers so we get one trace per instance, and a saga state view, either the orchestrator's table or a projection over the events, showing where each instance is and how many are stuck.
Finally I would migrate incrementally, starting with the most painful flow, with a baseline of incidents and lead time before and a comparison after, and only then move on to the next process.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring Cloud documentation, Resilience4j documentation
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Across your organisation, eight business processes span three to six services each and...": https://scrivio-interview-library.netlify.app/spring-boot/distributed-data/34586879da/