Ask Your Question
2

How to retrieve lost messages in ZeroMQ publish/subscribe model?

asked 2022-11-01 11:00:00 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-12-21 19:00:00 +0000

woof gravatar image

Unfortunately, ZeroMQ's publish/subscribe model does not support message retrieval once they have been published. Once a message is published by a publisher, it is delivered to all subscribed clients at that particular moment in time.

If you require a message retrieval mechanism, you may want to consider using different ZeroMQ messaging patterns like Req-Rep or Dealer-Router. In these messaging patterns, a client can request a specific message from the server, and the server can respond with the requested message if it exists.

Alternatively, you can use persistent message queues like RabbitMQ or Apache Kafka which support message retention and can keep messages even after they have been consumed.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-11-01 11:00:00 +0000

Seen: 20 times

Last updated: Dec 21 '22