- Newest
- Most votes
- Most comments
https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html
As noted here, this limit cannot be increased. Also there is a limit for max connection duration(2 hours) which cannot be increased for now.
We could consider to make the idle time customizable in the future, but it would be between 0 and 10 minutes, not extending beyond 10 minutes. Having longer idle time means that it will take longer to detect the client who disconnected without sending close message properly.
The purpose of maximum connection duration is to conserve our server resource while we provide high scalability on WebSocket API. Generally allocating resources longer makes harder to optimize the resource utilization.
We understand the current maximum connection duration is not enough for some use cases and will continue to work to improve it.
Alright that makes sense. I already handled the 10 minutes problem, so I can keep it as it is.
I've just noticed the 2 hours limit. Out of curiosity, why is that? It would be nice to have clients that stay connected and do not need to perform the connection handshake so often.
Thanks a lot for your support
Got it.
I think I'll replace the API Gateway infrastructure with an ELB and an EC2. As of now 2 hours means that our chargeboxes disconnects 12 times a day for about 10 minutes per time, which is really bad.
Hoping this limits will be improved soon.
Thanks
Relevant content
- asked a month ago
- asked 2 years ago
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago