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

Anjo Joseph 1 Reputation point
2021-05-12T08:15:46.083+00:00

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
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
622 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. TravisCragg-MSFT 5,681 Reputation points Microsoft Employee
    2021-05-14T18:44:30.31+00:00

    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.

    0 comments No comments