Lesson 1 of 13By Sana Afreen
Last updated on Sep 14, 202010907Imagine having a blog that is running on a single t2.micro EC2 instance. One day, you publish an article on COVID-19 and it goes viral. Your website also receives a substantial amount of feedback, requests, likes, and shares. Since your website is a t2.micro instance, it could possibly crash due to significant network traffic. What can be done to avoid this situation? This is where the AWS load balancer plays a role. It uses several smaller instances, like t2.micros, and distributes the website traffic amongst t2-micro instances equally.
In this article, we'll be discussing the following topics:
Amazon Load Balancer distributes network traffic across its components like Amazon EC2 instances, AWS Lambda, and containers.
Amazon Load Balancer
Let’s move forward and look at the benefits of using Amazon Load Balancer.
Some of the benefits include:
Now, let’s have a look at algorithms used for load balancing.
Algorithms
In Amazon Load Balancer, there are a variety of algorithms. Let’s discuss the four primary algorithms, which you can implement to your specific use case.
This simple algorithm is used to distribute the client’s request across a group of servers. Initially, the client request/traffic is sent to the first available server. After a while, that server is moved to the bottom of the queue. The client request also is sent to each server one by one, based on availability.
This directs network traffic to the server, and it is specifically used when there is a large number of client requests unevenly distributed between the servers.
This directs client requests to the server with the lowest average response time. Moreover, it ensures that the load is balanced adequately among the servers.
This uses the client’s IP address to route network traffic to the available backend server.
First, launch the EC2 instance and ensure all security groups have access to HTTP 80. Next, install the webserver (such as Apache webserver).
Create load balancer
Define Load Balancer
Load Balancer creation - Amazon Load Balancer
Learn about AWS architectural principles and services like IAM, VPC, EC2, EBS and more with the AWS Solutions Architect Course. Register today!
In this introductory article, we discussed what an Amazon Load Balancer is, the benefits and algorithms of Amazon Load Balancer, and we also went through a step-by-by demonstration on how to create an Amazon Load Balancer.
Whether you’re an experienced AWS Architect, or you’re aspiring to break into this exciting industry, enrolling in our Cloud Architect program will help individuals with all levels of experience master AWS Cloud Architect techniques and strategies.
Do you have any questions? Please feel free to leave them in the comments section of this article; our experts will get back to you as soon as possible.
Sana Afreen is a Senior Research Analyst at Simplilearn and works on several latest technologies. She holds a degree in B. Tech Computer Science. She has also achieved certification in Advanced SEO. Sana likes to explore new places for their cultures, traditions, and cuisines.
How to Become an AWS Solutions Architect: Certifications Available and Job Opportunities
Cloud Computing Career Guide: A Comprehensive Playbook To Becoming A Cloud Architect
How to Become an Azure Architect
What is Cloud Computing and Who Uses Cloud Services?
How to Become a Cloud Engineer
AWS Career Guide: A Comprehensive Playbook To Becoming an AWS Solution Architect