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

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

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock
Try 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.


Markdown supported

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

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