[{"data":1,"prerenderedAt":64},["ShallowReactive",2],{"pattern-sqs-ecs-autoscaling":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":31,"level":32,"meta":33,"patternArch":34,"resources":48,"s3URL":6,"services":6,"stem":59,"testing":60,"videoId":6,"__hash__":63},"patterns\u002Fpatterns\u002Fsqs-ecs-autoscaling.json","Amazon SQS - Amazon ECS AWS Fargate - Target Tracking Scaling Policy",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fsaborni-bhattacharya.json",{"text":13},[14],"sam deploy","This pattern creates an ECS Fargate application that consumes an Amazon SQS queue and it scales on the basis of queue size","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsqs-ecs-autoscaling","serverless-patterns\u002Fsqs-ecs-autoscaling","sqs-ecs-autoscaling","template.yaml",{"headline":25,"text":26},"How it works",[27,28,29,30],"This sample project demonstrates how target tracking scaling policy works with an ECS Fargate application","We have a python application under consumer\u002Fapp.py that consumes messages from an SQS queue. The application is containerised and the image is pushed to an ECR registry.","On the basis of a target value of the SQS metric - ApproximateNumberOfMessagesVisible, the count of tasks of the cluster will increase.","Again, when the actual value drops below the target value, the count of tasks comes down to the initial value.","Python","400",{},{"icon1":35,"icon2":40,"line1":44},{"x":36,"y":37,"service":38,"label":39},20,50,"sqs","Amazon SQS",{"x":41,"y":37,"service":42,"label":43},80,"fargate","AWS Fargate",{"from":45,"to":46,"label":47},"icon1","icon2","Target tracking scaling",{"bullets":49},[50,53,56],{"text":51,"link":52},"Target tracking scaling policies for Amazon EC2 Auto Scaling","https:\u002F\u002Fdocs.aws.amazon.com\u002Fautoscaling\u002Fec2\u002Fuserguide\u002Fas-scaling-target-tracking.html",{"text":54,"link":55},"Target tracking scaling policies for Application Auto Scaling","https:\u002F\u002Fdocs.aws.amazon.com\u002Fautoscaling\u002Fapplication\u002Fuserguide\u002Fapplication-auto-scaling-target-tracking.html",{"text":57,"link":58},"Container Insights with enhanced observability now available in Amazon ECS","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Faws\u002Fcontainer-insights-with-enhanced-observability-now-available-in-amazon-ecs\u002F","patterns\u002Fsqs-ecs-autoscaling",{"text":61},[62],"See the GitHub repo for detailed testing instructions.","nbXl0kBXhOFM_hgFi7T-nMCFZmELTuV_Eq7w64H2l3I",1779878121281]