tree: 87825fe96a60491667190f91650f85d38c625e7b [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.MD
dubbo-samples-triple/README.MD

Triple-Samples

For beginners

  1. Start a zookeeper or config other registry in org.apache.dubbo.sample.tri.ApiProvider and org.apache.dubbo.sample.tri.ApiConsumer
  2. Build with mvn clean install to generate protobuf classes.
  3. Run org.apache.dubbo.sample.tri.ApiProvider
  4. Run org.apache.dubbo.sample.tri.ApiConsumer

For dubbo2 or non-prototbuf users

Run org.apache.dubbo.sample.tri.ApiWrapperProvider and org.apache.dubbo.sample.tri.ApiWrapperConsumer.

Dubbo3 will wrap request and response with a protobuf wrapper automatically, so it is still compatible with GRPC.

For Dubbo developers

Code under test folder is a general interoperation test suite for both Dubbo/Dubbo and Dubbo/GRPC.

Dubbo/Dubbo test

  1. Run org.apache.dubbo.sample.tri.TestProvider
  2. Run org.apache.dubbo.sample.tri.PbTest , org.apache.dubbo.sample.tri.WrapConsumerTest and org.apache.dubbo.sample.tri.GenericTest

DUbbo/GRPC test

TBD