Wait for a single RabbitMQ message with a timeout

后端 未结 5 1618
礼貌的吻别
礼貌的吻别 2020-12-15 12:53

I\'d like to send a message to a RabbitMQ server and then wait for a reply message (on a \"reply-to\" queue). Of course, I don\'t want to wait forever in case the applicatio

5条回答
  •  太阳男子
    2020-12-15 13:31

    There's an example here using qpid with a msg = q.get(timeout=1) that should do what you want. Sorry, I don't know what other AMQP client libraries implement timeouts (and in particular I don't know the two specific ones you mentioned).

提交回复
热议问题