2 ms·
This is really cool! I do want to say though, if you're considering using this for a production system: it's worth also considering ZeroMQ inproc sockets[0]. T
by Zambyte 3y ago
This is really cool!
I do want to say though, if you're considering using this for a production system: it's worth also considering ZeroMQ inproc sockets[0]. They allow for very similar semantics to this, with the added benefit of trivially being able to migrate to an inter-process / network channel, by just changing the URL to bind / connect to.
[0] http://czmq.zeromq.org/ http://czmq.zeromq.org/
- smabie 3y agoDepending on your use case, zmq inproc I've found has a lot more latency than you would expect. like p50 of >100us and p99 can be over 1ms. Kind of unfortunate as other more handrolled solutions (depending on use case) can easily be <10us. Feels like you really need to be using a lock free ring buffer that only supports 1<>1 communication if you really want to go fast. (p50 of <1us with very compressed tail latencies)