Design a distributed Job Scheduler.

Code Playground
JavaScript (V8)
Loading...
Console Output
// Output will appear here...
// For React: ReactDOM.createRoot(rootElement).render(<App />);
Recommended Answer

System Design Scenario:

1. Requirements: Execute tasks at specific times (one-off or recurring crons).

2. Architecture:

* Store: DB table with execution_time.

* Poller: Leader node polls DB for "due" jobs (Locking needed).

* Executor: Pushes due jobs to a Queue.

* Workers: Pick up jobs from queue and run.

3. Reliability: Ack mechanisms, Dead Letter Queues.