jsonrpc/

directory
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2022 License: Apache-2.0

README

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

Directories

Path Synopsis
go-client
cmd command
pkg
go-server
cmd command
pkg
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL