Skip to content
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

Allow processing different partitions concurrently #188

Open
dasch opened this issue Sep 15, 2020 · 2 comments
Open

Allow processing different partitions concurrently #188

dasch opened this issue Sep 15, 2020 · 2 comments

Comments

@dasch
Copy link
Contributor

dasch commented Sep 15, 2020

While messages from a single partition must be processed in-order, messages from different partitions need not. Therefore, we can use multiple threads to process messages from different partitions.

@dasch
Copy link
Contributor Author

dasch commented Dec 10, 2020

I'm hoping that we can leave the consumer API as-is, and just have this be a configuration. Since both process and process_batch work on single-partition data, we should be able to spin up n independent consumer class instances and have n threads deliver messages to the processing methods independently.

@apeacock1991
Copy link
Contributor

I'm guessing no, but would this parallelise a consumer that subscribes to two topics, each with a single partition?

I was hoping if you had 2 workers, it would assign one topic to one worker, and one topic to another worker 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants