Requeueing dead letter messages

旧街凉风 提交于 2019-12-29 08:22:19

问题


Is there any functionality built in to spring-amqp that would make it easy to requeue dead letter messages? I can write code to do it but it seems like such a common use case that would fit well into the framework.


回答1:


This is outside of Spring AMQP, but you can configure a TTL on the dead letter queue and configure that queue to dead-letter back to the original queue when expired.

You can check the x-death header if you want to give up completely after some number of retry cycles.

See this answer and its question for more information.



来源:https://stackoverflow.com/questions/31248441/requeueing-dead-letter-messages

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!