Skip to content

Commit

Permalink
RabbitMQ v10 upgrade guide (#6850)
Browse files Browse the repository at this point in the history
* RabbitMQ v10 upgrade guide

* Update rabbitmq-9to10.md

* Update rabbitmq-9to10.md

---------

Co-authored-by: danielmarbach <danielmarbach@users.noreply.github.com>
Co-authored-by: Brandon Ording <bording@gmail.com>
  • Loading branch information
3 people committed Sep 25, 2024
1 parent 7e2cea3 commit b724cef
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions transports/upgrades/rabbitmq-9to10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: RabbitMQ Transport Upgrade Version 9 to 10
summary: Instructions on how to upgrade RabbitMQ Transport from version 9 to 10.
reviewed: 2024-09-25
component: Rabbit
related:
- transports/rabbitmq
isUpgradeGuide: true
upgradeGuideCoreVersions:
- 9
---

## RabbitMQ Client v7 Upgrade

The transport now uses [RabbitMQ.Client v7.0.0](https://www.nuget.org/packages/RabbitMQ.Client/7.0.0), which exclusively supports an async API model. This change results in some breaking changes in the public API.

For details, see the [RabbitMQ client changelog](https://github.com/rabbitmq/rabbitmq-dotnet-client/releases/tag/v7.0.0).

### `IRoutingTopology` Updates

The following changes have been made to `IRoutingTopology`:

- All methods return a [ValueTask](https://devblogs.microsoft.com/dotnet/understanding-the-whys-whats-and-whens-of-valuetask/).
- The type of the `channel` parameter has been changed from `RabbitMQ.Client.IModel` to `RabbitMQ.Client.IChannel`.
- The type of the `properties` parameter has been changed from `RabbitMQ.Client.IBasicProperties` to `RabbitMQ.Client.BasicProperties`.
- All methods include a [CancellationToken](https://learn.microsoft.com/en-us/dotnet/standard/threading/cancellation-in-managed-threads) as the last parameter.

0 comments on commit b724cef

Please sign in to comment.