tree: a751ebe21c75093e54b57c45e19665d263e77a45 [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.md
2-advanced/dubbo-samples-triple-streaming/README.md

This example shows how you can use streaming RPC with Dubbo Triple protocol.

As described in the Triple protocol documentation, Dubbo triple protocol is fully compatible with gRPC, so it supports client streaming, server streaming and bi-streaming.

Run The Demo

Detailed explanation of this demo can be found here.

mvn clean compile #Compile and generate code

Start server

Make sure you are in dubbo-samples-triple-streaming directory and then run the following command:

$ mvn compile exec:java -Dexec.mainClass="org.apache.dubbo.samples.tri.streaming.TriStreamServer"

Start client

Open a new terminal, enter dubbo-samples-triple-streaming directory and then run the following command:

$ mvn compile exec:java -Dexec.mainClass="org.apache.dubbo.samples.tri.streaming.TriStreamClient"