Interview Prep/AWS/EC2, Auto Scaling and Load Balancing

How do ALB listeners, rules and target groups fit together?

IntermediateConceptEC2, Auto Scaling and Load Balancing
Answer

A listener (port and protocol) holds ordered rules, each with conditions (host header, path pattern, HTTP header, query string, source IP) and an action (forward, redirect, fixed-response, authenticate). Forward actions point to target groups (instances, IPs, Lambda) which carry the health check, protocol and stickiness settings. You can forward to multiple weighted target groups for canaries.

Rules evaluate by priority; the default rule catches the rest.

aws All AWS questions Roadmap: AWS core services

More on EC2, Auto Scaling and Load Balancing