Showing posts with label kafka. Show all posts
Showing posts with label kafka. Show all posts

Thursday, August 5, 2021

Spring and Kafka : KafkaListenerEndpointRegistry and MessageListenerContainer

 Hi All,

Section 1: 

The message queues exist for long time and we have been using this for last 15 years. We have used Active MQ, JBoss MQ, Tomcat with Active MQ, JBoss MQ (HornetQ) and WebSphere MQ.

We have been using them a standalone MQ server or server provided MQs like WebSphereMQ and JBOSS MQ.

Now for the last 5 years we have started using RabbitMQ and Kafka which replaced all the above one.

Lets look into them in detail.

Section 2: 

2.1 Sample code for Spring Reactive Kafka Producer and Listener

2.2 Sample code for KafkaListenerEndpointRegistry and MessageListenerContainer



Rabbit MQ: VS Kafka

 

  Rabbit MQ

  Kafka

 Support for Distributed MQ

 

 

 Scalable

 

 

 Support Languages

 

 

 Publisher