Automating Reverse Proxy Configuration with Auto-scaling on AWS

0

Hello AWS Community,

I am currently working on an application hosted on AWS that requires the use of reverse proxies for routing traffic to my backend services. My setup involves multiple modules, with one acting as the front-facing reverse proxy and the others providing various backend functionalities. I want the front-facing module to handle all incoming requests and route them internally to the appropriate backend modules.

Given the dynamic nature of my application, instances in the backend modules will frequently scale up and down based on demand. My challenge is ensuring that the reverse proxy can automatically discover and route to these instances without manual intervention, especially considering that the IP addresses of these instances will change as they are added or removed.

I am looking for a solution that allows me to:

Automate the discovery of backend instances by the reverse proxy, so it always routes traffic correctly, regardless of the instances being scaled up or down. Integrate this setup with AWS Auto Scaling Groups (ASG) to manage instance scaling. Use AWS services (preferably without resorting to third-party tools) to maintain this setup with high availability and security. Does anyone have experience setting up a similar architecture or could provide insights into the best AWS services and configurations to achieve this? Any advice on using Elastic Load Balancing (ELB), Amazon Route 53, and AWS Auto Scaling together for this purpose would be greatly appreciated.

Thank you in advance for your help!

已提問 2 個月前檢視次數 381 次
1 個回答
4
已接受的答案

Hello.

If you are using EC2, I think it would be a good idea to create an environment that uses AutoScaling and ALB to perform load balancing.
The configuration is as described in the document below, which is created on the front end and back end.
By linking the ALB target group to AutoScaling, it will be automatically linked to the ALB when scaling out.
Also, by integrating access to ALB, there is no need to be aware of EC2's IP address.
https://docs.aws.amazon.com/autoscaling/ec2/userguide/tutorial-ec2-auto-scaling-load-balancer.html

Although it is simplified, the configuration diagram is shown below.
a

If you can containerize your application and use ECS, you may consider using Service Connect.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html

profile picture
專家
已回答 2 個月前
profile picture
專家
已審閱 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南