Nginx config blocks, reverse proxying, load balancing algorithms, TLS termination, caching, health checks and HAProxy.
36 cards · basic cards · AI-written, checked twice. Edit anything.
- What is Nginx?
Show answer
High-performance event-driven web server and reverse proxy
- How does a reverse proxy differ from a forward proxy?
Show answer
Reverse proxy sits between clients and backend servers; forward proxy sits between client and internet
- Name four main Nginx config block types
Show answer
http, server, location, and upstream
- What problem does load balancing solve?
Show answer
Distributes client requests across multiple backend servers to improve availability and performance
- Describe the round-robin load balancing algorithm
Show answer
Requests are sent to each backend server in sequence, cycling through the list
- What does the least connections load balancing algorithm do?
Show answer
Routes each new request to the backend server with the fewest active connections
- How does IP hash load balancing ensure consistency?
Show answer
Hashes the client IP address to determine backend, so same client always routes to same server
- How do weights affect round-robin load balancing?
Show answer
Backends receive requests proportional to their weight value, allowing unequal distribution
- What does the least time load balancing method optimize for?
Show answer
Routes requests to the backend with the lowest latency and fewest active connections
- What happens during TLS termination?
Show answer
Reverse proxy decrypts encrypted client traffic and forwards to backend, optionally re-encrypting
- What does an upstream block define in Nginx?
Show answer
A named group of backend servers that can be referenced by proxy_pass directives
- What does the proxy_pass directive do?
Show answer
Forwards HTTP requests from a location to a specified backend server or upstream group
- What is the purpose of health checks in load balancing?
Show answer
Detect backend server failures so traffic is not routed to unavailable or unhealthy servers
- What is HAProxy primarily used for?
Show answer
Load balancing, reverse proxying, and high-availability clustering of backend services
- What is session stickiness in load balancing?
Show answer
A client is consistently routed to the same backend server to maintain session state