Questions tagged [server-push]

Server push describes a style of Internet-based communication where the request for a given transaction is initiated by the publisher or central server.

Push services are often based on information preferences expressed in advance. This is called a publish/subscribe model.

A client might "subscribe" to various information "channels". Whenever new content is available on one of those channels, the server would push that information out to the user.

E.g. APPLE Push notifications or Android Push notifications.

336 questions
5
votes
2 answers

Can ASP.NET MVC's AsyncController be used to service large number of concurrent hanging requests (long poll)?

Frameworks like Node.js, Tornado, and Twisted let developers create server-push applications that supports large number of concurrent hanging requests (10k+). From what I understand, they all achieve this by not creating threads to service each…
David H
  • 2,901
  • 1
  • 26
  • 21
5
votes
0 answers

Firefox and HTTP/2 server push

HTTP/2 server push makes our sites considerably faster on first view. However, Firefox seems to have disabled server push since ca. v56. Over at webpagetest.org, Patrick Meenan suggested that the developers had turned this off temporarily. Searching…
utrenkner
  • 81
  • 1
  • 5
5
votes
1 answer

How to implement receiving a server push in OkHttp?

Following the question Does OkHttp support HTTP/2 server push?, are there any examples available on how receiving pushed content on the client side could be implemented? How will the interaction of OkHttpClient, Request, Response and Http2Connection…
Erunafailaro
  • 1,835
  • 16
  • 21
5
votes
1 answer

Understanding Comet by Example

Its feature is so called "server push", which google wave seems also leverages. Can someone explain this concept by code snippet how it actually works in web application?
user198729
  • 61,774
  • 108
  • 250
  • 348
5
votes
2 answers

Django Server Push Method

I developed a Django application which requires the server push (or comet) for the further enhancement. I first had successfully implemented the server push using the "orbited" which worked great in all the major browsers except the IE (yeah I…
Chris P
  • 1,619
  • 2
  • 12
  • 9
4
votes
2 answers

Client side technique for Comet

I'm trying to come up with a practical client-side (JavaScript) implementation for Comet. http://en.wikipedia.org/wiki/Comet_(programming)) talks about the theory but I'm having a tough time trying to find an implementation that works. I understand…
0cd
  • 1,729
  • 3
  • 15
  • 24
4
votes
1 answer

Server Push With rails options

I am trying to build a rails application which requires a "server push" functionality ie Comet . I started looking for options I have found three and tried one of them: Juggernaut : I tried it, am not entirely satisfied/comfortable though, has some…
Rishav Rastogi
  • 15,484
  • 3
  • 42
  • 47
4
votes
1 answer

How to use Vaadin FLOW server-push with Spring Boot

When I use the @Push annotation on a view I get the following exception (JDK 16, Vaadin 19.0.7, Spring boot 2.4.7): org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is…
Franco G
  • 375
  • 3
  • 12
4
votes
2 answers

HTTP/2 Server Push results in duplicate requests

A response for a document with the following headers enters Nginx: link: ; as=image; rel=preload link: ; as=script; rel=preload link:…
Dawid
  • 585
  • 5
  • 26
4
votes
1 answer

How can I check that HTTP2/Server Push works properly?

I've been testing HTTP2 Multiplexing and HTTP2/Server Push in Node.js locally and inspected it in the waterfall network graph in Chrome Dev Tools. While using my own Node.js Server Push with res.stream.pushStream I got an "Initiator: Push (index)"…
Dawid
  • 585
  • 5
  • 26
4
votes
1 answer

HTTP/2 server pushed asset downloading twice

I am trying to use HTTP/2 server push, powered by Cloudflare. I am trying to push two assets using the following HTTP Header... Link: ; rel=preload; as=image, ; rel=preload; as=style The image is…
Rik Lewis
  • 750
  • 4
  • 10
4
votes
1 answer

How could I save files on browser cache after pushing it with a Server push?

I have an Apache with http2, and I have made a server push of files which I would like to save on browser cache, but it doesnt and I dont know why. I have made the push with a php file, the following one. header( 'Link:…
Elo
  • 137
  • 1
  • 9
4
votes
1 answer

StackOverflow: Automatic information about update

On any page of SO, the page automatically tells me if there is any update. That is, the page automatically displays the info "There is one question with update" or so. I was curious how this is implemented. I opened my chrome browser, opened the…
gefei
  • 18,922
  • 9
  • 50
  • 67
4
votes
1 answer

Jetty HTTP2 server push support

for SPDY, we need to implement a PushStrategy and to register it to push resources. What about HTTP2 support? I like the idea of nginx which consists to read link header in the HTTP response:…
Guillaume D.
  • 3,284
  • 3
  • 20
  • 26
4
votes
3 answers

Reading HTTP server push streams with Python

I'm playing around trying to write a client for a site which provides data as an HTTP stream (aka HTTP server push). However, urllib2.urlopen() grabs the stream in its current state and then closes the connection. I tried skipping urllib2 and using…
Sam
  • 43
  • 1
  • 4