Go Wiki: Rate Limiting
Practical Go Team guidance for ticker-based and token-bucket rate limiting patterns.
Practical Go Team guidance for ticker-based and token-bucket rate limiting patterns.
- Author: Go Team
- Authority: primary
- Kind: wiki
- URL: https://go.dev/wiki/RateLimiting
What it covers
- ticker-based throttling
- token bucket patterns
- basic rate-limiting tradeoffs
Why authoritative
Official Go wiki guidance for common rate-limiting designs.
Use when
- how should I rate limit in Go
- should I use a ticker or token bucket for throttling
- what is the idiomatic Go rate limiting pattern
Keywords
- rate limiting, throttling, token bucket, ticker, requests per second