Backend Developer

Case File: Try Again, But Not Too Fast

Background jobs call a partner service that is sometimes down, and when it recovered, a thousand jobs retried at the same second and knocked it over again. Write exponential backoff: wait base, then twice as long, up to a cap, stop at the first success, give up after a fixed number of attempts, and total the waiting. Run the scheduler on job lists you cannot see. The jobs are generated for you alone.

50 min

Case File: Try Again, But Not Too Fast

Background jobs call a partner service that is sometimes down, and when it recovered, a thousand jobs retried at the same second and knocked it over again. Write exponential backoff: wait base, then twice as long, up to a cap, stop at the first success, give up after a fixed number of attempts, and total the waiting. Run the scheduler on job lists you cannot see. The jobs are generated for you alone.

In this lesson:

  • retries
  • backoff
  • jobs
  • reliability
  • python
  • case-file

๐Ÿ”’ This lesson is part of a paid plan

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

This lesson is part of a paid plan

Upgrade to Pro to unlock this course, its labs and its exam.

View Pricing Plans