From the course: Hands-On Development in AWS

Unlock this course with a free trial

Join today to access over 24,400 courses taught by industry experts.

Using load balancers

Using load balancers

- Elastic Load Balancers are a feature of the EC2 service that'll allow you to distribute the load amongst multiple servers. So if you have a web application that has 10 web servers, you could put an Elastic Load Balancer in front of it and then connections from the internet would connect to your Elastic Load Balancer, and the ELB's job then is to distribute the connection amongst the 10 servers in the pool so that you can distribute the load, so that one server does not get overwhelmed. In this example, we are going to deploy an Elastic Load Balancer talking to two HTTP servers, and we are going to take a look at Route 53 Elastic Load Balancer aliases. Let's look at the EC2 service. I have two instances up and running, HTTP servers 1 and 2. If we go to httpserver1 and we click on open address, we will get a failure, and that is because the link in the EC2 console is HTTPS. Let's go ahead and change that to HTTP, and we can see that this is httpserver1. Let's do the same for number…

Contents