Skip to content
Theory · Rate limiter · lesson 4 of 10

API and data model

A rate limiter has three contracts. The first is with the client: what it sees in every response and what it gets over the limit. The second is inside the gateway: what check every request makes. The third is with the operators: how rules change. Two data models are built for these contracts: counters and rules.

In this lesson

  • What the client sees
  • The check inside the gateway
  • The rule service API
  • Counters
  • Rules
  • Common mistake
  • Key points