-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ProcessAllPartitionsTogether vs ProcessPartitionsIndependently #218
Comments
Hi @LeorGreenberger I'm sorry for not getting back to you sooner. The Kafka consumer protocol only allows for sequential reads (you can basically only pull the next message in a loop), all the parallelization is handled by Silverback, which creates a That being said, the main benefit of parallelization is that (in the best case) you can process concurrently 1 message per partition. Each channel is being sequentially read in a separate "thread" and a The main difference when processing partitions together is that all messages will be written to the same A thing has to be noted: as far as I know, there isn't a way to predict or control which partition are you gonna get the next message from. This means that you could be subscribed to 4 partitions, but get N consecutive messages from the same partition and there isn't much I can do about it. |
Thank you very much for the informative response! Interestingly enough, my subscribers generally enqueue a job in Hangfire, which allows me to at least monitor what is happening through the Hangfire Dashboard and requeue failures as needed. Edit: Just thought of something else. When configuring |
Hi Sergio,
I was hoping you could clarify the difference between these two modes. Read the documentation a few times but it still is not clear to me.
Channel<T>
is created between the consumer and the in memory bus? My assumption is that the in memory bus uses oneChannel<T>
to sequentially produce messages to a subscriber, so what would be the benefit of having a Channel per partition connected to the in memory bus?Thanks!
The text was updated successfully, but these errors were encountered: