Throttling Azure Functions using API Management
You have already learned in previous chapters that we can use Azure Functions' HTTP triggers as a back-end web API. To restrict the number of requests by client applications to, let's say, 10 requests per second, we would usually have to develop a lot of logic. Thanks to Azure API Management, we don't need to write any custom logic if we integrate Azure Functions with API Management.
In this recipe, you'll learn how to restrict clients to only one API request per minute for a given IP address. The following are the high-level steps that we'll follow:
- Creating an Azure API Management service
- Integrating Azure Functions with API Management
- Configuring request throttling using inbound policies
- Testing the rate limit inbound policy configuration
Getting ready
To get started, you need to create an Azure API Management service by performing the following steps:
- Search for API...