open atlas
↑ Back to track
System Design Foundations SD · 03 · 05

Traffic & edge: multiple-choice review

Multiple-choice synthesis across the traffic unit: L4 vs L7 and load-balancing algorithms, reverse proxy vs gateway and the SPOF it concentrates, the mesh split, and CDN hit-ratio, TTL, and what not to cache.

SD Senior ◷ 13 min
Level
FoundationsJuniorMiddleSenior

Six questions that cut across the whole unit. Each is a decision you make when you place a load balancer, choose an algorithm, decide whether a gateway earns its keep, or set a CDN cache policy — not a definition to recite, but the tradeoffs of L4/L7, the algorithms, the SPOF, the mesh, and hit-ratio economics under real load.

Confirm you can pick the right layer and algorithm for a balancer, see why a single gateway is a SPOF and when a mesh fits instead, run the hit-ratio arithmetic, and reject caching a per-user response on a shared edge.

Quiz

You must route requests by URL path and read a routing cookie, and you also want per-request retries. Which balancer layer is required, and what does it cost?

Quiz

In a round-robin pool of ten, one node degrades to 5 s/request (others ~50 ms) but keeps accepting connections. What happens to the service p99, and which algorithm fixes it?

Quiz

A single API gateway in front of 15 services crashes on a bad config push; every service is healthy but all 15 are unreachable. What's the property and the fix?

Quiz

Forty services have heavy service-to-service traffic with missing retries, inconsistent mTLS, and no tracing. The public API also needs one auth/rate-limit front door. What's the right shape?

Quiz

A CDN at 90% hit ratio sends 20,000 RPS of misses to the origin. A cache-key cleanup raises it to 95%. Roughly what happens to origin load?

Quiz

An engineer wants to cache the authenticated account page (shows the logged-in user's orders) on the shared CDN to make it fast. What's the verdict and why?

Recall before you leave
  1. 01
    Why does a load-aware algorithm protect tail latency where round-robin doesn't?
  2. 02
    How do you reject caching a per-user response on a shared CDN in one sentence?
Recap

The through-line is that traffic and edge are tradeoffs you settle before load arrives. A balancer needs the right layer (L4 fast and protocol-blind, L7 content-aware at a CPU cost) and the right algorithm (load-aware least-connections/EWMA protect the tail; consistent hashing preserves cache locality). A gateway centralizes auth/rate-limit/routing — a consistency win that becomes a single point of failure, so it runs redundant and stays thin, while a service mesh handles east-west concerns in per-instance sidecars. A CDN lives or dies on its hit ratio, whose economics are non-linear (90% → 95% halves origin traffic), and the discipline is to cache what’s the same for everyone and safe when stale and never cache per-user or must-be-correct data on a shared edge.

Something unclear?

Ask a question about this lesson. Questions are anonymous and go straight to the author to make the lesson better.

shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources3
expand
  1. 01
  2. 02
  3. 03

Trademarks belong to their respective owners. Editorial reference only.