question

AnjoJoseph-6224 avatar image
0 Votes"
AnjoJoseph-6224 asked TravisCragg-MSFT answered

How to implement custom logic for API throttling/rate limiting using AFD

How to rate limit API access based on request header value in AFD (Azure Front Door)? For sample, the request contains header called "idKey" and the value is unique to customer. For each customer, they should be able to access only 100 req/min. More than that they should receive 429 (Too Many Requests) response status code. We have set up multiple app-services (region wise) behind the AFD.

azure-front-door
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

TravisCragg-MSFT avatar image
0 Votes"
TravisCragg-MSFT answered

Azure Front Door does not have any API throttling capabilities, it is designed to be an edge endpoint for sites with a global footprint. If you are looking for an Azure solution with native API throttling, take a look at Azure API Management.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.