File tree 2 files changed +37
-0
lines changed
2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ SPDY 背景
2
+ ====
3
+
4
+ Google 开发 SPDY 是为了解决扩展性的问题。主要的任务是加载内容的速度更快,做了如下工作:
5
+
6
+ * 每个头都是压缩的,消息体的压缩是可选的,因为它可能对代理服务器有问题
7
+ * 所有的加密都使用 [ TLS] ( http://en.wikipedia.org/wiki/Transport_Layer_Security )
8
+ * 每个连接多个转移是可能的
9
+ * 数据集可以单独设置优先级,使关键内容先被转移
10
+
11
+ 下表是与 HTTP 的对比
12
+
13
+ Table 12.1 Comparison of SPDY and HTTP
14
+
15
+ 浏览器 | HTTP 1.1 | SPDY
16
+ --------|----------|------
17
+ 加密 | Not by default | Yes
18
+ Header 压缩 | No | Yes
19
+ 全双工 | No | Yes
20
+ Server push | No | Yes
21
+ 优先级 | No | Yes
22
+
23
+ 一些使用场合和指标显示,可以 SPDY 让页面加载速度比H TTP 原先快50%。
24
+
25
+ 现在 SPDY 的协议草案规范是 1, 2 和 3, Netty 支持 2和3,主要考虑到这个是被广大浏览器所支持的版本。
26
+ 现在很多浏览器都支持 SPDY,见下表:
27
+
28
+ Table 12.2 Browsers that support SPDY
29
+
30
+ 浏览器 | 版本
31
+ ------|------
32
+ Chrome | 19+
33
+ Chromium | 19+
34
+ Mozilla Firefox | 11+ (从 13 起默认开启)
35
+ Opera | 12.10+
36
+
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ This is the summary of my book.
76
76
* [测试程序](NETTY BY EXAMPLE/Testing the Application.md)
77
77
* [总结](NETTY BY EXAMPLE/11.4 Summary.md)
78
78
* [SPDY](NETTY BY EXAMPLE/SPDY.md)
79
+ * [SPDY 背景](NETTY BY EXAMPLE/SPDY background.md)
79
80
* [通过 UDP 广播事件](NETTY BY EXAMPLE/Broadcasting events with UDP.md)
80
81
* 高级主题
81
82
* [实现自定义编解码器](ADVANCED TOPICS/Implement a custom codec.md)
You can’t perform that action at this time.
0 commit comments