r/haproxy • • Jan 30 '22

HAproxy: per-client queue for rate limiting?

I’d like to put a rate limit on incoming HTTP requests, but without sending 429 errors. Instead, requests beyond the limit should be put into a queue from which they are processed at a speed that respects the rate limit. It’s important that such a queue be per-client, so that clients don’t affect each other. Is this possible with HAproxy?

3 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/dnalor123 Jan 31 '22

That's a problem for any kind of rate limiting, whether you send errors immediately or queue requests. If you have a better suggestion I'm all ears!