- Newest
- Most votes
- Most comments
Yes, Service Connect does support persistent HTTP connections when ECS tasks communicate using HTTP 1.1. HTTP 1.1 assumes all connections to be persistent unless otherwise specified. In other words, persistent connections are the default behavior of any connection in HTTP 1.1. Service Connect doesn't modify the HTTP traffic, so the keep-alive functionality of HTTP 1.1 remains intact.
In your case, the requests between your nginx ECS task using the auth request module and another ECS task for authorization can take advantage of persistent HTTP connections. As HTTP 1.1 persistent connections are handled at the application level, and Service Connect doesn't interfere with this functionality, your tasks can benefit from connection reuse.
While there isn't a direct metric for connection reuse, you can infer this information by analyzing several CloudWatch metrics. ECS Service Connect supports HTTP/1, HTTP/2, gRPC, and TCP protocols, and provides metrics such as the number of requests, number of HTTP errors, and average call latency.
answered 2 years ago
Relevant content
asked 2 years ago
asked 2 years ago
asked 3 years ago
- AWS OFFICIALUpdated 8 months ago
