This is a simple example of publish-subscribe message broker based on zeromq.
mkdir build
cd build
cmake .. -G "Unix Makefiles"
make
or if you prefer to use ninja
mkdir build
cd build
cmake .. -G "Ninja"
ninja
./broker &
./pub <topic> --broker &
./sub <topic> --broker &