News for hackers. Stuff that matters.
Re:Blink: Intent to Remove: HTTP/2 and gQUIC server push by gravypod on Wednesday November 11, 2020 @08:22PM (#25065254)
Server push is quite useful for bidirectional streaming of data which is heavily used in gRPC to help reduce latency and shovel large amounts of data.
Re:Blink: Intent to Remove: HTTP/2 and gQUIC server push by psanford on Wednesday November 11, 2020 @08:35PM (#25065380)
gRPC does not use PUSH_PROMISE. It uses HTTP/2 streams, but those streams all get initiated by the client.
Re:Blink: Intent to Remove: HTTP/2 and gQUIC server push by pa7x1 on Thursday November 12, 2020 @04:37AM (#25068132)
This 100%. There is so much confusion between HTTP/2 Push and and HTTP/2 bidirectional streaming capabilities, I personally had to go back to the Spec. to understand the difference because a lot of material just mixes them together. They are not the same thing.
Re:Blink: Intent to Remove: HTTP/2 and gQUIC server push by ahupp on Wednesday November 11, 2020 @08:34PM (#25065372)
I think this is different than server push like WebSockets; this is all about pushing down resources the server suspects you'll need.
Re:Blink: Intent to Remove: HTTP/2 and gQUIC server push by josephg on Thursday November 12, 2020 @05:16AM (#25068354)
Websockets are different again from both server push and h2 streams. Server push was a feature added in http2 for populating the browser’s cache. Websockets are an http/1.1 extension for tcp-like bidirectional messaging.

Server push, websockets, h2 steams and webtransport are all different things.

Re:Blink: Intent to Remove: HTTP/2 and gQUIC server push by brabel on Thursday November 12, 2020 @06:57AM (#25068855)
Don't forget Server Sent Events[1] as well, which is yet another different technology.

[1] https://en.wikipedia.org/wiki/Server-sent_events

Re:Blink: Intent to Remove: HTTP/2 and gQUIC server push by techdragon on Thursday November 12, 2020 @08:02AM (#25069377)
Yea but unlike http2 push, server sent events were actually useful! You could use it super easily and by holding open a connection and pushing down little json or XML payloads you could build all sorts of things easily in JavaScript. I even saw super basic chat functionally built using two Iframes a form in one and the chat log pushed back from the server as a stream of valid but open ended HTML abusing how lax the browser was about parsing missing certain closing tags at the time. SSE was and still is super easy to use and a very useful option if you can’t or don’t want to shift to web sockets.
Re:Blink: Intent to Remove: HTTP/2 and gQUIC server push by earthboundkid on Thursday November 12, 2020 @09:44AM (#25070392)
Most applications that use WebSockets should be using SSE instead, but WS has better mindshare, and SSE doesn't work in IE11.
Re:Blink: Intent to Remove: HTTP/2 and gQUIC server push by josephg on Thursday November 12, 2020 @06:26PM (#25076731)
SSE can be polyfilled to work in IE11. It can be implemented on top of XHR from ie7 or so onwards.

Some caching proxies struggle with it though, because they try to buffer an entire response before forwarding it. And it’s 1 way. For something like collaborative editing, crafting a POST request for every keystroke feels wasteful, though it works great in practice.

Re:Blink: Intent to Remove: HTTP/2 and gQUIC server push by bonkabonka on Thursday November 12, 2020 @09:52AM (#25070461)
I'd second that!

I use the heck out of SSE to add update notifications to various of my apps because it's just so easy to do. Have it glued to a Redis stream (or pubsub channel) with https://github.com/bonkabonka/sseredis (though that shim looks like it needs a bit of love and a better README.)

Re:Blink: Intent to Remove: HTTP/2 and gQUIC server push by Guthur on Wednesday November 11, 2020 @08:31PM (#25065345)
And the problem there is shoe horning RPC requirements into a hypermedia transport.

I feel we've made a big mistake following Google's micro service requirements for what should be a ubiquitous hypermedia back bone.

It's bewildering that so many smart people could end up conflating the two for our standard protocols.