[Solved] How to use Apache Kafka to send data from one microservice to other microservice using SpringBoot?


Yes, you can use Apache Kafka to communicate between Microservices. With Spring boot you can Spring Kafka or plain kafka-client API. Well there are various ways to achieve this, and it is totally depends on your use case. You can start with Producer & Consumer API, producer will send records to a topic, and then a consumer (or group of consumer) consume the records from the topic.

Please refer this for better understanding.

If you need any help let me know. Happy to help.

Links:

microservices-apache-kafka-domain-driven-design

1

solved How to use Apache Kafka to send data from one microservice to other microservice using SpringBoot?