spdy faster than keep-alive https?

[亡魂溺海] 提交于 2019-12-10 12:16:40

问题


I've seen Is SPDY any different than http multiplexing over keep alive connections and Difference between HTTP pipeling and HTTP multiplexing with SPDY but also http://www.guypo.com/technical/not-as-spdy-as-you-thought/.

I've even noticed that both are just a few ms more than ping in my own experience.

Am I missing something? I used this to install http://www.howtoforge.com/using-mod_spdy-with-apache2-on-ubuntu-12.10. Is there a setting I missed?


回答1:


This question is far too vague to be able to be effectively answered. SPDY provides frame-based multiplexing over a single connection. A frame may correspond to HTTP request headers, or HTTP request body chunks, or HTTP response headers, or HTTP response body chunks. If you only use one request/response, then SPDY will provide minimal advantage (there's some, probably minimal, latency advantage if you assume CPU is cheap, since the header compression will trade off CPU time and memory for bytes on the wire, which is the primary input into serialization latency).



来源:https://stackoverflow.com/questions/15255039/spdy-faster-than-keep-alive-https

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!