Hi,
we are trying to setup dead lettering on RabbitMQ where main queue sends unprocessed messages to DLQ and then DLQ resends these messages back to original queue after 10 seconds. We successfully did this by consulting https://docs.spring.io/spring-cloud-stream/reference/rabbit/rabbit_overview/putting-it-all-together.html which creates this RabbitMQ configuration: https://p.defau.lt/?KVQGXs_SoMH_QY1nlnJqUA
Now we want to improve configuration, by changing x-dead-letter-exchange of the DLQ queue from "x-dead-letter-exchange": "" to "x-dead-letter-exchange": "telemetry-event-bus" to point to the same exchange we are using for original queue traffic https://p.defau.lt/?nSw0crOmXzX8UV0dR8PjZg .
For some reason this doesn‘t work. All messages are just dropped after DLQ TTL expires. Any ideas how to fix that?
--
Best Regards,
Vilius Šumskas
Rivile
IT manager
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/rabbitmq-users/AM8PR01MB8134A402011461B847DF293392E6A%40AM8PR01MB8134.eurprd01.prod.exchangelabs.com.
Thank you. I have added “x-dead-letter-routing-key”: “api-raw-events” to the DLQ and now it works. I assume sending through default exchange in previous configuration worked because default exchange has a routing key of queue name (which we set in DLQ routing in original queue)?
Regarding “at-least-once” dead lettering, I have read that post but had hard time to apply for our use case. Are you saying that DLQ the way we have configured it could be… “unstable” in some cases, and we should implement “at-least-once” dead lettering?
--
Vilius
To view this discussion visit https://groups.google.com/d/msgid/rabbitmq-users/CALWErWJH%2Bh%2BePXTbFHLY0ASkU6Ui1dQ7pQQCygHGSiAc%2BMpAuw%40mail.gmail.com.