moiri / streamix

Root repository for the Streamix project
0 stars 1 forks source link

ZMQ Read and Write Box implementation #3

Closed moiri closed 4 years ago

moiri commented 5 years ago

In order to allow a Streamix network to interface any application two boxes need to be created:

moiri commented 5 years ago

An interesting paper bench-marking message queue libraries (including zeroMQ and its fork nanomsg).

moiri commented 4 years ago

After a whole lot of reading about zmq and playing with it a bit I created two box implementations:

  1. smx_snk_zmq a publisher
  2. smx_src_zmq a subscriber

Either of them can act as server or client and they communicate over tcp.

udp support was only added recently with the Radio-dish pattern but is still in draft state and not yet available in libzmq distributed with ubuntu.

It is rather simple to work with zmq compared to manually handle sockets. For example it does not matter in which order publishers and subscribers come online (which is a big hassle with conventional sockets).