SpinTheMic
Pro

Interview practice question

Midnight batch jobs crash the database

System Design · Scalability · Intermediate

Thousands of customers' scheduled reports all run at exactly midnight and overload the database. How do you fix it?

What a strong answer covers

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

  • Spread schedules with jitter.
  • Queue jobs and limit concurrency.
  • Run reports on replicas or warehouse.
  • Precompute shared data once.
  • Let customers pick off-peak times.
Practise this topic

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

See all topics