This is a sample blog post. Replace this content with your own writing.
The Problem
Rate limiting is one of those problems that looks simple until you have to make it work in a distributed system.
Token Bucket
The token bucket algorithm allows bursting while enforcing a steady-state rate...
type TokenBucket struct {
capacity int64
tokens int64
refillRate float64
lastRefill time.Time
mu sync.Mutex
}
More content coming soon.