Skip to content
Theory · Redis in Practice · lesson 8 of 13

Rate limiting

The coffee shop gives water away for free, but one guest takes ten glasses a minute. The barista starts marking the board: next to the guest's name he draws a stroke for every glass. Five strokes in a minute and he pours no more, and at the start of a new minute he wipes the marks.

In this lesson

  • Fixed window
  • The window border
  • Sliding window
  • Common mistake
  • Key points