Reverse Proxy
Pronunciationrih-VERS PROK-see
Definition
A server in front of your app that receives requests from users and forwards them to the app. It can also handle HTTPS and caching.
Where you hear it
Nginx setups and production troubleshooting ("502 Bad Gateway").
Examples
Nginx works as a reverse proxy in front of our Node app.
The 502 error means the proxy cannot reach the app.
The reverse proxy terminates HTTPS and forwards plain requests to the app on port 3000.
Common mistake
Confusing it with a forward proxy. A forward proxy sits in front of users; a reverse proxy sits in front of servers.
Don't confuse with
A reverse proxy is the front door for one or more servers: it terminates HTTPS, can cache, and forwards requests. A load balancer is a reverse proxy whose main job is spreading requests across several identical servers.
Say it at work
- In a meeting or chat
We should configure the reverse proxy to handle SSL termination so our app doesn't have to deal with certificates.
- In an email or ticket
I have updated the reverse proxy configuration to route all API requests to the new microservice instance.
Keep exploring
More in DevOps & Cloud