Jun 10, 2026
Edit me
Reverse proxy
Check this video
- Desc: As proxy sits inbetween your client and the server and protect client’s info, reverse proxy is to sit in between client and server, but protect the server’s info.
- Benefits - Reverse proxy help the load out from the server by doing some works for it:
- SSL: SSL is big drawback; reverse proxy can take care of that and do reverse proxy to server interaction with HTTP. (nginx)
- Caching: CDN
- Compression: smaller payload -> faster
- Security: as it doesn’t show server’s info
- Kinds:
- CDN: for caching mainly
- Load balancer: with scaling out, we need a server that distribute the traffic to servers properly and maintain the crushes of server. It does health check and control the failure.
- main techtic: round robin, least connection, weighted, IP hashing, layer 7(sending depends on API endpoint) etc.
- API Gateway: when MSA, deciding which API goes to which server - similar to layer 7. With MSA, every services need the authentication, and all others that one server has to go through. API gateway is to manage that
- benefits:
- common logic at one place - auth, understanding the API, traffic limit, etc.
- API versioning
- benefits: