[LRUG] Multi-threading, Ruby & Rails

Guy Boertje guyboertje at gmail.com
Tue Sep 18 07:49:16 PDT 2012


Consider using the LMAX Disruptor idea - a big ring buffer that has
only one thread inserting work at the head and worker threads
processing those cells.

The first worker processes cells completed by the inserter, the second
worker processes cells completed by the first worker etc.

Only one thread (by design) mutates cell content.

Guy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20120918/6ec79283/attachment.html>


More information about the Chat mailing list