AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

APIs and microservices: retries, backoff and the outage the retries made worse

See when a retry helps and when it only adds load, how backoff with random jitter spreads out retries, and why three services that each retry twice turn one failing call into twenty-seven.

Calls between services fail for small reasons, such as a dropped connection or a busy moment, and a retry often fixes them. But retries are extra load, and in a chain of services they multiply. A system that is slowing down can be pushed over by its own retries: a retry storm.

This course models retries, backoff and amplification with small Python programs you can run in your browser. Python stands in for the services: the code is not a framework's configuration, but the probabilities and multiplications it shows are exact. Check your client library's documentation for retry, backoff and circuit-breaker settings. All numbers are made up.

  • Learn lessons explain one idea at a time and let you run it.
  • Industry ready lessons decide and justify, and end with interview questions.

No microservices experience is assumed. Basic Python helps.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 25 min Free sample 🔒 AiTeky Pass When a retry helps Work out how much a retry raises the chance of success for a brief failure, and see that for a real outage it only adds load.
  2. 02 25 min 🔒 AiTeky Pass Spread the retries out Compare 1,000 clients retrying at the same instant with clients that wait random amounts, and see why backoff plus jitter keeps a recovering service from being hit by a wall of requests.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 03 30 min 🔒 AiTeky Pass On the job: the outage the retries made worse A slow database became a total outage because three layers of services each retried. Count the amplification, compare four fixes by effort and risk, choose, and write the note.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in