PrepCity

Design a job scheduler

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 13 pages · about 12 min

Design a job scheduler

Run each job at its time, once: a table indexed by the next time, claim and queue, spread the midnight burst, and keys that make retries harmless.

Words you’ll learn

  • Payment provider
  • Burst
  • Idempotent
  • Retry
  • Cron
  • Row
  • Queue
  • Worker
  • Jitter
  • At-least-once delivery

Page by page