What is KafkaListenerContainerFactory?
iBuildNetflix
Last updated on
Your thoughts?
Share your thoughts
When you use @KafkaListener annotation, the KafkaListenerContainerFactory is used to configure the underlying ConcurrentMessageListenerContainer.
KafkaListenerContainerFactory is an INTERFACE.
It extends the MessageListenerContainer INTERFACE.
@KafkaListener utilizes a ConcurrentMessageListenerContainer under the hood...
ConcurrentMessageListenerContainer manages a collection of KafkaMessageListenerContainer instances.
KafkaMessageListenerContainers includes a ConsumerFactory and info about topics and partitions.
MessageListenerContainer's receive messages from Kafka topics.