《Choosing a caching HTTP Proxy Presentation.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、Choosing A Proxy Server OSCON 2014 Bryan Call Yahoo About Me •Apache –CommiBer and PMC for Apache Traffic Server (ATS) –Apache Member •IETF –HTTP/2 –TLS –TCP Enhancement •Yahoo –WebRing, GeoCiSes, People Search, Personals, Tiger Team, PlaTorm Architect,
2、Edge Group, Network Research, Apache/IETF Overview •Types of Proxies •Features •Architecture •Cache Architecture •Performance •Pros and Cons How are you going to use a proxy server? ReverseProxyThereverseproxyhasexplicitrulesfora.com,b.comandc.com.Other
3、requestsare(typically)deniedWebsiteAGET/HTTP/1.1Host:c.comReverseWebsiteBProxyBrowserGET/HTTP/1.1Host:c.comWebsiteCReverse Proxy •Proxy in front of your own web servers •Caching? •Geographic locaSon? •ConnecSon handling? •SSL terminaSon? •SPDY support?
4、•Adding business logic? ForwardProxyThebrowser(UA)isexplicitlyconfiguredtousetheFPserverasaproxyWebsiteAGEThttp://c.com/HTTP/1.1ForwardWebsiteBProxyBrowserGET/HTTP/1.1Host:c.comWebsiteCInterceptingProxyTherearenoexplicitconfigurationsinbrowserofproxy.Thet
5、ransparentproxyinterceptsHTTPrequests,andproxiesthemtothedestination.GET/HTTP/1.1WebsiteAHost:c.comInterceptingBrowserWebsiteBProxyRouterorFirewallGET/HTTP/1.1Host:c.comWebsiteCForward / IntercepSng Proxy •Proxy in front of the Internet •Configure client
6、s to use proxy? •Caching? •SSL ‐ CONNECT? •SSL ‐ terminaSon? Choices PlentyofProxyServersPerlBalPlentyofProxyServersFeatures And OpSons Features ATS NGiNXSquid Varnish Apache h8pdmod_proxyReverse Proxy Y Y Y Y Y Forward Proxy Y N Y N Y Transp. Proxy Y N
7、 Y N Y Plugin APIs Y Y parSal Y Y Cache Y Y Y Y Y ESI Y N Y parSal N ICP Y N Y N N SSL Y Y Y N Y SPDY Y Y N N parSal SSL Features Source: hBps://istlsfastyet.com/ ‐ IlyaGrigorikWhat type of proxy do you need? •Of our candidates, only three fully support
8、s all proxy modes HTTP/1.1 Compliance HTTP/1.1 Compliance •Accept‐Encoding ‐ gzip•Vary •Age •If‐None‐Match How things can go wrong: Vary $ curl ‐D ‐ ‐o /dev/null ‐s ‐‐compress hBp://10.118.73.168/ HTTP/1.1 200 OK Server: nginx/1.