Start a Project

What is Amazon Elastic Load Balancer

In our previous blog, we have integrated Amazon Elastic file system with our EC2 instances. The concept of EFS comes very handy when we want to run multiple instances in our virtual private cloud, accessing to the same data in a consistent manner. So, an obvious question arises from here. Why on earth we would want to run the same server running over multiple instances delivering the same content. The answer to this very question is Redundancy. However the robust architecture and precise configuration our server possess, we should always ensure redundancy. It is key to higher fault tolerance. We can divide our traffic among various instances and manage our load as per their availability. The term coined for this approach is load balancing.

Amazon Web Services provides its own load balancer which forwards the traffic across multiple targets (say EC2 instances) depending upon their availability. It is termed as Elastic load balancer. ELB can automatically scale its request handling capacity to meet the demands of incoming traffic, justifying the term elastic associated with it. It monitors the health of registered targets and routes traffic only to the healthy targets. Also, it serves as an end point for clients, and it can add or remove desired number of instances, which increases the availability of your server or application which ensures high availability.

Apart from benefits of high availability and elasticity, ELB provides robust networking and security features. Your load balancer can be internet facing (public) or private (internal) or both (multi-tier architecture). A multi-tiered architecture can be implemented using internal and public load balancers to route traffic between application tiers. With this multi-tier architecture, our application infrastructure can use private IP addresses and security groups. It exposes only the internet-facing tier with public IP addresses. It also provides integrated certificate management. Also, SSL decryption allows you to centrally manage the SSL settings of the load balancer. It can also integrate with AWS Certificate Manager to enable SSL for your site or application. You get integrated certificate management, managed certificate renewal and deployment, and SSL decryption, allowing you to centrally manage the SSL/TLS settings of the load balancer.

Best Practices for using Elastic Load Balancer

Classification of Elastic Load Balancer

Elastic load balancer is broadly classified as Classic load balancer and Application load balancer. Quoting from the AWS docs, “Classic Load Balancer routes traffic based on either application or network level information, and the Application Load Balancer routes traffic based on advanced application level information that includes the content of the request. The Classic Load Balancer is ideal for simple load balancing of traffic across multiple EC2 instances, while the Application Load Balancer is ideal for applications needing advanced routing capabilities, microservices, and container-based architectures. Application Load Balancer offers ability to route traffic to multiple services or load balance across multiple ports on the same EC2 instance.”

This has been a brief introduction to Amazon Elastic load balancer. In our next blog, we will dive in a little more deeper in Elastic load balancer classification and configuration.

 

Exit mobile version