- Newest
- Most votes
- Most comments
Are you getting issues under heavy load or even with simple functionality testing? If it is the latter, you should look at the Springboot application logs to see if the Springboot application is getting the requests and running into issues or not.
If you are getting issues under load, you will need to vertically scale your EC2 instance or better, run an auto-scaling group of EC2 machines with an Application Load Balancer in front, so your EC2 machines can scale with load. You could set that up yourself, or else use Elastic Beanstalk that does lot of the heavylifting for you as illustrated in this blog - https://aws.amazon.com/blogs/devops/deploying-a-spring-boot-application-on-aws-using-aws-elastic-beanstalk/. Note that this blog is old so some screens may have changed.
You have other options as well on AWS. You could run your Springboot application as a containerized application and use ECS or EKS to orchestrate. You can get guidance from the following documents - https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/deploy-java-microservices-on-amazon-ecs-using-amazon-ecr-and-aws-fargate.html, https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/deploy-java-microservices-on-amazon-ecs-using-amazon-ecr-and-load-balancing.html and https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/deploy-a-sample-java-microservice-on-amazon-eks-by-using-amazon-ecr-and-eksctl.html
The third option is to deploy your Springboot application on AWS Lambda. You can refer to AWS samples that show you how to run Java applications built using frameworks like Springboot, Micronaut and Quarkus using GraalVM to reduce cold starts - https://github.com/aws-samples/serverless-java-frameworks-samples
Relevant content
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 18 days ago
- AWS OFFICIALUpdated a year ago