Design
Job Scheduler (Cron-like Task Runner)
Design a task scheduler that runs jobs at fixed intervals or specific times, similar to a basic cron system.
01 - Why interviewers ask this
It tests whether you reach for the right data structure (a priority queue/min-heap) for "always run the soonest thing next" instead of repeatedly scanning a list.
02 - Where this system exists in the real world
You interact with this design every day.
Cron/task schedulers (cron, Windows Task Scheduler)
Background job runners in web frameworks
CI/CD pipeline scheduled triggers
03 - What you'll master
Solve this once. Know it forever.
Use a min-heap for efficient "next due" lookups
Model one-time vs. recurring schedules
Implement retry with exponential backoff
04 - What you'll design
6 functional · 2 non-functional requirements.
Schedule a job to run once at a specific time
5 more requirements inside
Sign in to unlock the full brief and start designing
05 - Companies that ask this
You may face this exact question in your next interview.
Ready?
Open the canvas.
Design it yourself.
See all requirements, use staged hints, run your code, and compare with community discussions - all on the same canvas.
Start Solving