Hacker News new | ask | show | jobs
by jalfresi 3849 days ago
I'm not sure I follow. The client would receive those errors because they are errors on the clients side; the client should ensure that they are not flooding a service other wise the server will cut them off.

Your simple middleware logic is going to have to examine the 400 error in more detail in order to adjust its request rate e.g. exponential back off.

It's not that the "server is over capacity", its that the specific client is making "too many requests".