ELB Flashcards
What is the difference between availability and scaleability?
Scalability implies a system/application that can handle greater loads by adapting.
Availability aims to survive a data center loss, normally by running your application/system in at least 2 data centers (== AZs)
What is a load balancer?
A server that forwards traffic to multiple servers downstream.
Why use a load balancer?
- Spread load across multiple downstream instances
- Expose a single point of access (DNS) to your application
- Seamlessly handle failures of downstream instances
- Do regular health checks to your instances
- Provide SSL termination (HTTPS) for your websites
- Enforce stickiness with cookies
- High availability across zones
- Separate public traffic from private traffic
What layers does a CLB support?
Classic Load Balancer - supports TCP (layer 4), HTTP/S (layer 7)
What layer does an ALB (v2) operate on?
Layer 7 - HTTP
What does an ALB do?
Application Load Balancer - Load balancing to multiple HTTP applications across machines or across the same machine.
Support for HTTP/2 and WebSocket.
Support redirects (from HTTP to HTTPS for example).
What routing does ALB support?
Routing based on path in URL, hostname in URL or Query String/Headers
What is a good use-case for ALB and why?
Great fit for micro-services & container-based applications (Docker, ECS for example) - has a port mapping feature to redirect to a dynamic port in ECS.
What makes ALB better than CLB in terms of fit for micro-services?
A CLB operates on one application, so we would need multiple CLBs per application in a micro-services system.
What layer does an NLB operate on?
Network Load Balancer - Layer 4, TCP and UDP traffic to your instances
Describe the properties of NLB operations
- Handles millions of requests per second.
- Less latency than ALB - approx. 100ms vs 400ms for ALB#
- One static IP per AZ - supports assigning Elastic IP (helpful for whitelisting specific IP)
- Not included in AWS free tier
What are the possible target groups for NLB?
EC2 instances, IP addresses (must be private IPs), ALB
What protocols do the NLB health checks support?
TCP, HTTP and HTTPS
What is the purpose of the GLB?
Gateway load balancer - deploy, scale and manage a fleet of 3rd party network virtual appliances in AWS (e.g. firewalls, intrusion detection and prevention systems, deep packet inspection systems, payload manipulation etc.)
What layer does GLB operate on?
Layer 3 - network layer
What functions does the GLB combine?
- Transparent Network Gateway: single entry/exit for all traffic.
- Load balancer: distributes traffic to your virtual appliances
What type of balancer uses the GENEVE protocol?
GLB
A GLB uses a certain protocol - what is its name and the port it operates on?
GENEVE protocol, port 6081