Pick the fix
Each of 50 servers enforces 100 requests/min in memory. A client sees about 5,000/min accepted. Fix?
Hint 1 of 1
Where does each server keep its count?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Keep the counters in a shared store like Redis and update them atomically
Correct. One limit across all servers.
Each server only sees its own share of the traffic, so 50 separate limits add up to 50 × 100. A shared counter updated atomically gives one limit no matter which server gets the request.
Why not the others?
- B Lower each server's limit to 2. Uneven load balancing makes this wrong for most clients.
- C Add more servers. Raises the effective limit further.
- D Use sticky sessions. Clients can still spread across connections.