V
V
Vadim2020-02-29 02:06:12
Amazon Web Services
Vadim, 2020-02-29 02:06:12

Is it possible to do Load Balancing in AWS if the instance has only private IP?

Hello everyone,

Just curious and actually speaking the question is in the title... but I'll add that I want to balance the frontend as well... backend is it possible?!

Without clever advice like put the frontend on S3 if this frontend is running on the client, etc.))

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2020-02-29
@inoise

Yes, everything works great. This is called multi-tier load balancing
The first picture I came across from the Internet:
5e599edf1d618855530688.png
Moreover, I will say that when using ELB, not only is it not necessary to have a public IP, but in general http traffic from the Internet to this network should be closed

E
Eugene, 2020-02-29
@yellowmew

In general, from a security point of view, it is highly recommended to separate networks, and keep applications and their data on subnets to which there is no direct access from the Internet. For
example (also a relatively random picture), SrHTd.png
so I would supplement Ivan Shumov 's answer like this:
external load balancer (Haproxy, Nginx, etc ..) it is best to organize your VPC so that all balanced servers are in private subnets, and only the balancer, NAT and VPN\Bastion are in the public subnet
In the base case (using default VPC) can be limited direct access to servers, as advised by Ivan Shumov

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question