In the previous two examples, we demonstrated the interoperability capabilities of dubbo java and dubbo go at the protocol level, covering both the triple and dubbo protocols.
In this document, we will demonstrate the service discovery interoperability between dubbo java and dubbo go. With the combination of protocol compatibility, we can achieve full interoperability between the dubbo java and dubbo go microservice systems.
This document uses the Nacos registry as a demonstration. You can view the complete example source code here.
Before running the code, you should follow this instruction to install and start the Nacos server.
cd service
Start Java Server
cd java-server
sh run.sh
Start Go Client
cd go-client
go run client.go
Start Go Server
cd go-server
go run server.go
Start Java Client
cd java-client
sh run.sh
cd interface
Start Java Server
cd java-server
sh run.sh
Start Go Client
cd go-client
go run client.go
Start Go Server
cd go-server
go run server.go
Start Java Client
cd java-client
sh run.sh