All Questions
Managing Long Running Tasks hard

How do you detect if a worker has silently hung (frozen) while processing a task, rather than crashed?

  1. A Ping it.
  2. B The worker must periodically send a 'Heartbeat' or renew its 'Lease' on the task. If the heartbeat stops (lease expires), the coordinator re-queues the task for another worker.
  3. C Restart the server.
  4. D Check CPU usage.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions