endpoint: https://api-gateway-backend-6akl.onrender.com/api/v1/stock-pricelimit: 5 req / 10salgorithm: Fixed-Window Counterstore: Redis
Total Sent
0
all requests
Allowed
0
HTTP 200 OK
Blocked
0
HTTP 429
Block Rate
0%
of all traffic
Rate Window Usage0 / 5 req
Counter resets every 10 seconds. Each Redis key auto-expires via TTL.
200 OK — Allowed429 — Rate Limited
Traffic Log
0 entries · last 50📡
No traffic yet.
Click "Send Request" or "Burst Attack" to begin.
How It Works — Fixed-Window Algorithm
- Each request hits FastAPI, which extracts the client IP.
- A Redis key is built: ratelimit:<ip>:<window_bucket>
- Redis INCR atomically increments the counter.
- On first increment, EXPIRE 10 is set — Redis auto-deletes the key after 10s.
- If counter > 5 → HTTP 429 Too Many Requests. Otherwise → 200 OK.