HTTP 2.0 with Tomcat

Source: Internet
Author: User
Tags http 2 apache tomcat

does tomcat support http2.0?

First of all, the HTTP2.0 agreement level is announced, only to promote and the various middleware software adaptation takes time.

StackOverflow "Tomcat support for http/2.0?", Jetty's source code author makes the following summary:

I ' m the HTTP/2 implementer in Jetty, and I watch out other projects implementing Http/2.tomcat ' s Mark Thomas have outlined Support for HTTP/2 for Tomcat 9.

Considering that Servlet 4.0 was going to has as a target HTTP/2 support, and that HTTP/2 support requires ALPN The JDK (which also I am involved in), and that ALPN support in the JDK are scheduled for JDK 9, it's probably going to B E a long time before all that materializes. However, be aware, the other Servlet Containers already provide HTTP/2 support.

Jetty 9.3.0 have full, robust, support for HTTP/2, client and server. We have been running HTTP/2 in our own website for many months now, and we consider HTTP/2 support production ready.

Jetty ' s HTTP/2 Push APIs is being considered for inclusion in Servlet 4.0. HTTP/2 Push is already available to applications deployed-Jetty in a transparent (via a Servlet Filter).

Undertow also has a implementation for HTTP/2.

Netty also has one, but it's not based on the Servlet APIs.

As you can see, many middleware vendors are already ready to release the JDK (mostly servlet standard) bindings.

Open source China has a TOMCAT9 release announcement:

Apache Tomcat 9.0.0.m1 is the first milestone version of 9.0.x, providing an early preview of the new features of 9.0.x, hoping to get feedback from users.

Notable improvements:

-Added HTTP/2 support and TLS virtual host

-Implement current Servlet 4.0 specification draft

-BIO connectors no longer supports Windows Itanium and Comet

Comet was canceled because Http2.0 added the functionality of server push.

  

SPDY vs HTTP2.0

HTTP 2.0 is also referenced from Google's spdy. Although Spdy is not a standard, it is a compatible HTTP protocol and is a high-performance and secure HTTP access scheme that has also been used by domestic manufacturers:

Performance comparisons for HTTPS, Spdy, and HTTP/2 as next-generation HTTP protocols

Multiplexing techniques used in both Spdy and HTTP/2 can be referenced in this demo. It can be considered that HTTP text-based transmission is too slow, we want to be able to adopt some experience in the TCP Transport layer to optimize, of course, the first step is to package HTTP into binary.

HTTP2.0 those things this article, from Spdy analysis to the birth of HTTP2.0 in great detail.

  

  HTTP vs HTTPS

For security reasons, many companies have replaced the Web site with HTTPS, but HTTPS requires a CA authority to issue certificates, or browsers like Chrome will be prompted for security.

But the website replaced by HTTPS, will not affect the inclusion of Baidu it?

refer to this site to switch HTTPS will not adversely affect traffic. The answer is basically not, if the original is HTTP, do map to HTTPS, the status code is 301 or 302 there is no problem.

  

  

  

HTTP 2.0 with Tomcat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.