简体   繁体   English

如何将数据从一个微服务连接到另一个微服务

[英]How to connect and fetch data from one micro service to another micro services

I am using spring cloud for API gateway I want to know how can we communicate one microservice to another also fetch data from any other microservices我正在为 API 网关使用 spring 云我想知道我们如何将一个微服务与另一个微服务进行通信并从任何其他微服务获取数据

Use OpenFeign , Check the documentation in spring使用OpenFeign ,查看spring中的文档

Spring Documentation for OpenFeign Spring OpenFeign 文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在典型的微服务体系结构中,如何在微服务的单独的RDBMS数据库中链接相关数据? - How to link the related data in the separate RDBMS databases of the micro-services in a typical micro-services architecture? spring-data-rest和微服务:在另一个spring-data-rest服务中与@OneToOne关系实体的实体 - spring-data-rest and micro-services: Entity with @OneToOne relationship with Entity in another spring-data-rest service 建议:从我的服务并行调用另一个微服务 - Suggestion : Making parallel call from my service to another micro service 将实体从另一个微服务引用到jdl-jhipster - Referring entity from another micro service to jdl-jhipster 如何阻止一个微服务消费消息队列中的消息-RabbitMQ - How to stop one micro service from consuming the message from Message queue-RabbitMQ Kubernetes:如何从 Java 微服务中检测总副本 - Kubernetes : How to detect total replicas from within a Java micro service 如何实现2个微服务之间的通信 - How to implement communication between 2 micro services 如何为异步微服务创建验收测试 - How to create acceptance tests for async micro services 在以下情况下如何设计微服务:- - How to design micro-services in the below scenario :- 2 微服务如何维护会话和异常? - How 2 micro services maintain session and exceptions?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM