Application orchestration
Foundation · About 35 minutes. Design exercise available now. No platform execution required.
The Coast Week catalog screen needs one authorized read. The purchase conversation must remember a submitted destination, wait for confirmation and later explain a supplier response. Use the simplest interaction that preserves each responsibility. Spend 35 minutes designing the second case on paper.
Choose the boundary · 7 minutes
Section titled “Choose the boundary · 7 minutes”Call a domain directly when one operation answers the question. Use a flow to coordinate steps across time or owners. A definition describes the graph, a published version identifies the definition in use and a run follows that version for one request. A reusable subflow can validate a destination for several purchase flows. It should return a structured result to its caller. An interactive handoff also needs a named owner for the conversation and a place to resume.
An agent can interpret “my other phone.” A deterministic step checks whether a specific validated destination exists. Ask for clarification when the phrase maps to two possible numbers. Never select a recipient by guessing which explanation sounds more convincing. Flow design
Trace the run · 8 minutes
Section titled “Trace the run · 8 minutes”| Step | Evidence inspected | Decision |
|---|---|---|
| Select offer | L1 carries Coast Week and N7 | Collect the inputs required by N7 |
| Collect destination | Versioned form submission includes the line and network | Re-prompt for a missing field or show the purchase summary |
| Wait for delivery | F-6 is awaiting supplier N-81 | Keep the run suspended until correlated evidence arrives |
| Resume | Commerce records confirmed delivery for F-6 against N-81 and L1 | Reflect that recorded outcome in the existing run, resume once and notify the current conversation owner |
A trigger handles an occurrence that starts work. A wait belongs to work that already exists. A delivery notification can wake the original run. Starting a new purchase from that notification would give the customer two orders. A timeout can instead open a support follow-up that points to the existing one.
Check. The form changed between checkout and the traveler’s return. Which definition explains their earlier answer? The version shown for the original submission. Reuse a valid answer if it still satisfies the purchase. If material terms have changed, present them again and obtain a fresh decision.
Separate conversation and economic effects · 7 minutes
Section titled “Separate conversation and economic effects · 7 minutes”If the customer returns through chat while the run is waiting, re-establish identity and find the original conversation and execution. Tell them which obligation remains open. A support reply need not move the run to a later execution step. Conversely, a supplier event can complete a step without granting permission to send a WhatsApp message.
Two deliveries of the same event may race. A recorded correlation lets support identify both. Commerce owns the authoritative fulfillment transition and records the confirmed supplier outcome once. The flow projects that recorded result into its own run state and resumes the waiting step once. Payments owns collection and Ledger owns the accounting record. The owning domain must also protect the economic operation against retries, including two calls from the same run. An orchestration log alone proves neither payment nor delivery. Conversation flows
Publish and recover deliberately · 6 minutes
Section titled “Publish and recover deliberately · 6 minutes”Validation checks whether a definition has the expected shape. Publication chooses a version under the applicable authority. The installation binds local resources. At runtime each domain checks its own caller, resource and operation. A published design can be coherent and still lack permission to act on a particular order. Inspect contracts in the node reference when implementing a supported operation.
Check. A timeout arrives just before a supplier confirmation. Should the operator place another order? Keep both observations on F-6. Confirm what the supplier recorded for N-81. A late confirmed result resolves the original wait. Unknown evidence leaves the obligation open.
Assess a recovery design · 7 minutes
Section titled “Assess a recovery design · 7 minutes”Sketch one run for a customer who closes the form, returns, then receives a delayed supplier response twice. Label one reusable subflow and the domain that owns each side effect. A reviewer must be able to identify the trigger, the stored run and form versions, what causes each branch, how concurrent callbacks resolve only once, and which principal may publish versus execute. Include the message the customer receives before evidence arrives and after it is confirmed.
Return to Fundamentals or continue to integration architecture.