Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.