Skip to content
Hard Design: Distributed Task Scheduler (Cron at Scale)

Why should a task scheduler use atomic database operations (UPDATE with WHERE clause) when claiming tasks?

— Tests your understanding of this concept.

Answer Options

A For better performance
B To prevent two scheduler instances from claiming the same task simultaneously (race condition)
C Database requires it
D To support rollback on failure

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 22+ more Design: Distributed Task Scheduler (Cron at Scale) questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Design: Distributed Task Scheduler (Cron at Scale) topic (System Design Cases).

More Design: Distributed Task Scheduler (Cron at Scale) Questions