-
Notifications
You must be signed in to change notification settings - Fork 77
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
[Enhancement request] SpringWolf to be compatible with Reactor Kafka #831
Comments
Welcome to Springwolf. Thanks a lot for reporting your first issue. Please check out our contributors guide and feel free to join us on discord. |
Hi @KafkaProServerless, thanks a lot for your interest in Springwolf and watching the video. |
Hello @sam0r040, thank you for the answer. |
Hi @KafkaProServerless, Given the example consumer from ractor-kafka, you can use Springwolfs generic annotations like this: @AsyncListener(
operation = @AsyncOperation(
channelName = "kafka-topic-name"
)
)
private void receiveRecord(CountDownLatch latch, @Payload ReceiverRecord<Integer, PayloadDto> record) {
}
record PayloadDto(String myProperty) {
} We extracted the lambda into a method so that you can make use of the Don not forget to configure extractable classes for ReceiverRecord to that the payload is extracted correctly from the second generic type: See https://www.springwolf.dev/docs/configuration/documenting-consumers#asynclistener for more details. |
Let me try that! |
Hello! I am glad to have found this post, as I am trying to accomplish the same thing. However, I am having difficulties making this work as well. This minimal example, with just 5 files, is what I am targeting to achieve. The first file is the pom: As you can see in the pom, there is the dependency to reactor Kafka. Not spring kafka, not spring cloud stream, but just spring and reactor Kafka! As mentioned, there won't be any kafkalistener annotation, or any spring cloud stream annotation, yet, it is a plain spring based project. Also, in the pom, there are the dependencies Are those dependencies enough? Too much? Now, looking at the code: there are just three java files.
You can see here the AsyncListener suggested above. The code is really just a reactive consumer which consumes from a topic reactively. Finally, a properties files: https://github.com/patpatpat123/springwolfreactorkafka/blob/main/src/main/resources/application.properties#L1 With this example, I was topic to also see the UI in the Youtube presentation, as well as some of the features presented there. Could you guys please help on pointing out what is missing? Thank you! |
Hello team,
Came into this project from this talk:
https://www.youtube.com/watch?v=DylvTW_ia4Y
If nothing else, this project seems to be very cool, very interesting.
We are using Kafka, and want to integrate with SpringWolf.
However, we are not using a regular Spring Kafka, but using reactor kafka https://github.com/reactor/reactor-kafka
Same question as in the talk around minute 33, can this project support reactor kafka?
Thank you
The text was updated successfully, but these errors were encountered: