How a reverse proxy works
In a direct setup, a browser or API client talks to the application server. In a reverse-proxy setup, the client talks to the proxy first. The proxy then forwards the request to the right backend and returns the response.
Because every request passes through it, the reverse proxy becomes a practical place to add controls without changing application code.
- Client sends request to proxy
- Proxy applies routing and policy
- Backend receives approved traffic
- Proxy returns or inspects the response