Delay Kafka consumer initialization on application startup #27730
Replies: 5 comments 8 replies
-
/cc @alesj, @cescoffier, @ozangunalp |
Beta Was this translation helpful? Give feedback.
-
Still a work in progress, but I think when this will be merged smallrye/smallrye-reactive-messaging#1860 it can answer your question. |
Beta Was this translation helpful? Give feedback.
-
Hello guys! Is there any workable solution for this? |
Beta Was this translation helpful? Give feedback.
-
We also have a use case for this, we want to have the consumer disabled on startup, and startup the consumer on custom signals. |
Beta Was this translation helpful? Give feedback.
-
Would the pausable feature be a good fit to your requirements? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am migrating an old thorntail app to Quarkus + SmallRye Kafka. It consumes messages from multiple channels, process them and send to third party vendor.
During startup(StartupEvent) app prefetches some data from vendor which is required for processing messages. Challenge I am having is coordinating data prefetching and Kafka consumer start-up. Consumer is starting much before and as a result message processing is failing.
I have looked at the documentation and stackoverflow with not much luck. Is it possible to implement above usecase with Quarkus without using Native Kafka client?
I have also checked #27205 but not sure if its solves above usecase.
Related discussions on StackOverflow:
https://stackoverflow.com/questions/62824824/is-it-possible-to-delay-consuming-from-channels-amqp-kafka-etc-in-quarkus
https://stackoverflow.com/questions/62329274/how-to-deploy-a-kafka-consumer-being-in-pause-mode-until-i-signal-to-start-consu
Beta Was this translation helpful? Give feedback.
All reactions