Tinker Rate limits

by Samy (Kondasamy Jayaraman)

Your requests at Larkspur’s barrel, live.barrel 10/10 · 0 served

Chapter 3 of 7

The token bucket

The per-minute count let a double burst slip through at its edge. The team swaps it for a rain barrel of tokens that drips back in steadily.

This chapter: What do the barrel’s size and its drip each control?

About this chapter

You will learn

  • Each request spends one token
  • The size sets the biggest burst
  • The refill rate sets the steady pace

Words you’ll meet

Token bucket
A barrel of tokens: each request spends one, and tokens drip back in at a steady pace.
Burst
Many requests at once; the barrel’s size sets how many it serves together.
Refill rate
How many tokens drip back in each second: the steady pace allowed.

Step 1 of 5

A : each request spends one token from the barrel, and tokens drip back. This one holds 10.

Press Send 10.