0

This isn't a duplicate of node.js with nginx, because I'm asking about Tomcat 8.5 communication java backend server to java backend server

When reading about HTTP2 improvements, most relevant HTTP2 improvements are client related, specifically browser, connection with backend server

We are using HTTP2 for client-server using external provider (cloud flare )

Is it relevant/beneficiary to add change internal backend to backend communication from HTTP to HTTP2?

Server runs on tomcat 8.5

Ori Marko
  • 56,308
  • 23
  • 131
  • 233
  • 1
    Possible duplicate of [HTTP2 with node.js behind nginx proxy](https://stackoverflow.com/questions/41637076/http2-with-node-js-behind-nginx-proxy) – Barry Pollard Oct 27 '19 at 07:54
  • @BarryPollard Thanks, the accepted answer says that *benefits of HTTP/2 are negligible*, but node.js+nginx is different than tomcat 8.5 to tomcat 8.5 communication, no? – Ori Marko Oct 27 '19 at 08:22
  • @BarryPollard I found a relevant quote in your book *On intranet sites, latency shouldn’t be as big an issue as on the public internet, so the benefits of moving to HTTP/2 are fewer* – Ori Marko Oct 27 '19 at 08:55
  • Why are they different? – Barry Pollard Oct 27 '19 at 09:02
  • There is no such thing as 'server to server communication'. From the TCP or HTTP point of view one of them is a client. – user207421 Oct 27 '19 at 09:22
  • @BarryPollard They can be, quote from your answer *Nginx also doesn't, at the time of writing, support HTTP/2 for ProxyPass connections (though Apache does)* – Ori Marko Oct 27 '19 at 09:33
  • @user207421 server to server means, no resources (as css,js), not called from frontend framework as javascript, servers on same network, no need for ssl/encryption,... – Ori Marko Oct 27 '19 at 09:35
  • Ok but my basic point is that backend to backend (which is what I meant by server to server) doesn’t benefit as much from HTTP/2 as browser to edge server. That doesn’t change whether it’s Tomcat or Node. – Barry Pollard Oct 27 '19 at 09:35
  • @user7294900 In which case one of the servers is the client of the other. No two ways about it. You can't just invent terminology and expect everybody to understand it. – user207421 Oct 27 '19 at 10:00
  • @user207421 updated my question to *backend to backend communication* – Ori Marko Oct 27 '19 at 10:04
  • @user207421 notice I used site tag terminology`[server-to-server]` while there's no `[backend-to-backend]` tag – Ori Marko Oct 27 '19 at 10:19

1 Answers1

0

Most of the changes HTTP2 has made are to transform the protocol from a text protocol to a binary protocol, so the more components that speak in the HTTP2 network speed will increase as the binary protocol is more efficient (less traffic)

Idan Str
  • 614
  • 1
  • 11
  • 33
  • Will it be better than using **HTTP** which reduce redundant secure layer? can I use HTTP2 with **HTTP** in tomcat? – Ori Marko Oct 27 '19 at 07:27
  • Will it be better than using HTTP which reduce redundant secure layer - yes.. it's much efficiency. can I use HTTP2 with HTTP in tomcat - sorry i don't know – Idan Str Oct 27 '19 at 07:36