tree: 686841c2d8715d1be393cc874791d92765e1e9b1 [path history] [tgz]
  1. go-client/
  2. go-server/
  3. README.md
  4. README_zh.md
rpc/jsonrpc/README.md

JSON-RPC Example

Backend

Dubbo3 provides Triple(Dubbo3), Dubbo2 protocols, which are native to the Dubbo framework. In addition, Dubbo3 also integrates a number of third-party protocols into Dubbo's programming and service governance architecture, Including gRPC, Thrift, JSON-RPC, Hessian2, and REST. The following describes the JSON-RPC protocol example.

Start

  • Start the registry
  • Start go-server and go-client, practice with JSON-RPC
  • Start java-server and java-client, practice with JSON-RPC

Start the registry

Start the registry by docker-compose:

docker-compose -f go-server/docker/docker-compose.yml up -d

Stop the registry

docker-compose -f go-server/docker/docker-compose.yml dowm

Start Go Server and Client

Note: Goland users can directly use the boot mode configured by '.run ', refer to HOWTO.md

Start go-server:

Config the configuration file of Dubbogoserver/dubbogo.yml):

DUBBO_GO_CONFIG_PATH=${$PROJECT_DIR$}/dubbo-go-samples/rpc/jsonrpc/go-server/conf/dubbogo.yml

Start go-client:

Config the configuration file of Dubbogoclient/dubbogo.yml):

DUBBO_GO_CONFIG_PATH=${$PROJECT_DIR$}/dubbo-go-samples/rpc/jsonrpc/go-client/conf/dubbogo.yml

Start Java Server and Client

Start java-server:

run build.sh ,Maven environment required

bash build.sh

Start java-client:

run build.sh,Maven environment required

bash build.sh