From the course: Azure for Developers: API Management

Unlock the full course today

Join today to access over 24,600 courses taught by industry experts.

Solution: Create a rate limit policy

Solution: Create a rate limit policy - Azure Tutorial

From the course: Azure for Developers: API Management

Solution: Create a rate limit policy

(upbeat music) - [Instructor] When you want to monetize your APIs and want to charge the clients for the server resources they are using, you can manage the number of calls for your API operations. In this solution, let's see how to create a rate limiting policy to achieve that. Limiting the number of calls for an API endpoint, or throttling, is a good way to monetize your APIs to balance the load and traffic on your servers. Let's go to the myrecipes_get endpoint design tab. APIs. Myrecipes, original version. Myrecipes_get. We have to catch the user request and check whether the limit of the number of calls exceeds before processing the request. In the inbound policies, click on the Add policy button. Select the limit call rate. Since it's not allowing to add policies from the code snippets, let's comment out the dynamic policy expressions. I will remove this rate limit policy as well. And save these. And…

Contents