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.
AWS provides three main types of load balancers:
Example (kaptaindevops):
kaptaindevops deploys multiple microservices (service1, service2). ALB routes /api/service1 requests to service1 instances and /api/service2 requests to service2 instances.