Skip to content

Publisher - Subscriber on top of a self-routing node network (C++ 14)

License

Notifications You must be signed in to change notification settings

iliedanila/AsyncPubSub

Repository files navigation

PubSub

Asynchronous Publisher - Subscriber library on top of a self-routing node network (C++ 14)

This allows to create a dynamic network of publishers and subscribers (you can add/remove nodes while the system is running, add/remove subscriptions or start/stop certain publishers).

Requirements:

  • boost - install with sudo apt install libboost-all-dev on Ubuntu and brew install boost on MacOS

Feel free to submit inquiries about the above software at danila.ilie@gmail.com

Build:

./build.sh

Usage example:

startNode --name broker --accept 7777 --as broker --logger

startNode --name publisher --connect-reconnect localhost 7777 --as publisher --publish dummyData --interval 1000

startNode --name subscriber --connect-reconnect localhost 7777 --as subscriber --subscription dummyData