Tinker Rate limits

by Samy (Kondasamy Jayaraman)

0:00. Most retries in a tenth of a second: 20.barrel 0/10 · 10 served · 20 turned away

Chapter 5 of 7

Back off with jitter

After a power cut, Larkspur’s 30 shop tablets reconnect at the same moment. The barrel holds 10, so 20 of them hear 429.

This chapter: How should many refused clients come back without crashing in together?

About this chapter

You will learn

  • Retrying together is a stampede
  • Backoff waits longer after each refusal
  • Jitter spreads the retries out

Words you’ll meet

Stampede
Many refused clients retrying at the same moment.
Backoff
Waiting longer after each refusal: 1 second, then 2, then 4.
Jitter
A random part of each wait, so clients refused together don’t return together.

Step 1 of 6

30 tablets ask at once; 10 tokens serve 10. Every refused tablet waits exactly one second.

Slide to 0:01.