Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6457

Second request is being blocked until the first request response [closed]

$
0
0

My application is on ec2 instance on AWS with Ubuntu/Linux with PHP Laravel.

I have a Lambda API too so when I am making a request from my backend to lambda that's my first request.

The lambda calls the backend's second request my first request is dependent on the second request response. However, my second request only gets called when the first request gets a response.

I am attaching a screenshot of the logs that I noticed. I realized that lambda has a timeout of 28 sec so as soon the lambda gets called it starts the process and sends another request to the backend (from where it got the first request course on a different route) But the backend doesn't process the second request until the first request gets a response of timedout.

I have the same application running on a different environment where it is working correctly.

Lambda log where the first request get recieved and trying to make the second request

Backend Log


Viewing all articles
Browse latest Browse all 6457

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>