Core Foundations · 9 min read · Intermediate
DNS, CDNs & L4/L7 Load Balancers
Route global traffic efficiently using DNS, edge CDNs, reverse proxies, and health-checked L4/L7 load balancers.
What you'll learn
- Trace a request from DNS lookup through CDN and load balancer
- Compare L4 (TCP) vs L7 (HTTP) load balancing
- Configure health checks and stateless app servers
Overview
Route global traffic efficiently using DNS, edge CDNs, reverse proxies, and health-checked L4/L7 load balancers.
Great system design is about explicit trade-offs rather than memorizing buzzwords. Every architectural layer you add (caches, replicas, queues, shards) solves one bottleneck while introducing new operational failure modes.
Design Checklist
| Dimension | Questions to Ask |
|---|---|
| Traffic & Scale | What is the read-to-write ratio, peak QPS, and payload size? |
| Consistency | Can users tolerate eventual consistency for a few seconds, or do we need strict ACID? |
| Failure Modes | What happens if a cache node, replica, or downstream API times out? |
| Simplicity | Can a single well-indexed PostgreSQL instance handle the next 12 months of growth? |
Key Takeaways
- Trace a request from DNS lookup through CDN and load balancer
- Compare L4 (TCP) vs L7 (HTTP) load balancing
- Configure health checks and stateless app servers
Quick Check
Check Your Understanding
Score: 0 / 1
1. What is the primary reason to keep web application servers stateless behind a load balancer?
Study Workspace
Finished this lesson?
Your progress is saved locally in your browser, no account needed.