'Prevent Gateway Timeout from AWS ALB while waiting for Nodejs Express response
I have an Express Nodejs application running in a Docker container on AWS ECS. The server renders images which can sometimes take over 2 minutes. Is there a possibility that the ALB does not cut the connection after 2 minutes?
And I know instantaneous rendering could also be solved with pre-rendering or caching, but that's not the question.
Sure, I could increase the ALB's idle timeout from 120 seconds to a higher value, but I might have thought that the Express application could reply with a keep alive or similar to the ALB request meanwhile. Is something like this possible and if so how?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
