Keith van der Meulen
My feedback
-
88 votes
Here’s the latest as there seem to be 2 types of ask here and so two seperate updates. Need comments for if this issue should close to be focused on one or other:
1. I want to control how many calls my function can make to another API (the 3rd party API rate limiting).
– In all plans we now have a way to specify the max instances. This can limit how far a function app instance can scale: https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#limit-scale-out2. I want to stop my function from triggering more than x times an hour.
Nothing planned in this in the short term. Using API Management for HTTP functions with throttles would be our recommendation for HTTP, nothing out of box for non-HTTP triggers yet.Keith van der Meulen supported this idea ·
An error occurred while saving the comment
I have a storage queue to which I submit jobs that triggers a function that sends them to a third party rate-limited API. I would like an option to rate-limit my function so that if a burst of jobs are submitted to the queue, the function will only run once every `n` seconds so that I don't start getting 429 errors back from the API. The current singleton option in the host.json is global which would affect all my functions, not just the job submission function.