[{"data":1,"prerenderedAt":64},["ShallowReactive",2],{"pattern-apigw-alb-fargate":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":29,"level":30,"meta":31,"patternArch":32,"resources":51,"s3URL":6,"services":6,"stem":59,"testing":60,"videoId":6,"__hash__":63},"patterns\u002Fpatterns\u002Fapigw-alb-fargate.json","WebSocket API integration with ALB and Amazon ECS",null,{"text":8},[9],"cdk destroy",[11],"content\u002Fcontributors\u002Frajesh-sitaraman.json",{"text":13},[14],"cdk deploy","Creates a WebSocket API and integrates with ECS Fargate using ALB.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-websocket-fargate-cdk","serverless-patterns\u002Fapigw-websocket-api-fargate-cdk","apigw-websocket-api-fargate-cdk","apigw_websocket_fargate_cdk\u002Fapigw_websocket_fargate_cdk_stack.py",{"headline":25,"text":26},"How it works",[27,28],"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.","Python","200",{},{"icon1":33,"icon2":38,"icon3":42,"line1":46,"line2":49},{"x":34,"y":35,"service":36,"label":37},20,40,"apigw","API Gateway WebSocket API",{"x":39,"y":35,"service":40,"label":41},55,"alb","Application Load Balancer",{"x":43,"y":35,"service":44,"label":45},85,"fargate","AWS Fargate",{"from":47,"to":48},"icon2","icon3",{"from":50,"to":47},"icon1",{"bullets":52},[53,56],{"text":54,"link":55},"Working with WebSocket APIs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-websocket-api.html",{"text":57,"link":58},"Amazon ECS","https:\u002F\u002Fdocs.aws.amazon.com\u002Fecs\u002F","patterns\u002Fapigw-alb-fargate",{"text":61},[62],"See the GitHub repo for detailed testing instructions.","FUIUX4jPCB6sQ9aWo01-pJDLzVxW2Cu287y3x0xbLqM",1778846881544]