API Gateway WebSocket API → Application Load Balancer → AWS Fargate
Creates a WebSocket API and integrates with ECS Fargate using ALB.
This sample project integrates a WebSocket API with ALB and Amazon ECS Fargate.
A WebSocket client connects to the API endpoint url using the default route. Using http integration, API Gateway communicates with ALB which invokes a Fargate task. The Fargate task running FASTAPI framework receives the POST request and communicates back to API Gateway using the connectionId in the request context.