What is going on
API has no rate limiting. Malicious users can spam endpoints with thousands of requests, causing DoS attack. Legitimate requests are throttled. API was designed but rate limiting was deferred as 'optimization' and never implemented.
No mechanism exists to slow down or reject excessive requests from single client.
Error messages you might see
Common causes
- Rate limiting not implemented at all, feature deferred
- Rate limiting framework installed but not activated
- Rate limit too high, effectively no limit
- Limit applies globally instead of per-IP or per-user
- No storage of request counts (memory resets, limit doesn't persist)
How to fix it
Implement rate limiting: library (spring-cloud-gateway, express-rate-limit) or custom middleware. Limit by IP: 100 requests per minute. Limit by user: 1000 per day. Store counts in Redis for persistence across restarts. Return 429 Too Many Requests when limit exceeded. Include Retry-After header indicating when to retry.
Getting help takes about a minute
No hiring, no back and forth. A real person looks at your app.
-
1
Describe it
Tell us what you need in plain words. You don't have to be technical or have an account to start.
-
2
Free 15-minute call
A verified developer calls you. Many tasks are sorted right there, and it costs nothing.
-
3
Pay after you approve
If there is more to do, you get one fixed price up front. You pay only once you are happy.
Real people, reviewed by hand
Developers who do this every day
Every developer is approved by our team before they can take a task. Describe yours and the first one who is free picks it up.
Get helpQuestions
What's a reasonable rate limit?
Public APIs: 100-1000 per hour per IP. Authenticated: 10000+ per hour per user. Adjust based on use cases.
How to implement with Redis?
Redis INCR + EXPIRE on keys like rate_limit:ip:192.168.1.1. Increment on each request, check if > limit.
Should rate limit reset?
Yes. Common: per minute, per hour, per day. Use EXPIRE in Redis: EXPIRE key 60 (expires after 60 seconds).