Skip to main content
PProfileMatch
← Path

Rate Limiting · Distributed Rate Limiting with Redis, 429 Responses and Retry-After

0 XP
  1. 1 current stop: learning
  2. 2 upcoming
  3. 3 upcoming
  4. 4 upcoming
  5. 5 upcoming

Finish after stop 5

Stop 1 of 5 · Four ticket windows, no shared book

Trick to keep in mind+3 XP

N servers with private counters means N times the limit.

Each server only knows the requests it saw, so each will happily allow the full limit. With the load balancer spreading traffic evenly, one client can use close to the limit multiplied by the number of servers before any single counter objects. A limit that must hold overall needs one shared place to count.

Read it once, then a question tests whether the trick stuck.