I would like to ask how to deal with a situation when Azure Function is called many times at one moment?
Sample of code:
public static class SomeFunction
{
[FunctionName(nameof(TestFunction))]
public static Task<HttpResponseMessage> TestFunction(
[HttpTrigger(AuthorizationLevel.Function, "GET", Route = "Id/{id}")] HttpRequestMessage req,
long id)
{
return await databaseService.GetById(id);
}
}
My questions:
Is it possible that my database gets timeout?
Has azure function a request's management mechanism?
It is good idea to use static concurrent collection to manage requests?