Design a Task Scheduler
0%
Editorial Solution
System requirements
Functional
Capacity estimation
Steady-State
API design
Create One-Time Task
Database design
PostgreSQL, tasks Table
High-level design
Request flows
Task Creation and Execution Flow
Detailed component design
Atomic Task Claiming (GATE)
Trade-offs and tech choices
DB-Only Polling vs DB+Redis Two-Tier
Failure scenarios
Redis Failure
Future improvements
Full Cron with Timezone Support
Table of Contents
Premium content
UnlockPremium content
UnlockPremium content
UnlockPremium content
UnlockPremium content
UnlockPremium content
UnlockPremium content
UnlockPremium content
UnlockPremium content
UnlockPremium content
UnlockTry this problem yourself
Reading a solution is not the same as producing one under interview pressure. Design it on the whiteboard and get scored feedback.
0%
Editorial Solution
System requirements
Functional
Capacity estimation
Steady-State
API design
Create One-Time Task
Database design
PostgreSQL, tasks Table
High-level design
Request flows
Task Creation and Execution Flow
Detailed component design
Atomic Task Claiming (GATE)
Trade-offs and tech choices
DB-Only Polling vs DB+Redis Two-Tier
Failure scenarios
Redis Failure
Future improvements
Full Cron with Timezone Support