[zeromq-dev] Delaying message feed

Steven McCoy steven.mccoy at miru.hk
Thu Jan 28 16:31:46 CET 2010


2010/1/28 Martin Sustrik <sustrik at 250bpm.com>

> Hi,
>
> In stock trading industry it's pretty common to delay stock quote feeds so
> that it can be sold for discount price to the clients that have no need for
> real-time stock quote feeds.
>
> Attached is the source code for a simple application that delays messages
> by 10 seconds. It can be tested using "prompt" and "display" applications
> from "chat" example (examples/chat). Write an instant message and it gets
> delivered with 10 sec delay :)
>
> I hope some of you will find this piece of code useful.
>
>
The additional complexities in the real world are different delays for
different exchanges, and frequently a delay spool larger than the system
memory, requiring disk offload.

Often you will also see conflation to reduce the number of updates too,
especially when clients may be Internet based.

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100128/b799a641/attachment.htm>


More information about the zeromq-dev mailing list