blob: 6293417782c55ac3d1b2868417733b98f2dcd319 [file] [view]
# Dubbo java and go interoperability, with service discovery ands protocol
This example shows dubbo-go's service discovery and java-go interoperation feature with Nacos as registry.
> before run the code, you should Follow the instruction to <a href="https://dubbo-next.staged.apache.org/zh-cn/overview/reference/integrations/nacos/" target="_blank">install and start Nacos server</a>.
本示例针对 Dubbo2 老版本用户(或者仍在使用 Dubbo3 老服务发现模型)接口级服务发现的用户。演示如何基于 Dubbo2 接口级服务发现实现 Java 与 Go 体系互调。
## dubbo java 调用 dubbo go
1. 启动 go server
```shell
go run ./go-server/cmd/server.go
```
2. 启动 java client
```shell
./java-client/run.sh
```
## dubbo go 调用 dubbo java
1. 启动 java server
```shell
./java-server/run.sh
```
2. 启动 go client
```shell
go run ./go-client/cmd/client.go
```