【问题标题】:How should I abort the client if there are no servers running?如果没有服务器在运行,我应该如何中止客户端?
【发布时间】:2016-04-15 08:40:49
【问题描述】:

如何检查服务器是否正在侦听以下 RPC 客户端服务器调用?

https://www.rabbitmq.com/tutorials/tutorial-six-python.html

【问题讨论】:

    标签: rabbitmq pika


    【解决方案1】:

    给消息或队列一个超时:

    https://www.rabbitmq.com/ttl.html

    客户需要

    如果它接收到之前发送的死消息请求,那么在超时时间内没有服务器消费过该消息并且可以相应地运行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-20
      相关资源
      最近更新 更多