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.
Detailed explanation of this demo can be found here.
mvn clean compile #Compile and generate code
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"
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"