Fetch method not returning more than 100 messages #686
Unanswered
robertmircea
asked this question in
Q&A
Replies: 1 comment 1 reply
-
If you want a continuous flow and most performant, right now I would use There is no hard limit. As far as only getting 100 messages, it could be a couple things.
Of these I'm inclined to believe that the acks pending is the most likely culprit, but they all contribute. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the following code for testing the performance of a pull subscriber using
Fetch
method:During my tests, I've noticed that
subscription.Fetch(200, 1000)
will not bring more than 100 messages in a batch no matter how high is parameterbatchSize
. Is there a hard limit set somewhere? Can it be raised?Which is the most performant way to fetch & consume messages from server?
Using latest nats-server 2.9 and nats.net 1.x client.
Beta Was this translation helpful? Give feedback.
All reactions