On 4 November 2016 at 14:19:28, Gary Russell (
grus...@pivotal.io) wrote:
> >I have a question regarding dead letter queues. Is it possible to
> configure multiple dead letter queues for an exchange so that I can route
> failed messages depending on the failure condition e.g. downstream
> connection failures go to one DLQ and business logic failures (not bugs!)
> go to another queue or queues.
>
> While you can configure multiple queues on the DLX, the routing key for
> dead-letter messages are fixed so you can't change the routing based on the
> failure type (in fact there's no mechanism to communicate any information
> back to the broker).
>
> SCStream does have an option to use a RepublishMessageRecoverer, in which
> case the binder republishes the message, to include additional information
> such as the exception message, stack trace etc, instead of using the
> broker's dead-letter routing. When using this recoverer, the message is
> acked normally. Again, however, the routing key for the republished message
> is fixed.
>
> So, one option, would be to add a consumer on the queue bound to the DLX
> and redistribute the errors - re-routing them to your desired queues.
>
>
> Since this group is for pure RabbitMQ issues/questions; if you need to
> discuss this further, please ask a question on Stack Overflow where Spring
> projects are supported.
>
>
> On Fri, Nov 4, 2016 at 10:05 AM, Michael Klishin
> > > For more options, visit
https://groups.google.com/d/optout.
> > >
> >
> > --
> > MK
> >
> > Staff Software Engineer, Pivotal/RabbitMQ
> >
> >
> > --
> > 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
> 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
.