Amazon Interview Question: Design a Delayed Job Scheduler (Timers, Leases, and Exactly-Once Execution)
This story is from 2026-09-23. It is preserved in the archive; the latest stories are on the live feed.
Every candidate can write the first version of this in about thirty seconds. new Thread(() -> { Thread.sleep(delayMillis); runJob(job); }).start(); That code is correct in the narrowest possible sense. It also falls over at roughly 10,000 jobs, forgets everything the moment the process restarts, an…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-09-23 03:31 · DEV Community — AI
Amazon Interview Question: Design a Delayed Job Scheduler (Timers, Leases, and Exactly-Once Execution)