Reputation: 2740
I am new to Kafka and I have a Kafka leader version 0.10.0
and a zookeeper version 3.4.6
.There is two type of Kafka consumer API that I came across:
1. Kafka Polling
2. Kafka Streams
I am not able to find the significant difference between these two. What is the difference between Kafka polling and Kafka streaming consumers?What are the use cases suitable to both?
Any help is appreciated.
Upvotes: 2
Views: 174
Reputation: 594
KafkaStreams: KafkaStreams is used to do computation on data from one topic and send computed data to other topic. Internally kafkaStreams use Producer and Consumer both.
KafkaPolling : Kafka polling in kafka consumer fetches data from topic and its part of consumer process.
From my point of view if you just want to consume data from a topic, go for kafka consumer, else if you want to do some computation and save it for further use, use kafka streams.
Upvotes: 1