Build a Rate Limiter in Go — Part 4: Redis-Backed Distributed Rate Limiting
In-memory rate limiters break the moment you scale horizontally. In Part 4 we move state into Redis, introduce a Store interface for flexibility, and implement both sliding window and token bucket algorithms that work correctly across multiple instances.