2 Answers
- Newest
- Most votes
- Most comments
1
API Gateway supports Web Sockets, which are based on HTTP. It does not support generic TCP connections.
You will need to use an NLB that front maybe some containers that run on Fargate, so you do not need to manage the infrastructure. This is not a serverless solution though.
0
You can use Lambda function for your code and host an Application load balancer with required port listener and target group to run your lambda function.
answered 2 years ago
Relevant content
- asked 3 years ago
- asked 4 years ago
- AWS OFFICIALUpdated 2 years ago
ALB only supports HTTP traffic, not arbitrary TCP connections. An NLB supports TCP traffic, but it does not support Lambda in the taaget group.