Skip to content
Forward Deployed

Forward Deployed
Additional System Designs

Reliable Workflow Orchestration System

By Sourav Banerjee · Last updated 13 Oct 2026 · Report an issue

Practise this as a worksheet: Reliable Workflow Orchestration System

Case studyAdvanced11 documents, 107 min in total
For
Engineers preparing for Forward Deployed, solutions or applied-AI engineering interviews
Assumes
Comfort with retrieval, agents and basic cloud architecture — the related reviews below cover each
Objectives
  • Explain a complete design and the trade-offs behind it
  • Reuse its structure on an unfamiliar design question
How to use it
Read the tabs left to right; a single-document case is complete on its own. Where a Practice Worksheet exists, attempt it before the Model Answer.
Reading order
  1. Practice Worksheet · 3 min
  2. Model Answer · 12 min
  3. Tutorial 1 · 11 min
  4. Tutorial 2 · 7 min
  5. Tutorial 3 · 10 min
  6. Tutorial 4 · 10 min
  7. Tutorial 5 · 9 min
  8. Tutorial 6 · 9 min
  9. Tutorial 7 · 12 min
  10. Tutorial 8 · 13 min
  11. Tutorial 9 · 11 min
Sources
The references for every tab are in Tutorial 9 → Sources (checked 27 Sep 2026).

Condensed from the sources credited on the How It Works page

Practice Worksheet · 3 min — Attempt the case yourself first. Read-only here — use the interactive version to save answers.

Reliable Workflow Orchestration System - Case Study Worksheet

1. Interview prompt

Design a GenAI FDE (Forward Deployed Engineer) solution for a Reliable Workflow Orchestration System. One business process spans a document approval, a payment, an email and three internal systems, and any step can fail or sit waiting for days. Here, "exactly once" refers to the business outcome, not to individual messages.

2. Clarify the customer problem

  • Which event tells us a workflow has truly finished?
  • When a step fails, do we undo it or run a compensating action?
  • How long can each step wait: minutes, hours or days?
  • Who has authority to resume, rerun or override a single case?
  • Will the payment provider accept an idempotency key?

3. Users and workflows

User Workflow Current pain AI assist opportunity Human approval needed?
Workflow participant
Operations team
Application developer
Auditor

4. Requirements

Functional

Non-functional

  • Latency target:
  • Availability target:
  • Cost budget:
  • Security/privacy constraints:
  • Audit/compliance requirement:

5. Data and integration map

Data source Format Owner Freshness Permission model Risk

6. Proposed architecture

Fill in each part of your architecture for this case:

  • Durable state and history:
  • Scheduling:
  • Timers and signals:
  • Activity workers:
  • Compensation:
  • Operator repair:

7. Evaluation plan

Metric Good threshold Bad threshold Test dataset Owner
Duplicate business effects 0 Even one repeat Idempotency key logs Reliability team
Replay determinism Same decisions on every replay One divergent decision Replay jobs over stored history Runtime engineering
Age of stuck workflows Inside the expected wait Past the agreed limit Queue and state inspection Operations
Manual repairs Inside agreed tolerance Over tolerance Operator ticket records Support operations

8. Failure modes

  • A worker dies just after the payment goes through
  • The email sends but the CRM (customer relationship management) write fails
  • An approval sits untouched for seven days
  • A new definition ships while old instances still run
  • An external API never returns
  • Two workers try to move the same instance forward

9. Rollout plan

  1. Start with a single workflow; skip the platform.
  2. Make crash recovery the first gate.
  3. Show that no side effect happens twice.
  4. Give operators visibility early.
  5. Practise resume and compensation drills.
  6. Publish new versions; never edit live ones.

10. Weak vs strong answer

Weak: "I'd write an orchestrator that calls each API one after another and retries when something fails."

Strong: "I'd guarantee exactly once for the business effect. An append-only history writes the intent before each step runs. Receipts are stored by idempotency key. Waiting is a proper timer state. Every step has its own compensation. Each instance stays pinned to the definition version it started on."

11. Candidate scorecard

Area 1 3 5 Score
Problem framing "We need an orchestrator" Lists the steps Exactly once for the business outcome
Architecture Calls APIs in a chain Keeps durable state Timers, signals, per-step compensation
Evaluation "It finished" Counts failures Duplicates and replay determinism
Production thinking Builds a platform first Pilots one process Crash-recovery gate, operator repair
Communication Walks through the engine Mostly clear Opens with the double-charge case

Where next

Practise this as a worksheet
Reliable Workflow Orchestration System
Revise the concepts