Keyboard Shortcuts N Next post
P Previous post
S Save / unsave
R Read aloud
T Toggle theme
/ Focus search
Esc Close panels
🔥
Ready to read...
AWS Cloud Computing Cloud Computing: From Zero to Production Module 3 — Compute Services Networking

Elastic Load Balancer (ELB) — Distributing Traffic

Reviewed & accurate
AI Summary

What You Will Learn

Intermediate

  • What a load balancer does
  • The three types (ALB, NLB, CLB)
  • How to set one up

A Load Balancer distributes incoming traffic across multiple EC2 instances. If one instance fails, traffic routes to the others. Improves availability and performance.

TypeLayerBest for
ALB (Application)HTTP/HTTPS (Layer 7)Web apps, APIs
NLB (Network)TCP/UDP (Layer 4)Low latency, gaming
CLB (Classic)LegacyAvoid (deprecated)
ALB + ASG = the standard pattern
ALB distributes traffic to an Auto Scaling Group. ASG adds instances when load increases. ALB automatically routes to new instances. This is the standard web app pattern.

Practical Exercise

Go to EC2 -> Load Balancers
Create an Application Load Balancer
Choose 2+ AZs (required for ALB)
Create a target group with 2 EC2 instances
Test by accessing the ALB DNS name

Key Takeaways

  • Load Balancer distributes traffic across instances.
  • ALB: HTTP/HTTPS (web apps). NLB: TCP/UDP (low latency).
  • ALB + ASG = standard web app pattern.
  • ALB requires 2+ AZs for high availability.
  • If an instance fails, ALB routes to healthy ones.
Previously: Lesson 19 covered Auto Scaling.
Today: You learned: Distribute traffic across instances.
Next: Lesson 21 covers User Data.
Test Your Knowledge
How did you find this?

Comments

Join the discussion! Sign in with your Google or Blogger account, or comment as Anonymous - no account needed. For quick questions, also reach me on Telegram @cytestch.

Comments