Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Scheduled Fan-Out Delivery Platform

Deliver a scheduled message to between one and ten thousand recipients within one second of its due time.

Problem statement

For this exercise, assume that a producer schedules one immutable message and recipient set, then observes durable delivery progress around the due time. Create, update, or cancel a scheduled message before an explicit cutoff. Fan out to 1-10,000 recipients within one second of scheduled time.

Record per-recipient accepted, delivered, failed, or expired outcomes. Retry transient failures without producing duplicate user-visible messages. Assume 100,000 scheduled messages become due in the busiest second, each with up to 10,000 recipients.

Dispatch accepted recipient tasks within one second of due time at p99. Retain schedules and delivery evidence for thirty days; a scheduler or worker failure must not lose accepted work.

Preserve this invariant: one schedule version creates at most one logical delivery per recipient and cancellation after the cutoff has explicit best-effort semantics. Keep unrelated product features and company-specific infrastructure outside the first version.

What to build

  1. Create, update, or cancel a scheduled message before an explicit cutoff.
  2. Fan out to 1-10,000 recipients within one second of scheduled time.
  3. Record per-recipient accepted, delivered, failed, or expired outcomes.
  4. Retry transient failures without producing duplicate user-visible messages.

At scale

  • For this exercise, assume 100,000 scheduled messages become due in the busiest second, each with up to 10,000 recipients.
  • For this exercise, dispatch accepted recipient tasks within one second of due time at p99.
  • For this exercise, retain schedules and delivery evidence for thirty days; a scheduler or worker failure must not lose accepted work.