Skip to content

lower performance in publiching batches in the v7 version #1848

Answered by lukebakken
GhoufranGhazaly asked this question in Q&A
Discussion options

You must be logged in to vote

This is the problem:

int batchSize = rmqMessages.Count();// Math.Max(1, MAX_OUTSTANDING_CONFIRMS / 2);

As soon as your list of messages pending confirmations exceeds half the outstanding confirms count, the client library will rate-limit your publishes. This is to prevent your application from overwhelming the broker.

Please modify your code to publish in batches in exactly the same manner as the example. If you need assistance, provide a GitHub repository with code I can clone, compile, and run. I can then more easily assist you.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@GhoufranGhazaly
Comment options

@GhoufranGhazaly
Comment options

@michaelklishin
Comment options

@lukebakken
Comment options

Answer selected by michaelklishin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants