What is ELB?

Elastic Load Balancing (ELB) automatically distributes incoming application traffic across multiple targets, such as EC2 instances, containers, and IP addresses.

Key benefits:

Example (kaptaindevops):

kaptaindevops runs a web application with multiple EC2 instances. ELB ensures users are always routed to healthy servers, even if one instance fails.


Types of ELB

AWS provides three main types of load balancers:


1. Application Load Balancer (ALB)

Example (kaptaindevops):

kaptaindevops deploys multiple microservices (service1, service2). ALB routes /api/service1 requests to service1 instances and /api/service2 requests to service2 instances.