A gateway protects backends by rate limiting at the edge. The token bucket is the classic algorithm: requests spend tokens, and tokens refill over time. Write the bucket so it allows bursts up to its capacity and then paces the rest.
Premium Content
Subscribe to unlock full access to this content and more premium articles.
Get Premium
Subscribe to unlock full access to all premium content