zeromq create messages buffer between nodes

298 views Asked by At

I need a broker-less pattern for reading and writing messages between nodes without remove any message from queues until some monitor system accept removing message.

Can i do this with zeromq?, in zmq if one publisher node die the message queued on network is gone too? how can i save this queue in network!!!

( i want send a message with publisher and subscribers read message but don't delete that from queue until my Qos monitor remove that from array. and if my publisher die message queue created with it should not be deleted.

Can i implement these functionality with current patterns in zmq? )

1

There are 1 answers

4
Jason On BEST ANSWER

You'll have to build that level of redundancy/reliability into your app, rather than rely on ZMQ to provide it.

What this means is that you'll have to keep track of all your messages at the publisher node, and then a subscriber node should be able to communicate back that it has received the message, allowing the publisher node to delete it's cache. This means multiple sockets, most likely, unless you really want to try and get XPUB/XSUB to communicate in this way, but it seems probably not the ideal choice.

If you need something more directly supported in your communication library, then ZMQ isn't going to cut it for you... but I doubt you'll find anything else that will, either.