SpinTheMic
Pro

Interview practice question

A cron job runs on every server

System Design · Distributed Systems · Beginner

You deployed a nightly cleanup job on all 10 servers, and it now runs 10 times. How do you make it run once?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Only one instance should run.
  • Distributed lock or leader election.
  • Or a dedicated scheduler service.
  • Make job idempotent anyway.
  • Managed schedulers (cloud).
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics