问题标签 [go-micro]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
37 浏览

go - go micro V3 - 从另一个微服务调用一个微服务

我使用 go-micro V3 创建了两个微服务,如下所示。你好世界1 你好世界2

微服务可在本地端点 /helloworld1 和 /helloworld2 中访问。

有没有办法通过 rpc 调用从 helloworld1 调用 helloworld2 并使它们在 go micro 服务器内部进行通信?

示例代码会更有帮助。