Asked Aug 8th, 2017 8:47 AM 643 0 1
  • 643 0 1
+13

Sự khác biệt giữa HTTP 2.0 và HTTP 1.1

Share
  • 643 0 1

Mọi người cho mình hỏi sự khác biệt giữa HTTP 2.0 và HTTP 1.1 là gì ạ? HTTP 2.0 liệu có thay thế được web socket hay không và đã ai dùng thử HTTP 2.0 trong dự án của mình chưa ạ?

1 ANSWERS


Answered Aug 8th, 2017 9:12 AM
Accepted
+17

First of all, HTTP/2 only supports encrypted connections (TLS), even though it is not required according to specs, there are no servers or clients which support unencrypted HTTP/2. The second most significant improvement is multiplexing support: servers can now parallel multiple responses within single connection (check demo at https://http2.akamai.com/demo). And the last major change is support of Server Push feature, which allows to inform client of needed resources before HTML has been loaded.

You can read all specs and FAQ at https://http2.github.io

P. S. Viblo, actually, uses HTTP/2 both for web pages and web sockets.

Share
KhanhWAP @riqozy
Aug 8th, 2017 9:23 AM

That's great!

0
| Reply
Share
dinhhoanglong91 @dinhhoanglong91
Aug 8th, 2017 9:32 AM

Great! Thank you very much.

0
| Reply
Share
kopitop @kopitop
Aug 9th, 2017 2:36 AM

Nice example!

0
| Reply
Share