-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Provide a sample with webflux to develop http rest api #3657
Comments
You can get an idea from here: https://github.com/artembilan/sandbox/tree/master/amqp-to-webflux. We might accept a contribution on the matter, but not a fact that we will implement it ourselves since it is much broader, then this project goal. The request-reply for Another option to consume from Kafka topic is to use I'd suggest to start with something and come back to StackOverflow with more specific question: our knowledge in this project might not be enough to help you well. |
Hi @artembilan, To help clarify the case I need to create a few http rest api to receive messages from kafka.
A high level flow is:
Main points:
Thanks again |
OK. Sounds like very complex application, which is indeed out of this project scope. Saying that here are some pointers on what I see so far: I don't see a correlation between If you say there is already REST API from Confluent on the matter, so why pursue your own?
That sounds like a
That is exactly what I've showed with my sample for AMQP above. It is probably going to be a bit complicated trying to create a At the same time, most of those components are supposed to be Spring beans and that complicates things more for such a dynamic API. I'm not sure how to help you else with much more dedication and requirements investigation. |
Expected Behavior
Create a sample with spring-kafka and spring webflux
Context
I need to develop a microservices with spring webflux to expose a set of http rest api to allow a client to consume messages from kafka
The api are available based on this issue but the complexity is high. The application must connect a "stream" domain (kafka) with a req-resp (the webflux http rest api) domain.
Can you provide a sample on how to correctly use spring-kafka in a spring webflux application?
Do you know some project with this functionality to look at?
The text was updated successfully, but these errors were encountered: