Distributed

Lesson 08.4

Rate limiting algorithms

Rate limiting controls how many requests a principal may make over time, using algorithms with different burst behavior, precision, and state costs.

A promotion creates a short legitimate burst

Ava's cookie sale starts now. The computer may allow a short busy burst but must keep the longer rate safe.

In this lesson you'll

  1. 1Apply a rate rule to actual request times, including a clock boundary.
  2. 2Predict what changes before revealing the result
  3. 3Help Ava keep the rules during the new rush