Design and implement a rate limiter in Go with token bucket or sliding window, per-client keys, and distributed coordination.
## CONTEXT My Go API needs rate limiting to protect downstream resources and ensure fair use. I want a limiter that supports per-client keys, a chosen algorithm such as token bucket or sliding window, and distributed coordination across instances when needed. Assume current Go and a shared store like Redis in…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro