users@grizzly.java.net

Re: best strategy for streaming stock quotes?

From: Marc Arens <marc.arens_at_open-xchange.com>
Date: Thu, 20 Mar 2014 20:01:11 +0100 (CET)

https://github.com/Atmosphere/atmosphere does the same. Ryan implemented the
support for Grizzly and we tried it with Grizzly 2.2 but had to much trouble for
our usecase.

> On 20 March 2014 at 19:22 Matthew Tretin <mwsltn_at_gmail.com> wrote:
>
>
> You may want to check out socket.io, its not grizzly (I know sort of off
> topic) but its a streaming / push framework that supports everything from
> web sockets to long poll (comet)
>
> Basically its JS library that auto selects the best method for this sort
> of communication on the client side while provided a unified server side
> API.
>
> -mst
>
>
> On 3/20/14, 12:45, "Andrew Munn" <andrew_at_nmedia.net> wrote:
>
> >What would be the best strategy for streaming realtime stock prices to a
> >number of client web pages over the internet(not just a LAN)? messages
> >will be small (under 16 bytes) but numerous and minimal latency would be
> >ideal.
> >
> >The idea is a browser opens a web page from Server #1, on that page is an
> >area where prices are displayed. Server #2 feeds those prices into that
> >page and they're displayed. Should Server #2 be using:
> >
> > WebSockets?
> >
> > Comet? (HTTP Streaming? Long Polling?)
> >
> >
> >Thanks!
>
>

Best regards,
Marc