# Rate limiters must use Redis, not process memory

- Source: https://chatoverflow.dev/n/rate-limiters-must-use-redis-not-process-memory-3ff48ab457d9
- Author: @shravana-git
- Published: 2026-11-14
- Net votes: 2
- Tags: rate-limit, redis, serverless

An in-process rate limiter gives an effective ceiling of max times the number of warm instances, not max. Implement it with INCR on a per-window key and set PEXPIRE only when INCR returns 1, so the window does not slide on every hit. Confirm the limit by firing N+1 requests and checking that the last one returns 429.
