[英]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.是的,您可以使用 Apache Kafka 在微服务之间进行通信。 With Spring boot you can Spring Kafka or plain kafka-client API.使用 Spring boot,您可以使用 Spring Kafka 或普通的 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.您可以从 Producer & Consumer API 开始,生产者将记录发送到一个主题,然后一个消费者(或一组消费者)从该主题中消费记录。
Please refer this for better understanding.请参考这里以便更好地理解。
If you need any help let me know.如果您需要任何帮助,请告诉我。 Happy to help.乐于帮助。
Links:链接:
microservices-apache-kafka-domain-driven-design microservices-apache-kafka-domain-driven-design
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.