Skip to main content

How to implement Scaling and Optimizing Your Applications with AWS Application Load Balancer





Amazon Web Services (AWS) offers a highly available, scalable, and fully managed Application Load Balancer (ALB) service. This load balancer operates at the request level (layer 7 in the OSI model), routing traffic to one of the registered targets, such as EC2 instances, containers, or IP addresses, based on the rules that you define.

One of the key benefits of using an ALB is its ability to handle advanced request routing, such as routing based on the content of the request, allowing you to build sophisticated traffic management policies for your applications. For example, you can set up an ALB to route traffic to different target groups based on the URL path of the incoming request, the host header, or even the query string parameters.

In addition to request routing, ALBs also provide features such as automatic scaling, TLS/SSL offloading, and integration with other AWS services, such as Amazon ECS, Amazon EKS, and AWS Fargate.

Another advantage of using an ALB is its ability to health check your targets and route traffic only to healthy targets. This ensures that your applications remain available and responsive to your users even when one or more of your targets are experiencing issues.

There are two types of ALBs available: a classic load balancer and a network load balancer. The classic load balancer is best suited for load balancing HTTP and HTTPS traffic, while the network load balancer is designed for ultra-high performance and can handle millions of requests per second while maintaining ultra-low latencies.

In summary, the AWS Application Load Balancer is a powerful and fully managed service that makes it easy to build and operate scalable and highly available applications. It offers advanced request routing capabilities and integrates with other AWS services, making it an essential component of any AWS-based architecture.

Follow below steps to setup Application load balancer in your AWS console:

2. Click on Load Balancers

Click on Load Balancers

3. Click on Create load balancer

Click on Create load balancer

4. Click on Create

Click on Create

5. Type "ALB-Demo"

Type "ALB-Demo"

6. Check us-east-1b (use1-az2)

Check us-east-1b (use1-az2)

7. Check us-east-1a (use1-az1)

Check us-east-1a (use1-az1)

8. Check us-east-1c (use1-az4)

Check us-east-1c (use1-az4)

9. Check us-east-1d (use1-az6)

Check us-east-1d (use1-az6)

10. Check us-east-1e (use1-az3)

Check us-east-1e (use1-az3)

11. Check us-east-1f (use1-az5)

Check us-east-1f (use1-az5)

12. Click on Create target group 

13. Type "ec2_webserver"

Type "ec2_webserver"

14. Click on Next

Click on Next

15. Type "ec2-webserver"

Type "ec2-webserver"

16. Click on Choose a target type…

Click on Choose a target type…

17. Click on Next

Click on Next

18. Check table

Check table

19. Click on Include as pending below

Click on Include as pending below

20. Click on Ports for the selected instances

Click on Ports for the selected instances

21. Click on Create target group

Click on Create target group

22. Drag highlighted element

Drag highlighted element

23. Click on 0 target groups selected…

Click on 0 target groups selected…

24. Click on 0 target groups selected…

Click on 0 target groups selected…

25. Click on ec2-webserver

Click on ec2-webserver

26. Click on Load Balancers

Click on Load Balancers

27. Click on Refresh Target groups

Click on Refresh Target groups

28. Click on Default action

Click on Default action

29. Click on Create load balancer

Click on Create load balancer

30. Click on View load balancer

Click on View load balancer

31. Click on highlight

Click on highlight

32. Click on Active

Click on Active

33. Drag highlighted element

Drag highlighted element

34. Click on table

Click on table

35. Copy text titled "ALB-Demo-516457144.us-east-1.elb.amazonaws.com"



To verify if its working paste it in browser e.g.http://alb-demo-516457144.us-east-1.elb.amazonaws.com



Comments

Popular posts from this blog

What is webserver?

  A web server is a computer system that is responsible for hosting websites. It stores the files that make up a website, such as HTML, CSS, JavaScript, and images, and serves them to users who request them over the internet. When a user types in a website's URL (e.g., www.example.com) into their web browser, the browser sends a request to the web server to retrieve the files for the website. The web server then retrieves the files and sends them back to the browser, which then renders the website on the user's device. Web servers typically run specialized software, such as Apache or nginx, which is designed to handle HTTP requests and serve website content. They are often connected to the internet through high-speed connections and are designed to handle many requests simultaneously. Here's an example of how a web server works: A user opens their web browser and types in the URL of a website they want to visit (e.g., www.example.com). The browser sends an HTTP request to t

Top IT skills in demand 2021

  In the recent years we have seen the growth in IT industry and huge job prospects of it. In the pandemic when all of the other industries are struggling to keep the head above water IT industry is one of the industry which was thriving and added tremendous growth in revenues. As per industry estimated there are 4 million IT professionals working in India alone and the number is growing every year. After pandemic its clear to businesses that they needs to upgrade as per latest trends in market or they will go out of sync with time.                To enter this ever growing business below are the skills that are in high demand in market right now.   Salesforce Developer :     Salesforce is new face of CRM providing  multiple marketing, CRM, analytical software services operating in SaaS business model. There are increasing opportunities in market for salesforce developer and many courses are available on YouTube, Udemy and other online learning platforms and many of them are free. IOT