Skip to content

Fix RabbitMQ x-death header documentation #2688

@ansd

Description

@ansd

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions