简体   繁体   English

如何使用 Apache Kafka 使用 SpringBoot 将数据从一个微服务发送到另一个微服务?

[英]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.

相关问题 将主要用户从一个 spring boot 微服务传递到另一个 springboot 微服务 - Passing principal user from one spring boot microservice to other springboot microservice 如何使用docker镜像从另一个微服务调用一个微服务 - How to call one microservice from another microservice using docker images 如何在Spring Boot中使用RestTemplate将JSON作为输入参数从一个微服务发送到另一个微服务 - How to send JSON as a Input parameter from one Microservice to another using RestTemplate in Spring Boot 从另一个springboot微服务上传文件到一个graphql springboot微服务 - Upload file to a graphql springboot microservice from another springboot microservice Spring Boot微服务框架如何从一个微服务调用另一个微服务 - spring boot microservice framework how to call another microservice from one microservice SpringBoot微服务如何使用java配置在应用上下文中设置属性 - SpringBoot microservice How to set properties in application context using java configuration Springboot如何在Zuul微服务上验证token - Springboot how to validate token on Zuul microservice SpringBoot 微服务 InvalidDefinitionException - SpringBoot microservice InvalidDefinitionException 为springboot微服务创建一个pojo - Creating a pojo for springboot microservice 微服务如何使用另一个微服务的安全性配置 - How can a microservice use the security config of another microservice
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM