FastAPI and Flask Rate Limiting on Redis: 1.5× the Hits per Second

Murtaza Shajapurwala · 2026-11-17

slowapi, Flask-Limiter and anything built on the limits library run a Redis script on every rate-limited request. On limits' own script, a multi-threaded, Redis-compatible server served 1.5× the hits per second.