-
Notifications
You must be signed in to change notification settings - Fork 642
Description
The Spring Cloud Stream RabbitMQ Binder Reference Guide recommends that the AMQP 0.9.1 client re-publishes a message with the x-death
header it received from RabbitMQ in order to determine the number of times (count
) the message was received and re-published to RabbitMQ, see rabbitmq/rabbitmq-server#10709 (comment)
We consider this an anti-pattern or even bug because AMQP 0.9.1 headers prefixed with x-
including x-death
"belong" to the broker and are not meant to be specially parsed and interpreted by the broker when received from an AMQP 0.9.1 client.
Hence, as explained here, we recommend changing the documentation to instead use some custom non x-header to determine how often a message was re-published from the client to the broker.
Starting with RabbitMQ 4.0, the current documented pattern by Spring Cloud Stream RabbitMQ Binder Reference Guide will break.