简体   繁体   中英

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

如何使用Apache Kafka使用 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM