본문 바로가기
ops/newtork

proxy vs reverse proxy

by seohan1010 2025. 12. 3.

🧩

 

작성일: 20251203


📘 1. 주제

proxy vs reverse proxy 


 

💡 2. 개념 설명


-proxy 
-> 클라이언트가 어떤 특정 목적지로 가고자 할때 
     proxy가 대신 목적지로 가준다. 
-> 클라이언트는 프록시와 tcp connection을 맺고
    프록시서버에서 목적지로 요청을 보낸다. 

- 프록시 use cases 
-> Caching(cdn과는 다름)
-> Anonymity
-> Logging
-> Block Sites
-> Microservices
-> debugging(fiddler, man in the middle 사용)

-CDN은 reverse-proxy라고 한다. 

-sidecar container, service mesh는 proxy의 idea에 기반한다. 

-특정 애플리케이션에 접근하기 위해 애플리케이션 옆에 설치되어 있는 
     proxy혹은sidecar에 요청을 보낼수 있다. 


-reverse-proxy 
-> client는 최종 목적지가 어딘지를 모른다. 
-> 최종 목적지에 대한 부하 분산을 할수 있다. 
-> 부하분산 장치는 reverse-proxy이다. 
: 모든 reverse-proxy가 load-balancer인것은 아니다. 
-> 규칙을 지정해서 서버간의 요청을 분산할수 있다. 

-reverse-proxy use cases
-> Caching
-> Load Balancing 
-> Ingress
-> Canary Deployment
-> Microservices 

-결론 
-> proxy든지 reverse-proxy든지 클라이언트는 proxy서버 혹은 
    reverse-proxy 서버와 connection을 수립한다.