An Azure service that provides an event-driven serverless compute platform.
Hi @Kim Strasser ,
Thanks for reaching out to Microsoft Q&A.
For mobile apps, ensure that your functions respond quickly; long-running functions can cause client timeouts.
- In
host.json, you can set a timeout for HTTP functions:
"functionTimeout": "00:05:00"
- If you are using premium or dedicated plan, you can allow longer timeouts. For consumption plan, max is 5 minutes.
Consider enabling CORS via the Azure Function App settings or via host.json
You can add maxOutstandingRequests and maxConcurrentRequests which helps throttle and prevent your Function from being overwhelmed if your game suddenly has high traffic, refer MSDOC.
host.json:
{
"version": "2.0",
"extensions": {
"http": {
"routePrefix": "api",
"maxOutstandingRequests": 200,
"maxConcurrentRequests": 100
}
},
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Trace"
}
},
"logLevel": {
"default": "Warning"
}
},
"functionTimeout": "00:05:00"
}
Hope this helps!
If the resolution was helpful, kindly take a moment to click on and click on Yes for was this answer helpful. And, if you have any further query do let us know.