[{"data":1,"prerenderedAt":62},["ShallowReactive",2],{"pattern-alb-ecs-java-sam":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":33,"level":34,"meta":35,"patternArch":36,"resources":49,"s3URL":6,"services":6,"stem":57,"testing":58,"videoId":6,"__hash__":61},"patterns\u002Fpatterns\u002Falb-ecs-java-sam.json","Deploying Spring Boot App on Amazon ECS\u002FAWS Fargate with Application Load Balancer",null,{"text":8},[9,10],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.","Delete the ECR repository: \u003Ccode>bash delete-ecr-repo.sh\u003C\u002Fcode>.",[12],"content\u002Fcontributors\u002Fbiswanath-mukherjee.json",{"text":14},[15,16,17],"mvn clean package","bash build","sam deploy --guided","This sample project deploys a Java 21 Spring Boot App on Amazon ECS Fargate with Application Load Balancer to route traffic between two ECS Tasks.","json","AWS SAM",{"template":22},{"repoURL":23,"templateURL":24,"projectFolder":25,"templateFile":26},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Falb-ecs-java-sam","serverless-patterns\u002Falb-ecs-java-sam","alb-ecs-java-sam","template.yaml",{"headline":28,"text":29},"How it works",[30,31,32],"The Amazon ECR The repository of the container image of the Spring Boot Application.","Application Load Balancer receives the HTTP request which routes the traffic to one of the Amazon ECS Tasks.","Amazon ECS Cluster is configured with one service having 2 Tasks. The 2 Tasks runs the Spring Boot application as container. The container image is retrieved from the Amazon Elastic Container Registry. The application uses in-memory database to store the data.","Java","200",{},{"icon1":37,"icon2":42,"line1":46},{"x":38,"y":39,"service":40,"label":41},30,50,"alb","Application Load Balancer",{"x":43,"y":39,"service":44,"label":45},70,"fargate","AWS Fargate",{"from":47,"to":48},"icon1","icon2",{"bullets":50},[51,54],{"text":52,"link":53},"Deploy Java microservices on Amazon ECS","https:\u002F\u002Fdocs.aws.amazon.com\u002Fprescriptive-guidance\u002Flatest\u002Fpatterns\u002Fdeploy-java-microservices-on-amazon-ecs-using-amazon-ecr-and-aws-fargate.html",{"text":55,"link":56},"Use an Application Load Balancer for Amazon ECS","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002Falb.html","patterns\u002Falb-ecs-java-sam",{"text":59},[60],"See the GitHub repo for detailed testing instructions.","PdNAONpOhyyUX1sZNu2cDTuFYCHn0wSilkPSi1gcWcY",1779273330764]