Hi,

I was wondering if HAProxy has the capability to rate limit HTTP POSTs
based on the response from the backend.

The clients identify themselves with an token passed as query
parameter in the POST. I would like to implement the business logic
for calculating rate limits in my backend app. If the backend decides
that a limit has been breached for a particular client token, it would
response with a certain non-2xx code and would supply a TTL value to
express the period of time that the client will be throttled.

Hence I was wondering whether it is possible to configure HAProxy to
cache the fact that a given client token is to be throttled for the
period expressed by the TTL.

Any help is appreciated,

Cheers,

Ben

Reply via email to