How to push notify consumers from kafka message bus
How to push notify consumers from kafka message bus
I am writing microservice application using C# asp.net core 2.0, Kafka, CQRS and Confluent Kafka .net library.
Just wonder if kafka can notify the consumers rather than the consumers poll/consume message?
Thanks
1 Answer
1
Kafka can not push notifications to consumers.
Consumers have to keep polling/consuming messages in order to receive them. This is the only way messages stored in Kafka can flow to consumers.
The Consumer Design section in the Apache Kafka documentation explains why "consumer pulling" was choosed over "broker pushing".
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Yes, by pushing a message onto the message bus which gets polled/consumed by the consumers. What exactly is the question or problem you have?
– Progman
Sep 11 '18 at 11:49