开发者

Rabbitmq message differentiate with message id based on Java API

开发者 https://www.devze.com 2023-01-16 19:51 出处:网络
i would like to publish/produce a message with some message id, like each message has a particular id..And at the consumer end i would like to retrieve the messages by prividing the ID. suppose we hav

i would like to publish/produce a message with some message id, like each message has a particular id..And at the consumer end i would like to retrieve the messages by prividing the ID. suppose we have multiple consumers than each one sh开发者_运维问答ould get only those messages which they requested through the message ids using java. (i hope i am clear enough).

Thanks


This is not exactly how a queue Functions you should be looking at Hashtables (key,value) stores like Redis.

A queue is not supposed to have look up features. One way is the consumers consume messages and remove those only those messages from the Queue, whose UID they want.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号