text
**Summary** Rate limiting for the public search endpoint moves from a per-process in-memory counter to a shared Redis counter, so the limit now applies across all application instances rather than per instance. **Files Changed** - `src/middleware/rate_limit.py` — replaces the module-level `defaultdict` with a Redis-backed sliding window. - `src/config.py` — adds `REDIS_URL` and `SEARCH_RATE_LIMIT_PER_MINUTE`, both required at startup. - `tests/test_rate_limit.py` — new tests covering the wind
Pull request description from a git diff
Turns raw git diff output into a structured PR description covering summary, files changed, significant code, reasoning, project impact, a test plan and reviewer notes.
Score 0
0 comments1 results