Monday, March 9, 2015

3-9-15

Some of QBit's inspiration:

-AKKA
-Go Channels 
-Active Objects
-Apartment Model threading
-Actor
-Mechanical sympathy
-LMAX Disruptor
-Link transfer queue vs disruptor
-Work done by Tim Fox on Vertx

continued....
-----------------------------------------------------------

LMAX Disruptor

LMAX is a java trading platform that aims to be the fastest in the world. In order to achieve this they needed to do something to achieve very low-latency and high-throughput with their Java platform. Performance testing showed that using queues to pass data between stages of the system was introducing latency, so they focused on optimizing this area.


The Disruptor is the result of their research and testing. they found that cache misses at the CPU-level, and locks requiring kernel arbitration are both extremely costly, so they created a framework which has "mechanical sympathy" for the hardware it's running on, and that's lock-free.

This is not a specialist solution, it's not designed to work only for a financial application. The Disruptor is a general-purpose mechanism for solving a difficult problem in concurrent programming.

It works in a different way to more conventional approaches, so you use it a little differently than you might be used to. For example, applying the pattern to your system is not as simple as replacing all your queues with the magic ring buffer.

very good video to introduce this idea found here http://www.infoq.com/presentations/LMAX



Link transfer queue vs disruptor


One of the important components of a concurrent multithreaded system, distributed computing or otherwise, is the inter-thread messaging component. This link (http://php.sabscape.com/blog/?p=557) has a study that compares the performance of each of the following

Synchronized
ArrayBlockingQueue
LinkedTransferQueue
Disruptor

This study shows pretty much that the disruptor has the best performance along with TransferQueue.


No comments:

Post a Comment