We have a Spring application hosted on an AWS EC2 server. To optimize the application’s performance, we are considering moving all images and scripts to an S3 bucket. Our application, deployed across multiple nodes, utilizes an Application Load Balancer (ALB). Additionally, we already have an S3 bucket configured with CloudFront for CDN purposes.
The challenge we face is achieving this migration without making any code changes in the Spring application, instead relying on configuration changes on the AWS side (similar to setting up a reverse proxy in AWS). If there is a standard solution available in Spring that can help us achieve this, we would greatly appreciate your guidance, as it would be preferable to avoid modifying every page of the application.
Bhanu Prasad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.