As described in the Triple protocol documentation, Dubbo triple protocol is a better gRPC implementation which can be accessed by cURL and web browsers directly.
This part showcases how standard gRPC client written with gRPC-java consumes Triple protocol service written with Dubbo.
Make sure you are in dubbo-samples-triple-grpc
directory and then run the following command:
$ mvn compile exec:java -Dexec.mainClass="org.apache.dubbo.samples.tri.grpc.interop.server.TriOpServer"
Open a new terminal, enter dubbo-samples-triple-grpc
directory and then run the following command:
$ mvn compile exec:java -Dexec.mainClass="org.apache.dubbo.samples.tri.grpc.interop.server.GrpcClient"
This part showcases how Triple client written with Dubbo consumes gRPC service written with standard gRPC-java.
$ mvn compile exec:java -Dexec.mainClass="org.apache.dubbo.samples.tri.grpc.interop.client.GrpcServer"
$ mvn compile exec:java -Dexec.mainClass="org.apache.dubbo.samples.tri.grpc.interop.client.TriOpClient"