Questions tagged [http2]

HTTP2 (or HTTP v2.0) is an alternative to, but does not obsolete, HTTP1.1.

HTTP v1.1's underlying transport has several characteristics that have a negative overall effect on application performance today. HTTP/2 addresses these issues by defining an optimized mapping of HTTP's semantics to an underlying connection. Specifically, it allows interleaving of request and response messages on the same connection and uses an efficient coding for HTTP header fields. It also allows prioritization of requests, letting more important requests complete more quickly, further improving performance.

Source: RFC 7540 @ https://datatracker.ietf.org/doc/html/rfc7540
1819 questions
433
votes
10 answers

Does HTTP/2 make websockets obsolete?

I'm learning about HTTP/2 protocol. It's a binary protocol with small message frames. It allows stream multiplexing over single TCP connection. Conceptually it seems very similar to WebSockets. Are there plans to obsolete websockets and replace them…
vbezhenar
  • 11,148
  • 9
  • 49
  • 63
233
votes
2 answers

What is the difference between HTTP 1.1 and HTTP 2.0?

HTTP/1.1 has served the Web well for more than fifteen years, but its age is starting to show. Can anybody explain what is the main difference between HTTP 1.1 and 2.0? Is there any change in the transport protocol?
user1968030
208
votes
5 answers

What does multiplexing mean in HTTP/2

Could someone please explain multiplexing in relation to HTTP/2 and how it works?
user3448600
  • 3,648
  • 5
  • 17
  • 23
206
votes
42 answers

What's the net::ERR_HTTP2_PROTOCOL_ERROR about?

I'm currently working on a website, which triggers a net::ERR_HTTP2_PROTOCOL_ERROR 200 error on Google Chrome. I'm not sure exactly what can provoke this error, I just noticed it pops out only when accessing the website in HTTPS. I can't be 100%…
Tristan G
  • 2,157
  • 2
  • 6
  • 10
164
votes
10 answers

How to check if a website has HTTP/2 protocol support

There are a lot of topics about the HTTP/2 protocol, but I wonder if there is a working website with this protocol. I.e. We can decide to use http:// or https://, but how can we write a HTTP/2 request? I am aware that this protocol depends on the…
Stevan Tosic
  • 6,561
  • 10
  • 55
  • 110
140
votes
3 answers

Is gRPC(HTTP/2) faster than REST with HTTP/2?

The goal is to introduce a transport and application layer protocol that is better in its latency and network throughput. Currently, the application uses REST with HTTP/1.1 and we experience a high latency. I need to resolve this latency problem and…
Lakshman Diwaakar
  • 7,207
  • 6
  • 47
  • 81
134
votes
2 answers

What is the difference between grpc and websocket? Which one is more suitable for bidirectional streaming connection?

I want to develop a client-server application in a bi-directional streaming manner. what is more suitable technology for this, grpc or websocket?
prashant sindhu
  • 1,769
  • 2
  • 15
  • 25
76
votes
5 answers

HTTP2 with node.js behind nginx proxy

I have a node.js server running behind an nginx proxy. node.js is running an HTTP 1.1 (no SSL) server on port 3000. Both are running on the same server. I recently set up nginx to use HTTP2 with SSL (h2). It seems that HTTP2 is indeed enabled and…
Shade
  • 9,936
  • 5
  • 60
  • 85
56
votes
4 answers

node.js server and HTTP/2 (2.0) with express.js

Is it possible currently to get node.js HTTP/2 (HTTP 2.0) server? And http 2.0 version of express.js?
WHITECOLOR
  • 24,996
  • 37
  • 121
  • 181
55
votes
5 answers

Enable HTTP2 with Tomcat in Spring Boot

Tomcat 8.5, which will be the default in Spring Boot 1.4, supports HTTP/2. How can HTTP/2 be enabled in a Spring Boot application?
yglodt
  • 13,807
  • 14
  • 91
  • 127
53
votes
1 answer

Is the per-host connection limit raised with HTTP/2?

Browsers have a per-host limit regarding number of parallel XHR (about 6 nowadays). Does this restriction apply to multiplexed HTTP/2 connections?
Warren Seine
  • 2,311
  • 2
  • 25
  • 38
51
votes
2 answers

How does HTTP2 solve Head of Line blocking (HOL) issue

How does HTTP2 solve Head of Line blocking (HOL) issue? This problem is very frequent in http1.1, but I heard HTTP2 has fixed this problem. Could someone explain how exactly HTTP2 fixed the problem?
nagendra547
  • 5,672
  • 3
  • 29
  • 43
51
votes
3 answers

REST API with HTTP/2

Couple of months ago, HTTP/2 was published as RFC7540. How will this affect the existing REST API built on HTTP/1.1? As per Wikipedia, HTTP/2 has added new features. How can we take advantage of these new features?
Sorter
  • 9,704
  • 6
  • 64
  • 74
47
votes
5 answers

Does minifying and concatenating JS/CSS files, and using sprites for images still provide performance benefits when using HTTP/2?

With the new HTTP/2 protocol the overhead created by repeated HTTP requests to the same server has been greatly reduced. With this in mind, are there still any significant performance advantages to minifying and concatenating JavaScript/CSS files,…
Alex
  • 5,759
  • 1
  • 32
  • 47
46
votes
3 answers

Tomcat support for HTTP/2.0?

Does anyone know what is the lowest version of Tomcat that supports HTTP/2.0? I've been looking everywhere on their site and I cannot find any details regarding this.
Asher Johnson
  • 751
  • 1
  • 7
  • 10
1
2 3
99 100