Skip to the guide

Proxies: forward and reverse

BeginnerConcept3 pages

A proxy is a server that sits in the middle and makes requests on someone else's behalf. Which "someone" decides its name. A forward proxy works for clients; a reverse proxy works for your servers. Most of the boxes in front of your app servers, the load balancer, the CDN and the API gateway, are reverse proxies with different jobs, so it pays to know what they share.

An assistant and a receptionist

A busy manager has a personal assistant who makes her calls. The people called talk to the assistant and may never learn the manager's direct number. The assistant can also refuse calls the company doesn't allow and keep a log of every call.

A big company has a receptionist who answers every incoming call. Callers dial one number and never see the staff list. The receptionist puts each call through to the right department, turns away nuisance callers, and answers the common questions herself so the staff aren't disturbed.