The triple protocol is 100% compatible with gRPC. This example demonstrates using dubbo-go to develop applications that interoperate with gRPC. You can view the complete example source code here.
The Triple protocol of Dubbo-go is compatible with the gRPC protocol. When creating the server, you can set protocol.WithTriple()
to use the Triple protocol.
Source file path: dubbo-go-sample/rpc/grpc/proto/greet.proto
Source file path: dubbo-go-sample/rpc/grpc/go-server/cmd/main.go
Source file path: dubbo-go-sample/rpc/grpc/grpc-server/cmd/main.go
Source file path: dubbo-go-sample/rpc/grpc/go-client/cmd/main.go
Source file path: dubbo-go-sample/rpc/grpc/grpc-client/cmd/main.go
Start the dubbo-go server and gRPC server first, then start the dubbo-go client and gRPC client, and observe the console output.
Dubbo-go client output:
gRPC client output: