You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by gu...@apache.org on 2021/10/28 03:41:27 UTC
[dubbo-samples] branch master updated: Udpate triple readme
This is an automated email from the ASF dual-hosted git repository.
guohao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git
The following commit(s) were added to refs/heads/master by this push:
new 7eac429 Udpate triple readme
new ab1c41e Merge pull request #385 from guohao/add-tri-readme
7eac429 is described below
commit 7eac42982e773f877f41c62504300feb6d4fb18e
Author: guohao <gu...@gmail.com>
AuthorDate: Thu Oct 28 10:54:12 2021 +0800
Udpate triple readme
---
dubbo-samples-triple/README.MD | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/dubbo-samples-triple/README.MD b/dubbo-samples-triple/README.MD
index 824c9f3..85fb7f3 100644
--- a/dubbo-samples-triple/README.MD
+++ b/dubbo-samples-triple/README.MD
@@ -1,5 +1,11 @@
## Triple-Samples
+[Triple](https://dubbo.apache.org/zh/docs/concepts/rpc-protocol/) is an application layer's protocol based on HTTP/2,
+which supports interoperating with GRPC protocol naturally using Protobuf serialization. For non-protobuf applications,
+triple provides a compatible mode to upgrade without code modifications. So it is smooth to migrate to triple.
+
+This sample project contains most scenarios of Dubbo and non-Dubbo interoperation.
+
### For beginners
1. Start a zookeeper or config other registry in `org.apache.dubbo.sample.tri.ApiProvider`
@@ -9,18 +15,22 @@
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.TriGrpcProvider`
-2. Run `org.apache.dubbo.sample.tri.TriPbConsumerTest` , `org.apache.dubbo.sample.tri.TriWrapConsumerTest` and `org.apache.dubbo.sample.tri.TriGenericTest`
+2. Run `org.apache.dubbo.sample.tri.TriPbConsumerTest` , `org.apache.dubbo.sample.tri.TriWrapConsumerTest`
+ and `org.apache.dubbo.sample.tri.TriGenericTest`
-#### DUbbo/GRPC test
+#### Dubbo/GRPC test
##### GRPC --> Dubbo
@@ -31,7 +41,3 @@ Code under `test` folder is a general interoperation test suite for both Dubbo/D
1. Run `org.apache.dubbo.sample.tri.grpc.GrpcProvider`
2. Run `org.apache.dubbo.sample.tri.TriPbConsumerTest`
-
-
-
-
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org