Forum Discussion

sejhemming's avatar
sejhemming
Copper Contributor
Jun 04, 2021
Solved

Azure Function and scaling

I'm just starting to investigate Azure Functions and have a question.

Suppose I have a function that takes some input performs a (lengthy) calculation on it and then returns the result.

If I make 2 calls on this function such that the first is still running when I call the second, does the second one just wait until the first is complete? Does Azure run up another copy?

What if I make 50 or a 100 calls? At what point does Azure do it's magic to do something about the backlog?

(For the purposes of this question, I'm going to assume that the cost is not an issue)

  • sejhemming 

    Hi,

    Azure Functions uses a component called the scale controller to monitor the rate of events and determine whether to scale out or scale in. The scale controller uses heuristics for each trigger type. 

     

    For detailed hosting plans refer below:

    https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale

     

    Rgeards,

    Bala.

1 Reply

  • batthota's avatar
    batthota
    Copper Contributor

    sejhemming 

    Hi,

    Azure Functions uses a component called the scale controller to monitor the rate of events and determine whether to scale out or scale in. The scale controller uses heuristics for each trigger type. 

     

    For detailed hosting plans refer below:

    https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale

     

    Rgeards,

    Bala.

Resources