Skip to main content
Cloud / DevOpsTraffic & ScalingDiagramBeginner

Reverse Proxy

KO: 리버스 프록시·EN: Reverse Proxy·JA: リバースプロキシ

An intermediary server placed in front of backend servers that intercepts client requests to handle TLS termination, routing, caching, compression, and origin hiding

Table of Contents

Structure Diagram

Reverse Proxy Request Forwarding & Origin HidingTap a node
HTTPS/api/app/assetsClientsReverse P…API ServerWeb AppStatic Ca…
ROOTClients
1 link
Quick Answer

What is Reverse Proxy?

An intermediary server placed in front of backend servers that intercepts client requests to handle TLS termination, routing, caching, compression, and origin hiding. It is a core concept in Traffic & Scaling within Cloud / DevOps.

Core Principles

Unlike a forward proxy that acts on behalf of clients, a Reverse Proxy sits in front of backend servers, intercepting incoming requests and forwarding them to the appropriate internal origin. Clients only see the proxy's public endpoint, keeping internal server IPs and architecture hidden.

By centralizing TLS termination, HTTP/2–HTTP/3 upgrades, compression, static caching, and path-based routing at the edge, a reverse proxy offloads heavy networking chores from application servers.

Practical Takeaways

  • Preserve real client metadata: Forward X-Forwarded-For, X-Forwarded-Proto, and Host headers accurately, and configure backend apps to trust these headers only from known proxy IPs.
  • Protect backends with buffering and timeouts: Buffer slow client uploads at the proxy layer and enforce explicit upstream connect/read timeouts so slow connections do not exhaust application worker pools.
  • Eliminate single points of failure: Always deploy reverse proxies redundantly behind DNS or an L4 load balancer so a proxy restart never causes downtime.

Notable Examples

  • NGINX & Caddy: Widely used web frontends offering event-driven concurrency, response caching, and automatic TLS certificates.
  • Envoy Proxy & HAProxy: High-performance L4/L7 reverse proxies powering Kubernetes gateways and service meshes.
  • Cloudflare: Operates a global reverse proxy network combining caching, DDoS protection, and TLS termination.