Skip to content

fix: update amqp lib to support rabbitmq4.x#235

Open
Bhaswati1148 wants to merge 2 commits into
masterfrom
update-amqp-lib-to-support-rabbitmq4.1.0-and-later-releases
Open

fix: update amqp lib to support rabbitmq4.x#235
Bhaswati1148 wants to merge 2 commits into
masterfrom
update-amqp-lib-to-support-rabbitmq4.1.0-and-later-releases

Conversation

@Bhaswati1148
Copy link
Copy Markdown
Contributor

Description

This PR upgrades the amqplib dependency in @user-office-software/duo-message-broker from 0.10.3 to 0.10.9 to ensure compatibility with RabbitMQ 4.x

Motivation and Context

In STFC, we are currently upgrading RabbitMQ from version 3.12.x to 4.x.

RabbitMQ 4.x introduces stricter AMQP connection negotiation rules and enforces a minimum allowed frame_max value of 8192 during connection setup. Older versions of amqplib (including the currently used 0.10.3) default to a frame_max value of 4096, which results in connection failures when connecting to RabbitMQ 4.x brokers.

Reference: amqp-node/amqplib#787

We are intentionally upgrading to 0.10.9 instead of the latest major version of amqplib because the RabbitMQ 4.x compatibility fix is available starting from 0.10.7. Upgrading within the same major version minimizes the risk of introducing unrelated breaking changes in the message broker package.

How Has This Been Tested

Tested locally against RabbitMQ 4.3.0 by configuring the RabbitMQ frame_max value to 131072.

Fixes

Changes

Depends on

Tests included/Docs Updated?

  • I have added tests to cover my changes.
  • All relevant doc has been updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant