We are using a React web app as frontend and Azure Function as backend. The user can upload a file through our frontend. The frontend then sends the file via a REST call to an Azure Function.
I observed a strange behaviour which I can't explain: I open the web app and upload a file which is 2 MB big. I trigger the REST call via button click. Nothing happens. After ~ 2,1 minutes the call stops without a response received.
When I open the web app and upload a file which is very small (~ 120 kb). I trigger the REST call via button click. The response is 200 -ok after about 20 seconds. Then I upload the same file from before (2MB big) and trigger the rest call, I receive a response in < 30 seconds with status code 200 -ok. So in general the backend can handle the file size.
Why is this happening?
Could a possible reason be azure functions cold start?
No error is present in Azure diagnostic tools.