users@grizzly.java.net

Re: best strategy for streaming stock quotes?

From: Matthew Tretin <mwsltn_at_gmail.com>
Date: Thu, 20 Mar 2014 14:22:56 -0400

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!