【问题标题】:rabbitmq setting requeue in spring xdrabbitmq在spring xd中设置requeue
【发布时间】:2017-03-03 10:08:58
【问题描述】:

1) spring-xd rabbitmq 'requeue=false' 选项不起作用。
下面两个设置结果是一样的。 我将“requeue”选项设置为“false”,但 rabbitmq 总是尝试重新排队(=重试)。
这些选项之间是否有任何优先级?
是 (maxAttempts 优先级 > requeue 优先级)???

module.*.consumer.requeue = true
module.*.consumer.maxAttempts = 5


module.*.consumer.requeue = false
module.*.consumer.maxAttempts = 5

2) 如何将 DLQ 自动处理回总线队列? (使用 spring xd 设置...)


3) 有没有其他方法可以问第二个问题?


请帮帮我:'(

【问题讨论】:

    标签: java spring rabbitmq message-queue spring-xd


    【解决方案1】:

    requeue 选项仅在重试关闭时才有意义 (maxAttempts=1)。

    启用重试 (maxAttempts > 1) 时,消息将被拒绝,并且在重试用完后不会重新排队。

    打开调试日志以查看重试和消息拒绝行为。

    没有提供将消息移回主队列的机制 - 有关一些建议,请参阅 this documentation for the newer Spring Cloud Stream project

    【讨论】:

      猜你喜欢
      • 2017-03-16
      • 1970-01-01
      • 2016-07-27
      • 2014-10-21
      • 1970-01-01
      • 1970-01-01
      • 2014-11-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多