Command Palette

Search for a command to run...

PHASE 9Intermediate ~6 min· topic 6 of 9

Topic 9.6

Reverse Proxy

In one line

The single front door that terminates TLS, compresses, caches, and hides the fleet — Nginx's day job.

0/9 · 0%

Think of it like this

A hotel receptionist who deals with every guest at the front desk, while the actual rooms and staff stay behind the scenes, unseen by guests. Guests never talk to housekeeping directly — always through reception.

Key ideas

  1. 01

    Sits in front of servers; clients see ONLY the proxy — the fleet stays hidden (hence 'reverse').

  2. 02

    Jobs: TLS termination, gzip/Brotli, request buffering, static cache, connection limits, basic auth.

  3. 03

    Differs from LB: a reverse proxy is about interception/acceleration; an LB is about distribution. Practically one box does both.

  4. 04

    Rate limiting at the proxy = cheap traffic edges before your app even sees it.

  5. 05

    Interview: 'Nginx/gateway terminates TLS, compresses, and rate-limits; the app stays clean'.

Java / Spring map

  • →

    Spring Boot behind Nginx: proxy buffers, X-Forwarded-For, and compression config.

Explain without notes

01

Where does a cookie-based app break behind a reverse proxy — and which header fixes it?

Practice

01

Draw request flow with proxy in front of 3 app instances: TLS, cache, rate-limit steps.

Trade-offs

  • ↔

    One more hop = one more failure mode; proxies must be HA (the proxy pool is the single point of failure).

Run it in production

Completion checklist

  • I can meter exactly what a reverse proxy does vs a load balancer.

Back to phase