Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 46 lines (34 sloc) 1.489 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
NanoMQ
======

NanoMQ is a ultra low latency messaging kernel. It enables messaging
between processes in much the same way as POSIX message queues but at
sub-microsecond latencies. NanoMQ uses efficient wait-free ring
buffers arranged in a complete graph. Each node can send messages to
any other node, receiving nodes needs to exclusively own a CPU core or
HyperThread. The ultra low latency can thus be achieved by avoiding
context switches.

Building
--------

Just run make. Requires recent GCC. Tests require Google Test.

Performance
-----------

On my Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz I get an average RTT
of 250 ns and a throughput of 13M msg/s for a two node setup with 100
byte messages. It will be interesting to see measurements on multi CPU
systems and the latency depending on which cache the cores share.

Use case
--------

In high frequency trading (HFT) systems you want to separate feed
handlers and order management systems (OMS) from strategy code in
order to increase fault tolerancy and support live deployment of bug
fixes or new strategies. NanoMQ allows you to separate these parts of
a trading system into separate processes while keeping communication
latencies to a fraction of a microsecond.

Resources
---------

Git repository: http://github.com/rigtorp/nanomq

Copying
-------

Free use of this software is granted under the terms of the GNU
General Public License (GPL). For details see the file `COPYING`
included with the NanoMQ distribution.
Something went wrong with that request. Please try again.