Azure Logic Apps - Rate Limit Exceeded Error When Calling Third-Party APIs
This might be a silly question, but I'm currently working with Azure Logic Apps to integrate with a third-party API for customer data synchronization. I've set up a simple workflow that triggers on a scheduled basis and then calls the API to fetch new records. However, I keep running into a `429 Too Many Requests` error after several executions, indicating that I've hit the rate limit for API calls. To mitigate this, I've added a delay action to my Logic App, but it doesn't seem to help. My current delay configuration is set to 10 seconds between calls, but the API documentation states that it allows 100 requests per minute. Here's a snippet of my Logic App definition: ```json { "type": "Microsoft.Logic/workflows", "apiVersion": "2016-06-01", "properties": { "definition": { "$schema": "http://schema.management.azure.com/schemas/2016-06-01/workflowdefinition.json#", "actions": { "HTTP": { "inputs": { "method": "GET", "uri": "https://api.example.com/v1/customers" }, "runAfter": {}, "type": "Http" }, "Delay": { "inputs": { "interval": "PT10S", "count": 1 }, "runAfter": { "HTTP": ["Succeeded"] }, "type": "Delay" } }, "triggers": { "Recurrence": { "recurrence": { "frequency": "Minute", "interval": 1 }, "type": "Recurrence" } } } } } ``` I've tried modifying the trigger to run every 2 minutes instead of 1 minute, but it only slightly reduces the frequency of the errors. Additionally, I have enabled the `Retry Policy` for my HTTP action, but I still keep hitting the rate limit. Is there a better approach or best practices on how to handle rate limiting in Azure Logic Apps, especially when dealing with external APIs? Are there specific configurations or patterns that can help prevent this issue? Any insights would be greatly appreciated! My development environment is Windows. Any help would be greatly appreciated! What are your experiences with this?