Interview Prep/Networking/Load Balancing, Proxies & nginx in Production

Why do we put a reverse proxy in front of an application server like gunicorn or Node?

BeginnerProductionLoad Balancing, Proxies & nginx in Production
Answer

It terminates TLS, serves static files, buffers slow clients so workers are not tied up, applies rate limits, compression and security headers, and balances across instances. Application servers are not built for slow-client handling or direct internet exposure.

Typical stack: ALB or nginx in front, app server behind, communicating over a Unix socket or private port.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancing, Proxies & nginx in Production