-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
GH-2381 : Support kafka parallel-consumer #3161
base: main
Are you sure you want to change the base?
GH-2381 : Support kafka parallel-consumer #3161
Conversation
@chickenchickenlove Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@chickenchickenlove Thank you for signing the Contributor License Agreement! |
@chickenchickenlove Thank you for the PR and the kind words. Next month, we will release the first |
Hello, @sobychacko ! I see! however, that's sounds great. 👍 Also, Please let me know in case of a decision not to introduce Thanks for your time, again 🙇♂️ |
Any update on this please ? |
@tagorenathv We will look at this after the GA for |
hello @sobychacko any plans to implement it in near future? Thank you in advance for info! |
@BartlomiejSzczotka Yes, we will still look at this for the |
Hi, @sobychacko ! Also, i made new commits for improving code quality at April 27, 28! So, Take your times and please feel free to talk anything, any thoughs! Thanks a lot to look at this PR! 😃 |
Hi, @sobychacko .Gently ping. 🙇♂️ It's been a while. |
@chickenchickenlove For various reasons on our end, we decided to postpone this feature to either the next minor ( |
Thanks for checking 👍 |
Introduction
Hi, Spring Team.
This is chickenchickenlove, huge fan of you guys.
I saw this issue (Support kafka parallel-consumer), and this comment as well!
So, i'd like to implement that integrate
Parallel Consumer
tospring-kafka
This is skeleton code.
Please take a look when you have some free time. 🙇♂️
Thank you for your time!
Background
Parallel consumer
will be more helpful than kafka consumer, because parallel consumer have good parallel processing (If you want to know more, See this).spring-kafka
as well.How To use
@EnableParallelConsumer
to your Spring application. then, some spring bean related withparallel consumer
, will be registered toApplicationContext
ParallelConsumerCallback
and register their concrete class as spring bean by annotating@Component
or@Configuration
.ParallelConsumerFactory
will startParallelConsumer
andParallelConsumer
process records withParallelConsumerCallback
concrete class.ETC
@KafkaListener
?ParallelConsumer
can allow only one callback. thus, it is not suitable forParallelConsumer
.ParallelConsumerImportSelector
?org.springframework.boot.autoconfigure.kafka.KafkaAutoConfiguration.java
class support to register spring bean,ParallelConsumerImportSelector
can be removed.Update from Apr 27.
parallelConsumer
.Thank you for your time, Again.