15 Nov
On this page 5
Gateway Load Balancer
- Load balancers do not communicate with the server/instances directly.
- Traffic -> LB -> Target Group (contains servers for security checks) -> LB -> Application
- Two Key Functions:
Sticky Sessions (also called Session Affinity):
- Disabled by default.
- Remembers which server user requests are diverted to for next time.
- Users' requests are redirected to the same server (if Sticky Session is enabled).
- Also depends on the cookies and if user requests during the time period.
- Overrides even if Server is overloaded with requests, will still continue sending requests to same server due to sticky session.
- Can be applied to all LBs.
Cross Zone Load Balancing (CZLB)
- Application Load Balancer:
- CZLB enabled by Default (can be disabled).
- No extra charges for CZLB.
- Network & Gateway Load Balancer:
- CZLB disabled by Default (can be enabled).
- Extra charge applies for CZLB.
No CZLB Formula
Requests per EC2 in AZ = Requests entering that AZ / Healthy EC2 Instances in that AZ

CZLB Formula
Traffic Per EC2 = Total Requests / Total Healthy EC2 Instances

Auto Scaling Group (ASG)
- Scaling means to add or remove resources (instances).
- Relies on a template (blueprint).
- Two Types of Scaling:
S3
- Global service that is used to create, delete and manage buckets.
- Security
- Availability of the Data
- Storage
- Reduced Cost
- Compliance

