Questions about .NET publisher confirms & CreateChannelOptions using RMQ 7.x #550
Replies: 1 comment 2 replies
-
Example #3 is if you want to track publisher confirmations yourself. Unless you have a specific reason for doing so, I would use one of the other methods given in the tutorial. If you are doing batch publishes, then Example 2 is what you want to do. Experiment with batch sizes and your workload to find the best values. Thanks again for all your contributions recently! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking for guidance on what
CreateChannelOptions
to use, when trying to use publisher confirms in the .NET 7.x client.The .NET "Reliable Publishing with Publisher Confirms" tutorial contains the following statement near the start of the page:
Because this section appears at the top of the page, I took it to mean that this set of settings should be applied to any/all of the three strategies described further down the page. However, I'm not sure if that's true & I'm hoping the folks here could confirm or refute that assumption.
The info in the "Strategy #3" section appears to use a different set of
CreateChannelOptions
in theHandlePublishConfirmsAsynchronously()
method -- and it overwrites thechannelOpts
variable used by the other strategies, too:If the
CreateChannelOptions
settings used in theHandlePublishConfirmsAsynchronously()
method to initialize the channel it creates are correct, then at the very least I think a local variable should be used to store those settings, instead of overwriting the globalchannelOpts
variable used by strategies #1 and #2:FWIW I'm more than happy to create PRs for any changes that might be needed. However, I wanted to get a better understanding of the correct way to configure RMQ in each of the cases first, since I'm a novice to RabbitMQ as well as the process of migrating the .NET client from 6.x to 7.x.
Beta Was this translation helpful? Give feedback.
All reactions