Elastic Load Balancing

Elastic Load Balancing

  • Elastic Load balancing is a web service which distributes the application traffic across multiple EC2 instances within multiple Availability Zone.
  • It is used to increase the fault tolerance of users applications.
  • There are two type of load balancer such as: Application Load Balancer and Classic Load Balancer.
  • Elastic Load Balancing distributes incoming application traffic across multiple EC2 instances, in multiple Availability Zones.
  • This increases the fault tolerance of user’s applications.
  • The load balancer serves as a single point of contact for clients
  • User’s can configure health checks, which are used to monitor the health of the registered instances so that the load balancer can send requests only to the healthy instances.
  • User’s can also offload the work of encryption and decryption to their load balancer so that their instances can focus on their main work.

Elastic Load Balancing supports two types of load balancers

  • Application Load Balancers
  • Classic Load Balancers

load balancer can be choosed, according to the need of user’s.

User’s can create, access and manage their own load balancer using any of the following interfaces

  • AWS Management Console
  • AWS Command Line interface (AWS-CLI)
  • AWS SDKs
  • Query API
  • AWS Management Console

Provides a web interface that can be used to access Elastic Load Balancing.

  • AWS Command Line Interface (AWS CLI)

Provides commands for a broad set of AWS services, including Elastic Load Balancing

It is supported on Windows, Mac, and Linux.

  • AWS SDKs

Provides language-specific APIs

Also manage the connection details, such as calculating signatures, handling request retries, and error handling.

  • Query API

Provides low-level API actions using HTTPS requests.

It provide the direct way to access Elastic Load Balancing, but it requires that user’s application must handle low-level details such as generating the hash to sign the request, and error handling.

Elastic load balancing works with these services to increase the availability and scalability of user’s application

  • Amazon EC2
  • Amazon ECS
  • Amazon Route 53
  • Amazon CloudWatch
  • Autoscaling
  • Amazon EC2

Provide virtual servers to run user’s application in cloud.

User’s can configure their own load balancer to route the traffic to their EC2 instance.

  • Amazon ECS

It Enables user’s to run, stop, and manage their Docker containers on a cluster of EC2 instances.

User’s can configure their load balancer to route traffic to their containers.

  • Amazon Route 53

It provide reliable and cost effective way to route viewer to websites by translating their domain names into their corresponding IP addresses.

AWS assign their URLs to their resources i.e. to load balancer.

Amazon Route 53 help to get a website or web application up and running.

  • Amazon CloudWatch

It enables user’s to monitor their load balancer and take action as needed.

For example, user’s can monitor the CPU usage and disk reads and writes of your Amazon EC2 instances and then use this data to determine whether to launch additional instances to handle increased load or not.

  • Autoscaling

If user’s enable Auto Scaling with Elastic Load Balancing

Then instances that are launched by Auto Scaling are automatically registered with the load balancer.

The instances that are terminated by Auto Scaling are automatically de-registered from the load balancer.

How Elastic Load Balancing Works ?

  • A load balancer accepts incoming traffic from clients and routes requests to its registered EC2 instances in one or more Availability Zones.
  • Then load balancer monitors the health of its registered instances and routes traffic only to healthy instances.
  • User’s can configure their load balancer by specifying one or more listeners to accept incoming traffic.
  • A listener is a process that checks for connection requests.
  • It is configured with a protocol and port number for connections from clients to the load balancer and a protocol and port number for connections from the load balancer to the instances.

Elastic Load Balancing support two type of Load balancer:

  • Classic Load Balancer :

registers the instances to the load balancer

  • Application Load Balancers :

registers the instance as a target in a target group and route traffic to a target group.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s