All problems
Foundational·🛠️ Developer Tools·Google · Amazon

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.

#OOP#Scheduling#Priority Queue
Start Solving 6F + 2NF requirements inside

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.

01

Use a min-heap for efficient "next due" lookups

02

Model one-time vs. recurring schedules

03

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

Unlock Requirements

05 -  Companies that ask this

You may face this exact question in your next interview.

G
Google
A
Amazon

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