SlideShare a Scribd company logo
1 of 9
Download to read offline
AWS Application Load Balancer
(ALB)
Application Load Balancer (ALB) is one of the most versatile and effective services in
AWS. This article will cover how to use it for different purposes, including dealing with
a large number of requests that can overwhelm a single machine, distributing traffic
across multiple servers, and providing redundancy when using multiple EC2 instances.
The blog post intro paragraph can be improved by adding more information about what
the reader will learn from reading this blog post.
What is Application Load Balancer (ALB)?
An Application Load Balancer (ALB) is a fully managed service that enables customers
to distribute traffic across multiple EC2 instances, HTTP services, or both. ALBs are
deployed within your VPC and can be used with Elastic Load Balancing Classic Target
Groups or the new Amazon CloudWatch-based Target Group configuration feature
introduced in 2014.
An application load balancer (ALB) is a type of network equipment used for distributing
web requests among different servers such as those running on an elastic beanstalk
environment which allows you to use microservices architecture using clusters stored
inside AWScloudwatch.
Benefits of Application Load Balancer Benefits (ALB)
1. You can add multiple ports to an EC2 instance so you don’t have to use a port
for each service.
2. Load balancers allow you to route traffic to multiple servers in different
availability zones. They work by selecting the most efficient server from a list of
available targets, and then forwarding requests towards that target via IP address
or Amazon EC2 instances.
3. You can see data about your application's performance in real-time, making it
easier to identify and fix issues that are affecting the user experience.
4. With the flexibility to change, you can route more applications in one instance.
Additionally, grouping target apps allows inter-app communication in
microservices easier than ever before and is useful for a simpler architecture.
5. ALB is a more secure service because it uses SSL/TLS certificates, user
authentication, and logging combined with the Amazon Virtual Private Cloud.
We will now create a load balancer for the application
o Login to AWS management console.
o Click on EC2 service and scroll down to the load balancers section on the
left-hand side.

o Click on Create Load Balancer
o Click on Create Application Load balancer

o Give it a name as “DemoALB” and scroll down and select all the
Availability Zones which are given there
o Leave all the settings as it is and click on Next

o Create a new security group if you have not created it before
o Here a new security group is created and given a name as “my-first-load-
balancer-sg” and in Type select HTTP and select Source as Anywhere
o Click on Next

o In this section give your Target group name as “my-first-target-group”
o Scroll Down and click on Advanced Health check settings
o Configure the settings as shown below figure and click on Next

o In the Register targets section, you will see EC2 instances if you had
created them earlier
o If instances are not created, create them quickly by using Amazon
Linux2 AMI and launch them.
o Here I had already created instances so I will select both of them and click
on Add to register.

o Click on Create
o Wait for ALB to come to Active state from Provisioning

o Now copy the DNS name and paste it in New Tab and you will see a
“Hello World” message

o We can have multiple listeners which can redirect to multiple target
groups
o Here we have one listener which is forwarding to my-first-target-group
o We will create another Target group
o Click on Create target group
o Give it a name as “my-second-target-group”
o Scroll down and click on Advanced Health check settings and configure
it as shown in the below figure

o Click on Next and select any instance and click on Include pending below.
o Click on Create Target Group.
o In our, ALB click on the Listeners tab

o We can have multiple listeners redirecting to multiple target groups
o Here we have one listener on Port 80 which is forwarding to my-first-
target-group
o Click on View/edit rules of this listener to start leveraging other target
groups
o Click on the + symbol present above and then click on the Insert rule
o Now there are 2 conditions “IF” and “THEN”
o In IF- Click on Add condition then select Path and in value type /test
o In THEN click on Add condition and select Forward to then select my-
second-target-group
o Click on Save

o So, we have 2 rules, first one is evaluated as a path and target is my-
second-target-group if it matches
o Else by default, it should route to my-first-target-group
o So here we can add rules and paths and show that Application Load
Balancer is way more powerful than Classic Load balancer
Congratulations!! You have created your Application load balancer, see you in the
next lab.
Conclusion:
AWS Application Load Balancer (ALB) is a feature that can be added to the Amazon
Web Services EC2 environment. This service helps distribute traffic across multiple
instances of an application or website for improved performance and availability. If
you’re looking to learn more about cloud computing technology, please check out our
blog posts. We're always happy to answer any questions you may have!

More Related Content

Similar to AWS Application Load balancer

AWS CodeDeploy
AWS CodeDeploy AWS CodeDeploy
AWS CodeDeploy Ratan Das
 
使用 AWS 負載平衡服務讓您的應用程式規模化
使用 AWS 負載平衡服務讓您的應用程式規模化使用 AWS 負載平衡服務讓您的應用程式規模化
使用 AWS 負載平衡服務讓您的應用程式規模化Amazon Web Services
 
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibbolethAws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibbolethremayssat
 
Deep Dive on Elastic Load Balancing
Deep Dive on Elastic Load BalancingDeep Dive on Elastic Load Balancing
Deep Dive on Elastic Load BalancingAmazon Web Services
 
aws.batch 4[2] - Read-Only.pptx
aws.batch 4[2]  -  Read-Only.pptxaws.batch 4[2]  -  Read-Only.pptx
aws.batch 4[2] - Read-Only.pptxGangujyothi
 
#speakgeek - Angular JS
#speakgeek - Angular JS#speakgeek - Angular JS
#speakgeek - Angular JSDerek Chan
 
CLOUD DEPLOYMENT ARCHITECTURE 1 Cloud Deploymen
CLOUD DEPLOYMENT ARCHITECTURE      1 Cloud DeploymenCLOUD DEPLOYMENT ARCHITECTURE      1 Cloud Deploymen
CLOUD DEPLOYMENT ARCHITECTURE 1 Cloud DeploymenWilheminaRossi174
 
Writing simple web services in java using eclipse editor
Writing simple web services in java using eclipse editorWriting simple web services in java using eclipse editor
Writing simple web services in java using eclipse editorSantosh Kumar Kar
 
How To Configure Amazon EC2 Load Balancer
How To Configure Amazon EC2 Load BalancerHow To Configure Amazon EC2 Load Balancer
How To Configure Amazon EC2 Load BalancerVCP Muthukrishna
 
Amazon Elastic Load Balancing
Amazon Elastic Load BalancingAmazon Elastic Load Balancing
Amazon Elastic Load BalancingDucat India
 
Simple Odoo ERP auto scaling on AWS
Simple Odoo ERP auto scaling on AWSSimple Odoo ERP auto scaling on AWS
Simple Odoo ERP auto scaling on AWSJulien Lecadou,MSc.
 
Getting Started with Docker on AWS
Getting Started with Docker on AWSGetting Started with Docker on AWS
Getting Started with Docker on AWSAmazon Web Services
 
Orangescrum is now available on aws marketplace
Orangescrum is now available on aws marketplaceOrangescrum is now available on aws marketplace
Orangescrum is now available on aws marketplaceOrangescrum
 
Aws interview questions and answers
Aws interview questions and answersAws interview questions and answers
Aws interview questions and answerskavinilavuG
 
Getting Started with Amazon EC2 Container Service
Getting Started with Amazon EC2 Container ServiceGetting Started with Amazon EC2 Container Service
Getting Started with Amazon EC2 Container ServiceAmazon Web Services
 
Webservices in SalesForce (part 1)
Webservices in SalesForce (part 1)Webservices in SalesForce (part 1)
Webservices in SalesForce (part 1)Mindfire Solutions
 
Oracle business rules
Oracle business rulesOracle business rules
Oracle business rulesxavier john
 
AWS Interview Questions and Answers.pdf
AWS Interview Questions and Answers.pdfAWS Interview Questions and Answers.pdf
AWS Interview Questions and Answers.pdfnishajeni1
 
AWS Interview Questions and Answers_2023.pdf
AWS Interview Questions and Answers_2023.pdfAWS Interview Questions and Answers_2023.pdf
AWS Interview Questions and Answers_2023.pdfnishajeni1
 

Similar to AWS Application Load balancer (20)

AWS CodeDeploy
AWS CodeDeploy AWS CodeDeploy
AWS CodeDeploy
 
使用 AWS 負載平衡服務讓您的應用程式規模化
使用 AWS 負載平衡服務讓您的應用程式規模化使用 AWS 負載平衡服務讓您的應用程式規模化
使用 AWS 負載平衡服務讓您的應用程式規模化
 
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibbolethAws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
 
Deep Dive on Elastic Load Balancing
Deep Dive on Elastic Load BalancingDeep Dive on Elastic Load Balancing
Deep Dive on Elastic Load Balancing
 
aws.batch 4[2] - Read-Only.pptx
aws.batch 4[2]  -  Read-Only.pptxaws.batch 4[2]  -  Read-Only.pptx
aws.batch 4[2] - Read-Only.pptx
 
#speakgeek - Angular JS
#speakgeek - Angular JS#speakgeek - Angular JS
#speakgeek - Angular JS
 
CLOUD DEPLOYMENT ARCHITECTURE 1 Cloud Deploymen
CLOUD DEPLOYMENT ARCHITECTURE      1 Cloud DeploymenCLOUD DEPLOYMENT ARCHITECTURE      1 Cloud Deploymen
CLOUD DEPLOYMENT ARCHITECTURE 1 Cloud Deploymen
 
Writing simple web services in java using eclipse editor
Writing simple web services in java using eclipse editorWriting simple web services in java using eclipse editor
Writing simple web services in java using eclipse editor
 
How To Configure Amazon EC2 Load Balancer
How To Configure Amazon EC2 Load BalancerHow To Configure Amazon EC2 Load Balancer
How To Configure Amazon EC2 Load Balancer
 
Amazon Elastic Load Balancing
Amazon Elastic Load BalancingAmazon Elastic Load Balancing
Amazon Elastic Load Balancing
 
Simple Odoo ERP auto scaling on AWS
Simple Odoo ERP auto scaling on AWSSimple Odoo ERP auto scaling on AWS
Simple Odoo ERP auto scaling on AWS
 
Lampstack (1)
Lampstack (1)Lampstack (1)
Lampstack (1)
 
Getting Started with Docker on AWS
Getting Started with Docker on AWSGetting Started with Docker on AWS
Getting Started with Docker on AWS
 
Orangescrum is now available on aws marketplace
Orangescrum is now available on aws marketplaceOrangescrum is now available on aws marketplace
Orangescrum is now available on aws marketplace
 
Aws interview questions and answers
Aws interview questions and answersAws interview questions and answers
Aws interview questions and answers
 
Getting Started with Amazon EC2 Container Service
Getting Started with Amazon EC2 Container ServiceGetting Started with Amazon EC2 Container Service
Getting Started with Amazon EC2 Container Service
 
Webservices in SalesForce (part 1)
Webservices in SalesForce (part 1)Webservices in SalesForce (part 1)
Webservices in SalesForce (part 1)
 
Oracle business rules
Oracle business rulesOracle business rules
Oracle business rules
 
AWS Interview Questions and Answers.pdf
AWS Interview Questions and Answers.pdfAWS Interview Questions and Answers.pdf
AWS Interview Questions and Answers.pdf
 
AWS Interview Questions and Answers_2023.pdf
AWS Interview Questions and Answers_2023.pdfAWS Interview Questions and Answers_2023.pdf
AWS Interview Questions and Answers_2023.pdf
 

More from BelleHenry

Azure Web Apps: What it is and how to get started
Azure Web Apps: What it is and how to get started Azure Web Apps: What it is and how to get started
Azure Web Apps: What it is and how to get started BelleHenry
 
How It Works ZIP?
How It Works ZIP?How It Works ZIP?
How It Works ZIP?BelleHenry
 
Java Developer Skills Set
Java Developer Skills SetJava Developer Skills Set
Java Developer Skills SetBelleHenry
 
Understanding AI vs ML vs DL
Understanding AI vs ML vs DLUnderstanding AI vs ML vs DL
Understanding AI vs ML vs DLBelleHenry
 
What is Terraform?
What is Terraform?What is Terraform?
What is Terraform?BelleHenry
 

More from BelleHenry (6)

Azure Web Apps: What it is and how to get started
Azure Web Apps: What it is and how to get started Azure Web Apps: What it is and how to get started
Azure Web Apps: What it is and how to get started
 
How It Works ZIP?
How It Works ZIP?How It Works ZIP?
How It Works ZIP?
 
Java Developer Skills Set
Java Developer Skills SetJava Developer Skills Set
Java Developer Skills Set
 
Understanding AI vs ML vs DL
Understanding AI vs ML vs DLUnderstanding AI vs ML vs DL
Understanding AI vs ML vs DL
 
What is Helm?
What is Helm?What is Helm?
What is Helm?
 
What is Terraform?
What is Terraform?What is Terraform?
What is Terraform?
 

Recently uploaded

會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptxPoojaSen20
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...Nguyen Thanh Tu Collection
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhleson0603
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....Ritu480198
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...Nguyen Thanh Tu Collection
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesPooky Knightsmith
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 

Recently uploaded (20)

會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 

AWS Application Load balancer

  • 1. AWS Application Load Balancer (ALB) Application Load Balancer (ALB) is one of the most versatile and effective services in AWS. This article will cover how to use it for different purposes, including dealing with a large number of requests that can overwhelm a single machine, distributing traffic across multiple servers, and providing redundancy when using multiple EC2 instances. The blog post intro paragraph can be improved by adding more information about what the reader will learn from reading this blog post. What is Application Load Balancer (ALB)? An Application Load Balancer (ALB) is a fully managed service that enables customers to distribute traffic across multiple EC2 instances, HTTP services, or both. ALBs are deployed within your VPC and can be used with Elastic Load Balancing Classic Target Groups or the new Amazon CloudWatch-based Target Group configuration feature introduced in 2014. An application load balancer (ALB) is a type of network equipment used for distributing web requests among different servers such as those running on an elastic beanstalk environment which allows you to use microservices architecture using clusters stored inside AWScloudwatch. Benefits of Application Load Balancer Benefits (ALB) 1. You can add multiple ports to an EC2 instance so you don’t have to use a port for each service. 2. Load balancers allow you to route traffic to multiple servers in different availability zones. They work by selecting the most efficient server from a list of available targets, and then forwarding requests towards that target via IP address or Amazon EC2 instances. 3. You can see data about your application's performance in real-time, making it easier to identify and fix issues that are affecting the user experience. 4. With the flexibility to change, you can route more applications in one instance. Additionally, grouping target apps allows inter-app communication in microservices easier than ever before and is useful for a simpler architecture. 5. ALB is a more secure service because it uses SSL/TLS certificates, user authentication, and logging combined with the Amazon Virtual Private Cloud. We will now create a load balancer for the application o Login to AWS management console. o Click on EC2 service and scroll down to the load balancers section on the left-hand side.
  • 2.  o Click on Create Load Balancer o Click on Create Application Load balancer  o Give it a name as “DemoALB” and scroll down and select all the Availability Zones which are given there o Leave all the settings as it is and click on Next
  • 3.  o Create a new security group if you have not created it before o Here a new security group is created and given a name as “my-first-load- balancer-sg” and in Type select HTTP and select Source as Anywhere o Click on Next  o In this section give your Target group name as “my-first-target-group” o Scroll Down and click on Advanced Health check settings o Configure the settings as shown below figure and click on Next
  • 4.  o In the Register targets section, you will see EC2 instances if you had created them earlier o If instances are not created, create them quickly by using Amazon Linux2 AMI and launch them. o Here I had already created instances so I will select both of them and click on Add to register.  o Click on Create o Wait for ALB to come to Active state from Provisioning
  • 5.  o Now copy the DNS name and paste it in New Tab and you will see a “Hello World” message  o We can have multiple listeners which can redirect to multiple target groups o Here we have one listener which is forwarding to my-first-target-group o We will create another Target group
  • 6. o Click on Create target group o Give it a name as “my-second-target-group” o Scroll down and click on Advanced Health check settings and configure it as shown in the below figure
  • 7.  o Click on Next and select any instance and click on Include pending below. o Click on Create Target Group. o In our, ALB click on the Listeners tab
  • 8.  o We can have multiple listeners redirecting to multiple target groups o Here we have one listener on Port 80 which is forwarding to my-first- target-group o Click on View/edit rules of this listener to start leveraging other target groups o Click on the + symbol present above and then click on the Insert rule o Now there are 2 conditions “IF” and “THEN” o In IF- Click on Add condition then select Path and in value type /test o In THEN click on Add condition and select Forward to then select my- second-target-group o Click on Save
  • 9.  o So, we have 2 rules, first one is evaluated as a path and target is my- second-target-group if it matches o Else by default, it should route to my-first-target-group o So here we can add rules and paths and show that Application Load Balancer is way more powerful than Classic Load balancer Congratulations!! You have created your Application load balancer, see you in the next lab. Conclusion: AWS Application Load Balancer (ALB) is a feature that can be added to the Amazon Web Services EC2 environment. This service helps distribute traffic across multiple instances of an application or website for improved performance and availability. If you’re looking to learn more about cloud computing technology, please check out our blog posts. We're always happy to answer any questions you may have!