Azure Function App 运行 是否同时存在多个实例?

Does Azure Function App run several instances at the same time?

如果我有这样的功能应用程序

   public static class Function1
    {
        private static readonly HttpClient httpClient = new HttpClient();

        [FunctionName("SomeRandomFunction")]
        public static async Task<IActionResult> Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)] HttpRequest req, ILogger log)
        {
            ulong i = 0;
            Thread.Sleep(10000);
            return (ActionResult)new OkObjectResult($"Hello thread Finished.");
        }
}

是否创建了函数的不同实例,如果不同,例如移动设备同时触发该功能?

我是从这个quote"When you're using the Premium plan, instances of the Azure Functions host are added and removed based on the number of incoming events just like the Consumption plan"推断出来的。我在S1计划。

然而,当我像上面那样在函数 "SomeRandomFunction" 中测试一个 thread.sleep 并从两个不同的私人浏览器 windows 两次调用相同的函数时,第二次调用仅在第一次调用时开始一个完成了。如果可以为同一功能应用程序创建多个实例,为什么会发生这种情况?

或者多线程实现需要同时有多个实例运行?

谢谢

Are different instances of the function created if different e.g. mobile devices trigger the function at the same time?

是的。来自文档:

The unit of scale for Azure Functions is the function app. When the function app is scaled out, additional resources are allocated to run multiple instances of the Azure Functions host. Conversely, as compute demand is reduced, the scale controller removes function host instances. The number of instances is eventually scaled in to zero when no functions are running within a function app.

Azure Functions scale and hosting