tree: f05fd3bf51f4fd8fbb7fb76df15205fbbb551cc7 [path history] [tgz]
  1. go-client/
  2. go-server/
  3. proto/
  4. README.md
registry/nacos/README.md

Zookeeper as registry

This example shows dubbo-go's service discovery feature with Zookeeper as registry.

How to run

Start Nacos server

Follow this instruction to install and start Nacos server.

Run server

$ go run ./go-server/cmd/server.go

test rpc server work as expected:

$ curl \
    --header "Content-Type: application/json" \
    --data '{"name": "Dubbo"}' \
    http://localhost:20000/greet.GreetService/Greet

Open https://localhost:8848/nacos/ with browser, check url address successfully registered into Nacos.

Run client

$ go run ./go-client/cmd/client.go
hello world