Skip to content
Forward Deployed

Forward Deployed
System Design Practice

Reliable Workflow Orchestration System

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

Read the worked design: Reliable Workflow Orchestration System

PracticeAdvanced3 min read
For
Engineers preparing for Forward Deployed, solutions or applied-AI engineering interviews
Assumes
  • Two or three Discovery Foundations scenarios completed
  • Comfort with retrieval, agents, queues and multi-tenant cloud architecture
Objectives
  • Find the one constraint that makes the scenario dangerous before designing
  • Defend an architecture, evaluation plan and rollout under follow-up questions
How to use it
Allow about an hour. Work the discovery sections properly — they decide the design — then compare each section with the model answer and score yourself honestly.

Condensed from the sources credited on the How It Works page

0/36
Not saving
01

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.

02

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?
03

Users and workflows

UserWorkflowCurrent painAI assist opportunityHuman approval needed?
Workflow participant
Operations team
Application developer
Auditor
04

Requirements

Functional

Non-functional

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

Data and integration map

Data sourceFormatOwnerFreshnessPermission modelRisk
06

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
07

Evaluation plan

MetricGood thresholdBad thresholdTest datasetOwner
Duplicate business effects0Even one repeatIdempotency key logsReliability team
Replay determinismSame decisions on every replayOne divergent decisionReplay jobs over stored historyRuntime engineering
Age of stuck workflowsInside the expected waitPast the agreed limitQueue and state inspectionOperations
Manual repairsInside agreed toleranceOver toleranceOperator ticket recordsSupport operations
08

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
09

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

Evaluation
The closer

Final 2-minute spoken answer

Rehearse this out loud before you look at it. Summarising the whole design in two minutes is its own skill, and it is usually the last thing you are asked for.

Where next

Read the worked design
Reliable Workflow Orchestration System
Revise the concepts