The interview problem

Practice prompt

A manufacturer wants to replace its order-to-warehouse integration this weekend. Orders continue arriving at 20 per second. A duplicate warehouse dispatch is expensive, and a missed dispatch delays a customer. The business allows a 15-minute processing interruption and asks for a 24-hour rollback window. Design the cutover and explain exactly what rollback means after the new integration sends its first dispatch.

Original FDE practice, not a reported company interview. Rates, deadlines and systems are hypothetical. Official technical references retrieved September 27, 2026.

1. Turn the request into an operational contract

Keep order acceptance available through a durable intake log while dispatch processing pauses. The interruption budget applies to dispatch eligibility-to-send delay, not permission to lose orders. Clarify whether cancellations and order edits must remain available; this solution records them in the same per-order ordered stream and serializes dispatch authorization against order updates. An accepted cancellation before authorization prevents a new dispatch; a cancellation racing after authorization follows the warehouse cancellation/compensation contract rather than a promise to recall an already admitted send. A completed physical shipment cannot be undone by restoring a database.

Define a dispatch business key from tenant, order and fulfillment revision. Old and new integrations must preserve that key. The warehouse must atomically deduplicate repeated requests by key, reject a reused key with different business content, and expose status by key. Confirm retention covers delayed retries and the rollback window. If the receiver lacks these guarantees, unresolved sends must be reconciled before handover; an internal “sent” flag cannot rule out a dispatch whose acknowledgment was lost.

Name a customer business owner who accepts service impact, an incident commander who decides abort versus continuation, and technical owners for intake, warehouse, old adapter and new adapter. Require these people or named delegates to be reachable during cutover. The FDE owns the evidence and coordination rather than silently accepting risk on the customer's behalf.

2. Share durable truth and isolate side effects

order intake → durable ordered log → active adapter → dispatch gateway → warehouse
                         ↘ shadow adapter → comparison results only
shared operation ledger: business key, payload hash, source position, receiver result
ownership registry: tenant cohort, active adapter, epoch, cutover state

The gateway is the sole route for warehouse writes. Remove direct credentials from adapters before rehearsal. Shadow execution may transform and compare orders but cannot dispatch. This is dual computation with one side-effect owner, not two independently active dispatchers.

Admission to the gateway checks a durable ownership epoch. Handover closes admission for the old owner, drains or resolves already admitted requests, and then changes the owner. A cached epoch check made before a network call is insufficient: a paused old worker could resume after ownership changes. The gateway must track admitted work through its external result and retain deduplication records across the transition. If it restarts mid-send, query the warehouse by business key or retry with the same key under the verified receiver contract.

Ownership changes and cutover cancellation use a serialized registry transition. An uncertain control-plane response requires reading the authoritative state; do not let two operators independently “restore” old and “activate” new. Block new gateway admission if ownership cannot be established.

3. Rehearse against business evidence

Replay representative orders, revisions, cancellations and partial fulfillments into a non-dispatching comparison path. Compare normalized payloads and eligibility decisions by business key, not only total row counts. Equal counts can hide one missing and one duplicate order. Exercise a lost warehouse acknowledgment, old-worker restart, gateway restart and failed ownership transition.

Before the window, verify retention, credentials, schema compatibility, source positions and operator access. Record the software versions, checkpoint schema and replay command in the runbook. Demonstrate that the old adapter can consume the shared ledger after the new adapter has written it. A 24-hour rollback promise is unsupported if the new version immediately emits records the old version cannot interpret.

Set gates before observing results: zero unexplained missing or duplicate business keys at the handover boundary, no unresolved external-send outcomes, and a measured capacity margin at expected load. Normalization exceptions need an owner and written reason; do not make a broad “ignore differences” switch to get through the window.

4. Execute with explicit checkpoints

StageAction and ownerEvidence to proceed
PrepareCommander confirms staffing and customer notice; intake owner verifies bufferingRunbook versions, recovery rehearsal and queue capacity recorded
QuiesceGateway owner closes old admission; intake remains durableAll admitted sends terminal or reconciled; old checkpoints frozen
ReconcileIntegration owners compare log positions, operation ledger and receiver resultsBoundary recorded per partition; no unexplained key differences
ActivateRegistry owner advances epoch and admits new adapterOld admission denied, new owner authoritative, first outcomes verified
ObserveCustomer and on-call owners monitor queue age and business outcomesBacklog draining; no duplicate effects; named warranty owner

A multi-partition source has a boundary vector, not one magic global offset. The new adapter resumes each partition after the frozen old processing checkpoint and consults the shared operation ledger. A checkpoint advances only over a contiguous prefix of durably classified records: completed dispatch, explicit no-dispatch decision, or a durable pending obligation that the new owner is proven to load. Do not skip an unresolved item merely because later records finished. Reading a message is not equivalent to completing its business effect. Preserve per-order ordering when choosing partitions.

Allow an initial 10-minute quiesce/reconciliation budget, retaining five minutes of the allowed interruption for a pre-activation abort. If a required outcome remains unknown at the decision deadline, keep new admission closed and execute the rehearsed old-owner recovery only after registry state is confirmed, preserving unknown operations in the shared ledger for same-key recovery. Resuming the old owner does not authorize blind resends or discard the unresolved state. An unresponsive warehouse can make the 15-minute objective unattainable; report that immediately rather than creating duplicate sends to satisfy a clock.

5. Trace the dangerous in-flight order

At 01:00:00 the old adapter submits order K, revision 3, under epoch 7. The gateway admits it. At 01:00:01 the warehouse creates dispatch D but its response is lost. At 01:00:02 the commander closes old admission. The gateway must classify K as outcome unknown, not failed. The new adapter cannot use revision 4 or a fresh random key to “retry” the same fulfillment.

The gateway queries K at the warehouse and records D in the shared ledger. It then completes the drain. Ownership advances to epoch 8. If the new adapter replays K, the gateway returns the recorded result; if its ledger update had also been lost, receiver deduplication with the original key still prevents a second dispatch. A stale epoch-7 worker is rejected for new admission. A genuine later order revision requires explicit business rules to avoid dispatching goods already shipped.

If the warehouse status query is eventually consistent, an initial not-found result does not prove the first send failed. A same-key retry is safe only under the promised atomic receiver deduplication. Without that contract, hold the item for receiver-side reconciliation and delay activation if the uncertainty crosses the handover boundary.

6. Calculate the backlog and recovery time

At 20 orders/second, a 10-minute processing pause buffers 12,000 orders. At 2 KB per intake record, that is 24 MB of payload before replication, indexes and operational overhead. Fifteen minutes requires 18,000 records or 36 MB. These sizes are small, but durable capacity and retention must also cover a much longer failure scenario.

If the new adapter sustainably completes 50 orders/second while arrivals remain 20/second, net backlog drainage is 30/second. The 12,000-order backlog clears in 400 seconds, or 6 minutes 40 seconds after activation. That is 16 minutes 40 seconds from the start of the pause. It does not mean every order waited that long: with FIFO processing and these idealized rates, the oldest buffered order waits about the 10-minute pause, and later waits shrink. Queue age, burst arrivals and head-of-line failures need separate monitoring.

If downstream throttling reduces completion capacity to 18/second, backlog grows by two orders/second, or 7,200 per hour. A green process-health check does not establish recovery. Demonstrate sustainable receiver-inclusive throughput in rehearsal, including retries and rate limits; do not confuse worker concurrency with successful dispatch capacity.

7. Define the rollback boundary honestly

Before the new adapter creates any external business effects, abort can restore old ownership after confirming the gateway is drained and checkpoints are intact. After activation, rollback means stopping new admission, resolving its in-flight outcomes, reconciling the shared ledger, and returning execution ownership to the old adapter with an epoch advance. It does not erase warehouse dispatches.

For the promised 24 hours, retain compatible schemas, old deployment artifacts, intake history and operation results. Rehearse the reverse handover with records produced by the new version. Keep irreversible schema changes and destructive cleanup outside this window. If the old adapter cannot represent new business state, choose a tested compatibility path or fix forward; changing a route back to stale state is not a recovery plan.

A duplicate physical dispatch needs a business compensation workflow, potentially warehouse interception or a customer return. That is separate from software rollback and may not be reversible. Record affected keys, decisions and customer ownership. Avoid promising exactly-once end-to-end business behavior unless the complete receiver contract supports the claim.

8. Follow-ups and self-review

Follow-ups: What if only one tenant should move first? Give cohorts separate ownership and business keys while checking shared warehouse limits. What if the source cannot pause? Continue durable intake and pause only dispatch admission. What if the old service bypasses the gateway? The single-owner invariant fails; remove that path before cutover. What evidence ends the warranty period? Reconciled business keys, stable queue age, resolved incidents and customer acceptance with a named steady-state owner.

Score 0–2 each for defining the business interruption, enforcing one side-effect owner, resolving uncertain sends, calculating recovery capacity, and proving the reverse path after new writes. A strong FDE answer includes customer decision rights and actionable evidence for every checkpoint.

Sources and next steps

The dispatch gateway, ownership protocol, order trace, gates and capacity calculations are original design choices. Continue with integration reconciliation and operational ownership handover.

Continue your preparation

Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.