[dubbo-go.wiki] 26/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 18929d22726c8116cc7bab98bdcbc2d7fdd9d816 Author: fangyincheng AuthorDate: Wed Jun 5 14:54:36 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_Sidebar.md b/_Sidebar.md index 8f4aedc..11e7976 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -8,4 +8,6 @@ * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) * OpenSource - * [dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/%E4%BE%9D%E8%B5%96%E5%BA%93%E5%BC%80%E6%BA%90%E5%8D%8F%E8%AE%AE) \ No newline at end of file + * [dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/%E4%BE%9D%E8%B5%96%E5%BA%93%E5%BC%80%E6%BA%90%E5%8D%8F%E8%AE%AE) +* Documents + * [Guide-for-Use](https://github.com/dubbo/go-for-apache-dubbo/wiki/Guide-for-Use) \ No newline at end of file
[dubbo-go.wiki] branch master updated (068b269 -> 9c6f7dd)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git. from 068b269 Add:arch new 159224f Updated Roadmap (markdown) new 4358217 Updated pressure test report for jsonrpc (markdown) new f1c16c1 Updated dubbo go V2.6 design (markdown) new a0d453c Updated Roadmap (markdown) new 19523e5 Updated Roadmap (markdown) new 317f632 Updated Roadmap (markdown) new 0c89d53 Updated Roadmap (markdown) new 4df2941 Updated Roadmap (markdown) new 6c757cc Updated Roadmap (markdown) new 015db1a Updated Roadmap (markdown) new 01aa45f Updated pressure test report for dubbo (markdown) new b5fcbc7 Updated pressure test report for jsonrpc (markdown) new 208f3d6 Created Benchmark (markdown) new 2ac1105 Created _Sidebar (markdown) new c5b96e8 Destroyed Benchmark (markdown) new f8d64a5 Updated _Sidebar (markdown) new f84c5ee Updated _Sidebar (markdown) new 1787b71 Updated _Sidebar (markdown) new 5b0d925 Updated _Sidebar (markdown) new f128cc7 Updated _Sidebar (markdown) new a9d4127 Updated _Sidebar (markdown) new b56e0cb Updated _Sidebar (markdown) new e45c0fb Updated Home (markdown) new 2776f1c Updated Home (markdown) new 888bff0 Created Guide for Use (markdown) new 18929d2 Updated _Sidebar (markdown) new 57c132e Updated Guide for Use (markdown) new ac33098 Updated Guide for Use (markdown) new 64c089b Updated notice of committing codes (markdown) new 4487ce0 Updated Home (markdown) new 744d477 Updated Home (markdown) new f068523 Updated Home (markdown) new a80a39b Add:arch.png new 79dd44d Add:arch.png new 9c6f7dd Merge branch 'master' of https://github.com/dubbo/go-for-apache-dubbo.wiki The 35 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: ...port-for-dubbo.md => Benchmark-test-of-dubbo.md | 168 ++--- ...-for-jsonrpc.md => Benchmark-test-of-jsonrpc.md | 4 +- Guide-for-Use.md | 166 Home.md| 68 + Roadmap.md | 14 +- _Sidebar.md| 13 ++ arch.png | Bin 0 -> 48907 bytes dubbo-go-V2.6-design.md => dubbo-go-V1.0-design.md | 2 +- notice-of-committing-codes.md | 4 + 9 files changed, 377 insertions(+), 62 deletions(-) rename pressure-test-report-for-dubbo.md => Benchmark-test-of-dubbo.md (56%) rename pressure-test-report-for-jsonrpc.md => Benchmark-test-of-jsonrpc.md (98%) create mode 100644 Guide-for-Use.md create mode 100644 _Sidebar.md create mode 100644 arch.png rename dubbo-go-V2.6-design.md => dubbo-go-V1.0-design.md (95%)
[dubbo-go.wiki] 02/35: Updated pressure test report for jsonrpc (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 43582176759654eea64066747eb66833b18640b6 Author: fangyincheng AuthorDate: Wed May 29 16:44:19 2019 +0800 Updated pressure test report for jsonrpc (markdown) --- pressure-test-report-for-jsonrpc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pressure-test-report-for-jsonrpc.md b/pressure-test-report-for-jsonrpc.md index 3b48369..ca89901 100644 --- a/pressure-test-report-for-jsonrpc.md +++ b/pressure-test-report-for-jsonrpc.md @@ -11,9 +11,9 @@ ## log level -* consumer: warm +* consumer: warn -* provider: warm +* provider: warn ## 版本
[dubbo-go.wiki] 19/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 5b0d925fda15890b5906defdbb4a37d093f6b514 Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:23:07 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 4 1 file changed, 4 deletions(-) diff --git a/_Sidebar.md b/_Sidebar.md index b920dd7..b6ba687 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,15 +1,11 @@ * [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) * [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) - * Roadmap * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) - * Commit * [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) - * Benchmark Test * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) - * OpenSource * [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file
[dubbo-go.wiki] 26/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 18929d22726c8116cc7bab98bdcbc2d7fdd9d816 Author: fangyincheng AuthorDate: Wed Jun 5 14:54:36 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_Sidebar.md b/_Sidebar.md index 8f4aedc..11e7976 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -8,4 +8,6 @@ * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) * OpenSource - * [dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/%E4%BE%9D%E8%B5%96%E5%BA%93%E5%BC%80%E6%BA%90%E5%8D%8F%E8%AE%AE) \ No newline at end of file + * [dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/%E4%BE%9D%E8%B5%96%E5%BA%93%E5%BC%80%E6%BA%90%E5%8D%8F%E8%AE%AE) +* Documents + * [Guide-for-Use](https://github.com/dubbo/go-for-apache-dubbo/wiki/Guide-for-Use) \ No newline at end of file
[dubbo-go.wiki] 02/35: Updated pressure test report for jsonrpc (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 43582176759654eea64066747eb66833b18640b6 Author: fangyincheng AuthorDate: Wed May 29 16:44:19 2019 +0800 Updated pressure test report for jsonrpc (markdown) --- pressure-test-report-for-jsonrpc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pressure-test-report-for-jsonrpc.md b/pressure-test-report-for-jsonrpc.md index 3b48369..ca89901 100644 --- a/pressure-test-report-for-jsonrpc.md +++ b/pressure-test-report-for-jsonrpc.md @@ -11,9 +11,9 @@ ## log level -* consumer: warm +* consumer: warn -* provider: warm +* provider: warn ## 版本
[dubbo-go.wiki] 10/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 015db1a58fc73a572518406fe3aaad784d1ae1a0 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:38:58 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Roadmap.md b/Roadmap.md index 2199020..6bdb206 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -7,7 +7,7 @@ _**We are working on this now.**_ task|owner|status -|-|- -v2.6.5.0 release main mission|hxm|done +v1.0.0 release main mission|hxm|done k8s registry|zhb|doing log4go improvement, hessian2 method/struct tag|zzq|done getty:refactor designing to support epoll machanisim|wg|doing @@ -15,7 +15,7 @@ hessian2 improvement|cch|done cluster strategy: Failfast/Failsafe/Failback|匠尘|doing loadbalance: RoundRobin/LeastActive/ConsistentHash|诣极|doing filter : TokenFilter/AccessLogFilter/GenericFilter|舒铭| -p2p without registry|hxm|doing +p2p without registry|hxm|done getty network i/o performance optimization & dubbogo business gr pool|fyc|doing tps limit|zzq| routing rule||
[dubbo-go.wiki] 02/35: Updated pressure test report for jsonrpc (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 43582176759654eea64066747eb66833b18640b6 Author: fangyincheng AuthorDate: Wed May 29 16:44:19 2019 +0800 Updated pressure test report for jsonrpc (markdown) --- pressure-test-report-for-jsonrpc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pressure-test-report-for-jsonrpc.md b/pressure-test-report-for-jsonrpc.md index 3b48369..ca89901 100644 --- a/pressure-test-report-for-jsonrpc.md +++ b/pressure-test-report-for-jsonrpc.md @@ -11,9 +11,9 @@ ## log level -* consumer: warm +* consumer: warn -* provider: warm +* provider: warn ## 版本
[dubbo-go.wiki] 01/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 159224faf5f49235f49383e6c679459cbce52ed0 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 16:43:02 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Roadmap.md b/Roadmap.md index 6b41cc8..525a50a 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -16,13 +16,12 @@ p2p without registry|hxm|doing getty network i/o performance optimization & dubbogo business gr pool|fyc|doing tps limit|zzq| routing rule|| -monitor(prometheus)|gxg| +monitor metrics(prometheus)|gxg| 3. compatible with [dubbo v2.7.x](https://github.com/apache/incubator-dubbo/tree/2.7.1-release) _**Waiting for start.**_ - * metrics (waiting dubbo support) * dynamic configuration (dubbo v2.7.x) task|owner|status
[dubbo-go.wiki] 01/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 159224faf5f49235f49383e6c679459cbce52ed0 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 16:43:02 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Roadmap.md b/Roadmap.md index 6b41cc8..525a50a 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -16,13 +16,12 @@ p2p without registry|hxm|doing getty network i/o performance optimization & dubbogo business gr pool|fyc|doing tps limit|zzq| routing rule|| -monitor(prometheus)|gxg| +monitor metrics(prometheus)|gxg| 3. compatible with [dubbo v2.7.x](https://github.com/apache/incubator-dubbo/tree/2.7.1-release) _**Waiting for start.**_ - * metrics (waiting dubbo support) * dynamic configuration (dubbo v2.7.x) task|owner|status
[dubbo-go.wiki] 12/35: Updated pressure test report for jsonrpc (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit b5fcbc7045d6f72faa98830fa04c3cb5e0ca3abc Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:10:35 2019 +0800 Updated pressure test report for jsonrpc (markdown) --- pressure-test-report-for-jsonrpc.md => Benchmark-test-of-jsonrpc.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/pressure-test-report-for-jsonrpc.md b/Benchmark-test-of-jsonrpc.md similarity index 100% rename from pressure-test-report-for-jsonrpc.md rename to Benchmark-test-of-jsonrpc.md
[dubbo-go.wiki] 34/35: Add:arch.png
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 79dd44db7bca8bc88929d83af1b8fdf7ffa71797 Author: vito.he AuthorDate: Thu Dec 19 00:37:59 2019 +0800 Add:arch.png --- arch.png | Bin 1059391 -> 48907 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/arch.png b/arch.png index 083b0f2..3893955 100644 Binary files a/arch.png and b/arch.png differ
[dubbo-go.wiki] 17/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit f84c5ee20f2e3d391141d6b3c1539d9864ed7d59 Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:20:54 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_Sidebar.md b/_Sidebar.md index 6b8abb3..84b41fc 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,5 +1,6 @@ -* [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) -* [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) +[Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) + +[Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) ### Roadmap * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST)
[dubbo-go.wiki] 27/35: Updated Guide for Use (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 57c132e95c638cada91aca101918b7977bf0a985 Author: fangyincheng AuthorDate: Wed Jun 5 17:55:50 2019 +0800 Updated Guide for Use (markdown) --- Guide-for-Use.md | 8 1 file changed, 8 insertions(+) diff --git a/Guide-for-Use.md b/Guide-for-Use.md index 3eb376c..16b0d0e 100644 --- a/Guide-for-Use.md +++ b/Guide-for-Use.md @@ -123,6 +123,14 @@ func (User) JavaClassName string { hessian.RegisterPOJO({}) ``` +* `hessian:""` as tag of field unite field name of java and go, eg: + +```go +type User struct { + A int `hessian:"b"` // name of A is b in the java, default a +} +``` + ### function * support these argslist in the `dubbo protocol`
[dubbo-go.wiki] 26/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 18929d22726c8116cc7bab98bdcbc2d7fdd9d816 Author: fangyincheng AuthorDate: Wed Jun 5 14:54:36 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_Sidebar.md b/_Sidebar.md index 8f4aedc..11e7976 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -8,4 +8,6 @@ * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) * OpenSource - * [dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/%E4%BE%9D%E8%B5%96%E5%BA%93%E5%BC%80%E6%BA%90%E5%8D%8F%E8%AE%AE) \ No newline at end of file + * [dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/%E4%BE%9D%E8%B5%96%E5%BA%93%E5%BC%80%E6%BA%90%E5%8D%8F%E8%AE%AE) +* Documents + * [Guide-for-Use](https://github.com/dubbo/go-for-apache-dubbo/wiki/Guide-for-Use) \ No newline at end of file
[dubbo-go.wiki] 25/35: Created Guide for Use (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 888bff0455a9ec3800f9e9df59f937d58c31ceb9 Author: fangyincheng AuthorDate: Wed Jun 5 14:52:54 2019 +0800 Created Guide for Use (markdown) --- Guide-for-Use.md | 158 +++ 1 file changed, 158 insertions(+) diff --git a/Guide-for-Use.md b/Guide-for-Use.md new file mode 100644 index 000..3eb376c --- /dev/null +++ b/Guide-for-Use.md @@ -0,0 +1,158 @@ +# Guide for Use + +## How to start quick? + +--- + +### STEP 1: Define struct and provider + +> go-for-apache-dubbo/examples/dubbo/go-client/app/user.go +> go-for-apache-dubbo/examples/dubbo/go-server/app/user.go + +```go +// all structs must implements hessian.POJO +type User struct {} +func (User) JavaClassName string { +return "com.Xxx.User" // same to the java class name +} + +// for server +func init() { + config.SetProviderService(new(UserProvider)) +} +UserProvider struct {} +// args list reference "What to pay attention to?/function" +func (u *UserProvider) YourMethod(ctx context.Context, req []interface{}, rsp *User) error { +// do your any things +} + +// for client +func init() { + config.SetConsumerService(new(UserProvider)) +} +type UserProvider struct { +YourMethod func(ctx context.Context, req []interface{}, rsp *User) error +} +``` + +### STEP 2: Code client.go + +> go-for-apache-dubbo/examples/dubbo/go-client/app/client.go + +```go +// must import package you will use +// reference "What to pay attention to?/package" + +// register pojo +hessian.RegisterPOJO({}) +// Load +conMap, _ := config.Load() +// call +conMap["com.Xxx.User"].GetRPCService().YourMethod(...) +``` + +### STEP 3: Code server.go + +> go-for-apache-dubbo/examples/dubbo/go-server/app/server.go + +```go +// must import package you will use +// reference "What to pay attention to?/package" + +// register pojo +hessian.RegisterPOJO({}) +// Load +_, proMap := config.Load() +``` + +### STEP 4: Make client.yml and server.yml + +> go-for-apache-dubbo/config/testdata/consumer_config.yml + +> go-for-apache-dubbo/config/testdata/provider_config.yml + +## What to pay attention to? + +--- + +### hessian2 + +* all structs must implements hessian.POJO +* JavaEnum type should be: +```go +const ( + MAN hessian.JavaEnum = iota + WOMAN +) +var genderName = map[hessian.JavaEnum]string{ + MAN: "MAN", + WOMAN: "WOMAN", +} + +var genderValue = map[string]hessian.JavaEnum{ + "MAN": MAN, + "WOMAN": WOMAN, +} +type Gender hessian.JavaEnum +func (g Gender) JavaClassName() string { + return "com.Xxx.Gender" +} +func (g Gender) String() string { + return genderName[hessian.JavaEnum(g)] +} + +func (g Gender) EnumValue(s string) hessian.JavaEnum { +return genderValue[s] +} +``` + +```go +hessian.RegisterJavaEnum(Gender(MAN)) +hessian.RegisterJavaEnum(Gender(WOMAN)) +``` + +* JavaClass type should be: +```go +type User struct {} +func (User) JavaClassName string { +return "com.Xxx.User" // same to the java class name +} +``` + +```go +hessian.RegisterPOJO({}) +``` + +### function + +* support these argslist in the `dubbo protocol` + +```go +Method_1(ctx context.Context, req []interface{}, rsp *User) error +Method_2(id string, name string) (User, error) +Method_3(ctx context.Context, req []interface{}, rsp *[]interface{}) error +Method_4(ctx context.Context, req []interface{}) ([]interface{}, error) +Method_5(ctx context.Context, req []interface{}) (map[interface{}]interface{}, error) +``` + +### package + +* must import +```go +_ "github.com/dubbo/go-for-apache-dubbo/common/proxy/proxy_factory" +_ "github.com/dubbo/go-for-apache-dubbo/registry/protocol" +_ "github.com/dubbo/go-for-apache-dubbo/filter/impl" +_ "github.com/dubbo/go-for-apache-dubbo/cluster/cluster_impl" +_ "github.com/dubbo/go-for-apache-dubbo/cluster/loadbalance" +``` + +* other +```go +_ "github.com/dubbo/go-for-apache-dubbo/protocol/dubbo" // when using dubbo protocol +_ "github.com/dubbo/go-for-apache-dubbo/protocol/jsonrpc" // when using dubbo protocol +_ "github.com/dubbo/go-for-apache-dubbo/registry/zookeeper" // when using zookeeper registry +``` + +### config + +* when you want to get local ip, you can delete `ip` field. \ No newline at end of file
[dubbo-go.wiki] 35/35: Merge branch 'master' of https://github.com/dubbo/go-for-apache-dubbo.wiki
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 9c6f7dda42b545b05ada9a8430154c59bf3c2f84 Merge: 068b269 79dd44d Author: vito.he AuthorDate: Sat Feb 29 14:15:27 2020 +0800 Merge branch 'master' of https://github.com/dubbo/go-for-apache-dubbo.wiki ...port-for-dubbo.md => Benchmark-test-of-dubbo.md | 168 ++--- ...-for-jsonrpc.md => Benchmark-test-of-jsonrpc.md | 4 +- Guide-for-Use.md | 166 Home.md| 68 + Roadmap.md | 14 +- _Sidebar.md| 13 ++ arch.png | Bin 0 -> 48907 bytes dubbo-go-V2.6-design.md => dubbo-go-V1.0-design.md | 2 +- notice-of-committing-codes.md | 4 + 9 files changed, 377 insertions(+), 62 deletions(-)
[dubbo-go.wiki] 16/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit f8d64a57b30d04231540e8141c9d94bb68eac7cd Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:20:26 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/_Sidebar.md b/_Sidebar.md index 74ab2cc..6b8abb3 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,3 +1,15 @@ -## Benchmark +* [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) +* [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) + +### Roadmap +* [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) + +### Commit +* [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) + +### Benchmark Test * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) -* [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) \ No newline at end of file +* [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) + +### OpenSource +* [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file
[dubbo-go.wiki] branch master updated (068b269 -> 9c6f7dd)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git. from 068b269 Add:arch new 159224f Updated Roadmap (markdown) new 4358217 Updated pressure test report for jsonrpc (markdown) new f1c16c1 Updated dubbo go V2.6 design (markdown) new a0d453c Updated Roadmap (markdown) new 19523e5 Updated Roadmap (markdown) new 317f632 Updated Roadmap (markdown) new 0c89d53 Updated Roadmap (markdown) new 4df2941 Updated Roadmap (markdown) new 6c757cc Updated Roadmap (markdown) new 015db1a Updated Roadmap (markdown) new 01aa45f Updated pressure test report for dubbo (markdown) new b5fcbc7 Updated pressure test report for jsonrpc (markdown) new 208f3d6 Created Benchmark (markdown) new 2ac1105 Created _Sidebar (markdown) new c5b96e8 Destroyed Benchmark (markdown) new f8d64a5 Updated _Sidebar (markdown) new f84c5ee Updated _Sidebar (markdown) new 1787b71 Updated _Sidebar (markdown) new 5b0d925 Updated _Sidebar (markdown) new f128cc7 Updated _Sidebar (markdown) new a9d4127 Updated _Sidebar (markdown) new b56e0cb Updated _Sidebar (markdown) new e45c0fb Updated Home (markdown) new 2776f1c Updated Home (markdown) new 888bff0 Created Guide for Use (markdown) new 18929d2 Updated _Sidebar (markdown) new 57c132e Updated Guide for Use (markdown) new ac33098 Updated Guide for Use (markdown) new 64c089b Updated notice of committing codes (markdown) new 4487ce0 Updated Home (markdown) new 744d477 Updated Home (markdown) new f068523 Updated Home (markdown) new a80a39b Add:arch.png new 79dd44d Add:arch.png new 9c6f7dd Merge branch 'master' of https://github.com/dubbo/go-for-apache-dubbo.wiki The 35 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: ...port-for-dubbo.md => Benchmark-test-of-dubbo.md | 168 ++--- ...-for-jsonrpc.md => Benchmark-test-of-jsonrpc.md | 4 +- Guide-for-Use.md | 166 Home.md| 68 + Roadmap.md | 14 +- _Sidebar.md| 13 ++ arch.png | Bin 0 -> 48907 bytes dubbo-go-V2.6-design.md => dubbo-go-V1.0-design.md | 2 +- notice-of-committing-codes.md | 4 + 9 files changed, 377 insertions(+), 62 deletions(-) rename pressure-test-report-for-dubbo.md => Benchmark-test-of-dubbo.md (56%) rename pressure-test-report-for-jsonrpc.md => Benchmark-test-of-jsonrpc.md (98%) create mode 100644 Guide-for-Use.md create mode 100644 _Sidebar.md create mode 100644 arch.png rename dubbo-go-V2.6-design.md => dubbo-go-V1.0-design.md (95%)
[dubbo-go.wiki] 21/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit a9d4127c165431ab0138d707e1b68798553cc98a Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:25:07 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_Sidebar.md b/_Sidebar.md index 1b7ea1c..2318a67 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,6 +1,6 @@ * [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) * [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) -* Roadmap(https://github.com/dubbo/go-for-apache-dubbo/wiki/Roadmap) +* [Roadmap](https://github.com/dubbo/go-for-apache-dubbo/wiki/Roadmap) * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) * Commit * [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes)
[dubbo-go.wiki] 06/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 317f6326830ca50308a226a1085f8c9eb83740e8 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:33:15 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roadmap.md b/Roadmap.md index c45cf33..dd083f4 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -18,7 +18,7 @@ tps limit|zzq| routing rule|| monitor metrics(prometheus)|gxg| - 3. compatible with [dubbo v2.7.x](https://github.com/apache/incubator-dubbo/tree/2.7.1-release) + 3. release version v1.1.x compatible with [dubbo v2.7.x](https://github.com/apache/incubator-dubbo/tree/2.7.1-release) _**Waiting for start.**_
[dubbo-go.wiki] 03/35: Updated dubbo go V2.6 design (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit f1c16c1b35d3855ca2a49ffbecc8e3367bc2d694 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:31:42 2019 +0800 Updated dubbo go V2.6 design (markdown) --- dubbo-go-V2.6-design.md => dubbo-go-V1.0-design.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dubbo-go-V2.6-design.md b/dubbo-go-V1.0-design.md similarity index 95% rename from dubbo-go-V2.6-design.md rename to dubbo-go-V1.0-design.md index 3d334ea..bf88b89 100644 --- a/dubbo-go-V2.6-design.md +++ b/dubbo-go-V1.0-design.md @@ -1,6 +1,6 @@ # 设计思路: -借鉴 dubbo 分层设计,v2.6 版本需要实现 dubbo 的主要功能以及实现 dubbo 可扩展点的易扩展性,与dubbo v2.6.x版本对应。尽量较少非必须的功能,以及现阶段难以拆分并对使用无感知(可以后续版本再来拆分而对使用者无感知)的分层。 +借鉴 dubbo 分层设计,v1.0.x 版本需要实现 dubbo 的主要功能以及实现 dubbo 可扩展点的易扩展性,与dubbo v2.6.x版本对应。尽量较少非必须的功能,以及现阶段难以拆分并对使用无感知(可以后续版本再来拆分而对使用者无感知)的分层。 ***
[dubbo-go.wiki] 11/35: Updated pressure test report for dubbo (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 01aa45fbd835aa244ab4a83eadfb978257aee4bf Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:10:00 2019 +0800 Updated pressure test report for dubbo (markdown) --- ...port-for-dubbo.md => Benchmark-test-of-dubbo.md | 168 ++--- 1 file changed, 115 insertions(+), 53 deletions(-) diff --git a/pressure-test-report-for-dubbo.md b/Benchmark-test-of-dubbo.md similarity index 56% rename from pressure-test-report-for-dubbo.md rename to Benchmark-test-of-dubbo.md index 6e110d5..43c58b4 100644 --- a/pressure-test-report-for-dubbo.md +++ b/Benchmark-test-of-dubbo.md @@ -1,25 +1,135 @@ -# 测试结果 +# Macbook Pro 15 inch 2018 +## Environment +* OS: Darwin 18.2.0 Darwin Kernel Version 18.2.0 +* GOLANG: go1.12.4 darwin/amd64 +* RAM: 32G +* CPU: Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz +* CPU cores: 6 * 2 +* server、client running on same host -## 环境 +## Version +> v1.0.0 + +## Benchmark test result + +* request pkg size: 600 +* response pkg size: 574 + +|concurrency|total |succ |mean/ms|median|max/ms|min/ms|p99/ms|tps | +|---|---|--|---|--|--|--|--|-| +|10 |100|100 |1 |0 |7 |0 |6 |7494 | +|10 |1000 |1000 |0 |0 |9 |0 |8 |14128| +|10 |1w |1w|0 |0 |6 |0 |4 |17228| +|10 |10w|10w |0 |0 |25|0 |6 |18999| +|10 |100w |100w |0 |0 |72|0 |2 |18476| +|100|1000 |1000 |9 |6 |49|0 |48|8752 | +|100|1w |1w|4 |4 |50|0 |49|19862| +|100|10w|10w |4 |4 |49|0 |35|22777| +|100|100w |100w |4 |4 |207 |0 |26|21142| + +* request pkg size: 1024 +* response pkg size: 996 + +|concurrency|total |succ |mean/ms|median|max/ms|min/ms|p99/ms|tps | +|---|---|--|---|--|--|--|--|-| +|10 |100|100 |1 |0 |4 |0 |4 |8153 | +|10 |1000 |1000 |0 |0 |7 |0 |7 |13005| +|10 |1w |1w|0 |0 |3 |0 |3 |16064| +|10 |10w|10w |0 |0 |11|0 |2 |16256| +|10 |100w |100w |0 |0 |770 |0 |2 |15798| +|100|1000 |1000 |24 |23|67|0 |66|3737| +|100|1w |1w|5 |4 |51|0 |50|17759| +|100|10w|10w |4 |4 |58|0 |34|21315| +|100|100w |100w |5 |5 |418 |0 |26|18594| + +* request pkg size: 4096 +* response pkg size: 4040 + +|concurrency|total |succ |mean/ms|median|max/ms|min/ms|p99/ms|tps | +|---|---|--|---|--|--|--|--|-| +|10 |100|100 |1 |1 |7 |0 |7 |5150 | +|10 |1000 |1000 |1 |1 |9 |0 |8 |8276 | +|10 |1w |1w|1 |0 |0 |0 |5 |9730 | +|10 |10w|10w |1 |0 |39|0 |3 |9528 | +|10 |100w |100w |1 |1 |75|0 |3 |8772 | +|100|1000 |1000 |12 |8 |50|1 |50|6743 | +|100|1w |1w|8 |7 |57|0 |47|11657| +|100|10w|10w |8 |7 |115 |0 |94|11648| +|100|100w |100w |9 |8 |128 |0 |47|10160| + + + +# General Server + +## Environment * OS: CentOS Linux release 7.4.1708 (Core) * GOLANG: 1.12.5 linux/amd64 * RAM: 24G * CPU: Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz * cpu cores: 4 * 8 -* zk、server、client在同个机器上 +* zk、server、client running on same host -## 版本 +## Version > commit c73bad2eba5f98198148a70d75681ad88ca0775f + +## Benchmark test result + +* request pkg size: 600 +* response pkg size: 574 + +|concurrency|total |succ |mean/ms|median|max/ms|min/ms|p99/ms|tps | +|---|---|--|---|--|--|--|--|-| +|10 |100|100 |1 |0 |4 |0 |4 |8166 | +|10 |1000 |1000 |0 |0 |6 |0 |5 |11466| +|10 |1w |1w|0 |0 |5 |0 |3 |12846| +|10 |10w|10w |0 |0 |23|0 |6 |12915| +|10 |100w |100w |0 |0 |178 |0 |11|12753| +|100|1000 |1000 |9 |6 |48|0 |43|8669 | +|100|1w |1w|6 |6 |49|0 |37|13918| +|100|10w|10w |7 |6 |133 |0 |70|13723| +|100|100w |100w |6 |6 |328 |0 |59|14478| + +* request pkg size: 1024 +* response pkg size: 996 + +|concurrency|total |succ
[dubbo-go.wiki] 27/35: Updated Guide for Use (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 57c132e95c638cada91aca101918b7977bf0a985 Author: fangyincheng AuthorDate: Wed Jun 5 17:55:50 2019 +0800 Updated Guide for Use (markdown) --- Guide-for-Use.md | 8 1 file changed, 8 insertions(+) diff --git a/Guide-for-Use.md b/Guide-for-Use.md index 3eb376c..16b0d0e 100644 --- a/Guide-for-Use.md +++ b/Guide-for-Use.md @@ -123,6 +123,14 @@ func (User) JavaClassName string { hessian.RegisterPOJO({}) ``` +* `hessian:""` as tag of field unite field name of java and go, eg: + +```go +type User struct { + A int `hessian:"b"` // name of A is b in the java, default a +} +``` + ### function * support these argslist in the `dubbo protocol`
[dubbo-go.wiki] 01/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 159224faf5f49235f49383e6c679459cbce52ed0 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 16:43:02 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Roadmap.md b/Roadmap.md index 6b41cc8..525a50a 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -16,13 +16,12 @@ p2p without registry|hxm|doing getty network i/o performance optimization & dubbogo business gr pool|fyc|doing tps limit|zzq| routing rule|| -monitor(prometheus)|gxg| +monitor metrics(prometheus)|gxg| 3. compatible with [dubbo v2.7.x](https://github.com/apache/incubator-dubbo/tree/2.7.1-release) _**Waiting for start.**_ - * metrics (waiting dubbo support) * dynamic configuration (dubbo v2.7.x) task|owner|status
[dubbo-go.wiki] 21/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit a9d4127c165431ab0138d707e1b68798553cc98a Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:25:07 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_Sidebar.md b/_Sidebar.md index 1b7ea1c..2318a67 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,6 +1,6 @@ * [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) * [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) -* Roadmap(https://github.com/dubbo/go-for-apache-dubbo/wiki/Roadmap) +* [Roadmap](https://github.com/dubbo/go-for-apache-dubbo/wiki/Roadmap) * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) * Commit * [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes)
[dubbo-go.wiki] 10/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 015db1a58fc73a572518406fe3aaad784d1ae1a0 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:38:58 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Roadmap.md b/Roadmap.md index 2199020..6bdb206 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -7,7 +7,7 @@ _**We are working on this now.**_ task|owner|status -|-|- -v2.6.5.0 release main mission|hxm|done +v1.0.0 release main mission|hxm|done k8s registry|zhb|doing log4go improvement, hessian2 method/struct tag|zzq|done getty:refactor designing to support epoll machanisim|wg|doing @@ -15,7 +15,7 @@ hessian2 improvement|cch|done cluster strategy: Failfast/Failsafe/Failback|匠尘|doing loadbalance: RoundRobin/LeastActive/ConsistentHash|诣极|doing filter : TokenFilter/AccessLogFilter/GenericFilter|舒铭| -p2p without registry|hxm|doing +p2p without registry|hxm|done getty network i/o performance optimization & dubbogo business gr pool|fyc|doing tps limit|zzq| routing rule||
[dubbo-go.wiki] 18/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 1787b715b36b0679579784da79fda70aaaf84a0f Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:22:01 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/_Sidebar.md b/_Sidebar.md index 84b41fc..b920dd7 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,16 +1,15 @@ -[Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) +* [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) +* [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) -[Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) +* Roadmap + * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) -### Roadmap -* [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) +* Commit + * [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) -### Commit -* [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) +* Benchmark Test + * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) + * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) -### Benchmark Test -* [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) -* [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) - -### OpenSource -* [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file +* OpenSource + * [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file
[dubbo-go.wiki] 19/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 5b0d925fda15890b5906defdbb4a37d093f6b514 Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:23:07 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 4 1 file changed, 4 deletions(-) diff --git a/_Sidebar.md b/_Sidebar.md index b920dd7..b6ba687 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,15 +1,11 @@ * [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) * [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) - * Roadmap * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) - * Commit * [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) - * Benchmark Test * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) - * OpenSource * [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file
[dubbo-go.wiki] 34/35: Add:arch.png
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 79dd44db7bca8bc88929d83af1b8fdf7ffa71797 Author: vito.he AuthorDate: Thu Dec 19 00:37:59 2019 +0800 Add:arch.png --- arch.png | Bin 1059391 -> 48907 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/arch.png b/arch.png index 083b0f2..3893955 100644 Binary files a/arch.png and b/arch.png differ
[dubbo-go.wiki] 17/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit f84c5ee20f2e3d391141d6b3c1539d9864ed7d59 Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:20:54 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_Sidebar.md b/_Sidebar.md index 6b8abb3..84b41fc 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,5 +1,6 @@ -* [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) -* [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) +[Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) + +[Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) ### Roadmap * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST)
[dubbo-go.wiki] 30/35: Updated Home (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 4487ce08579e3e7ecd1b81930dba5962bb23ea91 Author: Xin.Zh AuthorDate: Fri Aug 9 21:26:25 2019 +0800 Updated Home (markdown) --- Home.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Home.md b/Home.md index 337533e..d1f24e3 100644 --- a/Home.md +++ b/Home.md @@ -1,4 +1,4 @@ -# Go for Apache Dubbo [中文](./README_CN.md) # +# Apache Dubbo-Go [中文](./README_CN.md) # [![Build Status](https://travis-ci.com/dubbo/go-for-apache-dubbo.svg?branch=master)](https://travis-ci.com/dubbo/go-for-apache-dubbo) [![codecov](https://codecov.io/gh/dubbo/go-for-apache-dubbo/branch/master/graph/badge.svg)](https://codecov.io/gh/dubbo/go-for-apache-dubbo)
[dubbo-go.wiki] 30/35: Updated Home (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 4487ce08579e3e7ecd1b81930dba5962bb23ea91 Author: Xin.Zh AuthorDate: Fri Aug 9 21:26:25 2019 +0800 Updated Home (markdown) --- Home.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Home.md b/Home.md index 337533e..d1f24e3 100644 --- a/Home.md +++ b/Home.md @@ -1,4 +1,4 @@ -# Go for Apache Dubbo [中文](./README_CN.md) # +# Apache Dubbo-Go [中文](./README_CN.md) # [![Build Status](https://travis-ci.com/dubbo/go-for-apache-dubbo.svg?branch=master)](https://travis-ci.com/dubbo/go-for-apache-dubbo) [![codecov](https://codecov.io/gh/dubbo/go-for-apache-dubbo/branch/master/graph/badge.svg)](https://codecov.io/gh/dubbo/go-for-apache-dubbo)
[dubbo-go.wiki] 23/35: Updated Home (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit e45c0fb82db0d0a1f4ade8053803cec411fbcce7 Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:28:48 2019 +0800 Updated Home (markdown) --- Home.md | 64 1 file changed, 64 insertions(+) diff --git a/Home.md b/Home.md index 9d28ae3..6f2c4e2 100644 --- a/Home.md +++ b/Home.md @@ -1,4 +1,68 @@ +# Go for Apache Dubbo [中文](./README_CN.md) # +[![Build Status](https://travis-ci.com/dubbo/go-for-apache-dubbo.svg?branch=master)](https://travis-ci.com/dubbo/go-for-apache-dubbo) +[![codecov](https://codecov.io/gh/dubbo/go-for-apache-dubbo/branch/master/graph/badge.svg)](https://codecov.io/gh/dubbo/go-for-apache-dubbo) + +--- +Apache Dubbo Go Implementation. + +## License + +Apache License, Version 2.0 + +## Release note ## + +[v1.0.0 - May 29, 2019 compatible with dubbo v2.6.5](https://github.com/dubbo/go-for-apache-dubbo/releases/tag/v1.0.0) + +## Code design ## + +Extension module and layered code design based on dubbo (include protocol layer,registry layer,cluster layer,config layer and so on), Our goal is: you can implement these layered interfaces in a new way, and override the default implementation of dubbo-go[same go-for-apache-dubbo] by calling 'extension.SetXXX' of extension, and complete your special needs without modifying the source code. At the same time, you are welcome to contribute implementation of useful expansion to the community. + +![frame design](https://raw.githubusercontent.com/wiki/dubbo/dubbo-go/dubbo-go%E4%BB%A3%E7%A0%81%E5%88%86%E5%B1%82%E8%AE%BE%E8%AE%A1.png) + +About detail design please refer to [code layered design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) + +## Feature list ## + +Finished List: + +- Role: Consumer(√), Provider(√) +- Transport: HTTP(√), TCP(√) +- Codec: JsonRPC v2(√), Hessian v2(√) +- Registry: ZooKeeper(√) +- Cluster Strategy: Failover(√) +- Load Balance: Random(√) +- Filter: Echo Health Check(√) + +Working List: + +- Cluster Strategy: Failfast/Failsafe/Failback/Forking +- Load Balance: RoundRobin/LeastActive/ConsistentHash +- Filter: TokenFilter/AccessLogFilter/CountFilter/ActiveLimitFilter/ExecuteLimitFilter/GenericFilter/TpsLimitFilter +- Registry: etcd/k8s/consul + +Todo List: + +- routing rule (dubbo v2.6.x) +- monitoring (dubbo v2.6.x) +- dynamic configuration (dubbo v2.7.x) +- metrics (dubbo v2.7.x) waiting dubbo's quota + +You can know more about dubbo-go by its [roadmap](https://github.com/dubbo/go-for-apache-dubbo/wiki/Roadmap). + +## Quick Start + +The subdirectory examples shows how to use dubbo-go. Please read the [examples/README.md](https://github.com/dubbo/go-for-apache-dubbo/blob/develop/examples/README.md) carefully to learn how to dispose the configuration and compile the program. + +## Benchmark + +Benchmark project please refer to [go-for-apache-dubbo-benchmark](https://github.com/dubbogo/go-for-apache-dubbo-benchmark) + +About dubbo-go benchmarking report, please refer to [dubbo benchmarking report](https://github.com/dubbo/go-for-apache-dubbo/wiki/pressure-test-report-for-dubbo) & [jsonrpc benchmarking report](https://github.com/dubbo/go-for-apache-dubbo/wiki/pressure-test-report-for-jsonrpc) + +## [User List](https://github.com/dubbo/go-for-apache-dubbo/issues/2) + +![ctrip](https://pic.c-ctrip.com/common/c_logo2013.png) ## Dev Plan --- - [Roadmap](https://github.com/dubbo/dubbo-go/wiki/Roadmap)
[dubbo-go.wiki] 24/35: Updated Home (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 2776f1cec74f80781a5d670400d7c731f25dcf3a Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:30:13 2019 +0800 Updated Home (markdown) --- Home.md | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Home.md b/Home.md index 6f2c4e2..337533e 100644 --- a/Home.md +++ b/Home.md @@ -58,7 +58,10 @@ The subdirectory examples shows how to use dubbo-go. Please read the [examples/R Benchmark project please refer to [go-for-apache-dubbo-benchmark](https://github.com/dubbogo/go-for-apache-dubbo-benchmark) -About dubbo-go benchmarking report, please refer to [dubbo benchmarking report](https://github.com/dubbo/go-for-apache-dubbo/wiki/pressure-test-report-for-dubbo) & [jsonrpc benchmarking report](https://github.com/dubbo/go-for-apache-dubbo/wiki/pressure-test-report-for-jsonrpc) +About dubbo-go benchmarking report, please refer to: + + * [Benchmark test of dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) + * [Benchmark test of jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) ## [User List](https://github.com/dubbo/go-for-apache-dubbo/issues/2)
[dubbo-go.wiki] 32/35: Updated Home (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit f068523a9cb4fae358aa8923879012bdbb926218 Author: Xin.Zh AuthorDate: Wed Dec 18 00:38:55 2019 +0800 Updated Home (markdown) --- Home.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Home.md b/Home.md index 09d9992..4eb98d2 100644 --- a/Home.md +++ b/Home.md @@ -66,6 +66,7 @@ About dubbo-go benchmarking report, please refer to: ## [User List](https://github.com/dubbo/go-for-apache-dubbo/issues/2) ![ctrip](https://pic.c-ctrip.com/common/c_logo2013.png) + ## Dev Plan --- - [Roadmap](https://github.com/dubbo/dubbo-go/wiki/Roadmap)
[dubbo-go.wiki] 07/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 0c89d53418aeb8a20f80b615ec27a78ff67b6aa1 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:37:28 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roadmap.md b/Roadmap.md index dd083f4..4e84f7f 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -1,5 +1,5 @@ 1. compatible with [dubbo v2.5.x](https://github.com/apache/incubator-dubbo/tree/2.5.x) based on [hessian2](https://github.com/dubbogo/hessian2) and [getty](https://github.com/alexstocks/getty); -### 2. release version v1.0.x based on the design in [dubbo-go-V1.0 design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design); _**We are working on this now.**_ +### 2. release version v1.0.x based on the design in [dubbo-go-V1.0 design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design),need to compatible with dubbo v2.6.x _**We are working on this now.**_ > Task list: task|owner|status
[dubbo-go.wiki] 04/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit a0d453c7ee07436410c4eb267c1cf5d81d0fee05 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:32:08 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roadmap.md b/Roadmap.md index 525a50a..cabe2c3 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -1,5 +1,5 @@ 1. compatible with [dubbo v2.5.x](https://github.com/apache/incubator-dubbo/tree/2.5.x) based on [hessian2](https://github.com/dubbogo/hessian2) and [getty](https://github.com/alexstocks/getty); -### 2. release version v2.6.5.x based on the design in [dubbo-go-V2.6.x design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V2.6-design); _**We are working on this now.**_ +### 2. release version v1.0.x based on the design in [dubbo-go-V2.6.x design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V2.6-design); _**We are working on this now.**_ > Task list: task|owner|status
[dubbo-go.wiki] 29/35: Updated notice of committing codes (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 64c089b200a2637ad733065a16a173f2bf13566f Author: Xin.Zh AuthorDate: Fri Jun 28 00:02:43 2019 +0800 Updated notice of committing codes (markdown) --- notice-of-committing-codes.md | 4 1 file changed, 4 insertions(+) diff --git a/notice-of-committing-codes.md b/notice-of-committing-codes.md index 5e8f0c9..661ef1a 100644 --- a/notice-of-committing-codes.md +++ b/notice-of-committing-codes.md @@ -22,3 +22,7 @@ The title format of the pull request `MUST` follow the following rules: >- Start with `Dep:` for adding depending libs. >- Start with `Rem:` for removing feature/struct/function/member/files. +## 3. Go programming rules + +- 1 do not use a struct's outside its functions [#issue-101](https://github.com/apache/dubbo-go/issues/101); +- 2 do not use a Mutex/RWMutex:Lock() before invoke Mutex/RWMutex:Unlock() [#issue-101](https://github.com/apache/dubbo-go/issues/101);
[dubbo-go.wiki] 22/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit b56e0cbc5bfe079f226eb7107ed298e54442aa56 Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:26:32 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_Sidebar.md b/_Sidebar.md index 2318a67..8f4aedc 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -8,4 +8,4 @@ * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) * OpenSource - * [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file + * [dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/%E4%BE%9D%E8%B5%96%E5%BA%93%E5%BC%80%E6%BA%90%E5%8D%8F%E8%AE%AE) \ No newline at end of file
[dubbo-go.wiki] 05/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 19523e5f5aae20d204d6f9d8c85e5d6dd8f0b3dd Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:32:38 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roadmap.md b/Roadmap.md index cabe2c3..c45cf33 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -1,5 +1,5 @@ 1. compatible with [dubbo v2.5.x](https://github.com/apache/incubator-dubbo/tree/2.5.x) based on [hessian2](https://github.com/dubbogo/hessian2) and [getty](https://github.com/alexstocks/getty); -### 2. release version v1.0.x based on the design in [dubbo-go-V2.6.x design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V2.6-design); _**We are working on this now.**_ +### 2. release version v1.0.x based on the design in [dubbo-go-V1.0 design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design); _**We are working on this now.**_ > Task list: task|owner|status
[dubbo-go.wiki] 06/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 317f6326830ca50308a226a1085f8c9eb83740e8 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:33:15 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roadmap.md b/Roadmap.md index c45cf33..dd083f4 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -18,7 +18,7 @@ tps limit|zzq| routing rule|| monitor metrics(prometheus)|gxg| - 3. compatible with [dubbo v2.7.x](https://github.com/apache/incubator-dubbo/tree/2.7.1-release) + 3. release version v1.1.x compatible with [dubbo v2.7.x](https://github.com/apache/incubator-dubbo/tree/2.7.1-release) _**Waiting for start.**_
[dubbo-go.wiki] 12/35: Updated pressure test report for jsonrpc (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit b5fcbc7045d6f72faa98830fa04c3cb5e0ca3abc Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:10:35 2019 +0800 Updated pressure test report for jsonrpc (markdown) --- pressure-test-report-for-jsonrpc.md => Benchmark-test-of-jsonrpc.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/pressure-test-report-for-jsonrpc.md b/Benchmark-test-of-jsonrpc.md similarity index 100% rename from pressure-test-report-for-jsonrpc.md rename to Benchmark-test-of-jsonrpc.md
[dubbo-go.wiki] 22/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit b56e0cbc5bfe079f226eb7107ed298e54442aa56 Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:26:32 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_Sidebar.md b/_Sidebar.md index 2318a67..8f4aedc 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -8,4 +8,4 @@ * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) * OpenSource - * [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file + * [dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/%E4%BE%9D%E8%B5%96%E5%BA%93%E5%BC%80%E6%BA%90%E5%8D%8F%E8%AE%AE) \ No newline at end of file
[dubbo-go.wiki] 01/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 159224faf5f49235f49383e6c679459cbce52ed0 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 16:43:02 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Roadmap.md b/Roadmap.md index 6b41cc8..525a50a 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -16,13 +16,12 @@ p2p without registry|hxm|doing getty network i/o performance optimization & dubbogo business gr pool|fyc|doing tps limit|zzq| routing rule|| -monitor(prometheus)|gxg| +monitor metrics(prometheus)|gxg| 3. compatible with [dubbo v2.7.x](https://github.com/apache/incubator-dubbo/tree/2.7.1-release) _**Waiting for start.**_ - * metrics (waiting dubbo support) * dynamic configuration (dubbo v2.7.x) task|owner|status
[dubbo-go.wiki] 17/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit f84c5ee20f2e3d391141d6b3c1539d9864ed7d59 Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:20:54 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_Sidebar.md b/_Sidebar.md index 6b8abb3..84b41fc 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,5 +1,6 @@ -* [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) -* [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) +[Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) + +[Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) ### Roadmap * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST)
[dubbo-go.wiki] 31/35: Updated Home (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 744d477796cc58532d7abc64ad4ddf40d43af5e8 Author: Xin.Zh AuthorDate: Wed Dec 18 00:32:12 2019 +0800 Updated Home (markdown) --- Home.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Home.md b/Home.md index d1f24e3..09d9992 100644 --- a/Home.md +++ b/Home.md @@ -56,7 +56,7 @@ The subdirectory examples shows how to use dubbo-go. Please read the [examples/R ## Benchmark -Benchmark project please refer to [go-for-apache-dubbo-benchmark](https://github.com/dubbogo/go-for-apache-dubbo-benchmark) +Benchmark project please refer to [dubbo-go-benchmark](https://github.com/dubbogo/dubbo-go-benchmark) About dubbo-go benchmarking report, please refer to:
[dubbo-go.wiki] 21/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit a9d4127c165431ab0138d707e1b68798553cc98a Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:25:07 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_Sidebar.md b/_Sidebar.md index 1b7ea1c..2318a67 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,6 +1,6 @@ * [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) * [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) -* Roadmap(https://github.com/dubbo/go-for-apache-dubbo/wiki/Roadmap) +* [Roadmap](https://github.com/dubbo/go-for-apache-dubbo/wiki/Roadmap) * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) * Commit * [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes)
[dubbo-go.wiki] 02/35: Updated pressure test report for jsonrpc (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 43582176759654eea64066747eb66833b18640b6 Author: fangyincheng AuthorDate: Wed May 29 16:44:19 2019 +0800 Updated pressure test report for jsonrpc (markdown) --- pressure-test-report-for-jsonrpc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pressure-test-report-for-jsonrpc.md b/pressure-test-report-for-jsonrpc.md index 3b48369..ca89901 100644 --- a/pressure-test-report-for-jsonrpc.md +++ b/pressure-test-report-for-jsonrpc.md @@ -11,9 +11,9 @@ ## log level -* consumer: warm +* consumer: warn -* provider: warm +* provider: warn ## 版本
[dubbo-go.wiki] 21/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit a9d4127c165431ab0138d707e1b68798553cc98a Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:25:07 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_Sidebar.md b/_Sidebar.md index 1b7ea1c..2318a67 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,6 +1,6 @@ * [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) * [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) -* Roadmap(https://github.com/dubbo/go-for-apache-dubbo/wiki/Roadmap) +* [Roadmap](https://github.com/dubbo/go-for-apache-dubbo/wiki/Roadmap) * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) * Commit * [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes)
[dubbo-go.wiki] 34/35: Add:arch.png
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 79dd44db7bca8bc88929d83af1b8fdf7ffa71797 Author: vito.he AuthorDate: Thu Dec 19 00:37:59 2019 +0800 Add:arch.png --- arch.png | Bin 1059391 -> 48907 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/arch.png b/arch.png index 083b0f2..3893955 100644 Binary files a/arch.png and b/arch.png differ
[dubbo-go.wiki] 02/35: Updated pressure test report for jsonrpc (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 43582176759654eea64066747eb66833b18640b6 Author: fangyincheng AuthorDate: Wed May 29 16:44:19 2019 +0800 Updated pressure test report for jsonrpc (markdown) --- pressure-test-report-for-jsonrpc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pressure-test-report-for-jsonrpc.md b/pressure-test-report-for-jsonrpc.md index 3b48369..ca89901 100644 --- a/pressure-test-report-for-jsonrpc.md +++ b/pressure-test-report-for-jsonrpc.md @@ -11,9 +11,9 @@ ## log level -* consumer: warm +* consumer: warn -* provider: warm +* provider: warn ## 版本
[dubbo-go.wiki] 11/35: Updated pressure test report for dubbo (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 01aa45fbd835aa244ab4a83eadfb978257aee4bf Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:10:00 2019 +0800 Updated pressure test report for dubbo (markdown) --- ...port-for-dubbo.md => Benchmark-test-of-dubbo.md | 168 ++--- 1 file changed, 115 insertions(+), 53 deletions(-) diff --git a/pressure-test-report-for-dubbo.md b/Benchmark-test-of-dubbo.md similarity index 56% rename from pressure-test-report-for-dubbo.md rename to Benchmark-test-of-dubbo.md index 6e110d5..43c58b4 100644 --- a/pressure-test-report-for-dubbo.md +++ b/Benchmark-test-of-dubbo.md @@ -1,25 +1,135 @@ -# 测试结果 +# Macbook Pro 15 inch 2018 +## Environment +* OS: Darwin 18.2.0 Darwin Kernel Version 18.2.0 +* GOLANG: go1.12.4 darwin/amd64 +* RAM: 32G +* CPU: Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz +* CPU cores: 6 * 2 +* server、client running on same host -## 环境 +## Version +> v1.0.0 + +## Benchmark test result + +* request pkg size: 600 +* response pkg size: 574 + +|concurrency|total |succ |mean/ms|median|max/ms|min/ms|p99/ms|tps | +|---|---|--|---|--|--|--|--|-| +|10 |100|100 |1 |0 |7 |0 |6 |7494 | +|10 |1000 |1000 |0 |0 |9 |0 |8 |14128| +|10 |1w |1w|0 |0 |6 |0 |4 |17228| +|10 |10w|10w |0 |0 |25|0 |6 |18999| +|10 |100w |100w |0 |0 |72|0 |2 |18476| +|100|1000 |1000 |9 |6 |49|0 |48|8752 | +|100|1w |1w|4 |4 |50|0 |49|19862| +|100|10w|10w |4 |4 |49|0 |35|22777| +|100|100w |100w |4 |4 |207 |0 |26|21142| + +* request pkg size: 1024 +* response pkg size: 996 + +|concurrency|total |succ |mean/ms|median|max/ms|min/ms|p99/ms|tps | +|---|---|--|---|--|--|--|--|-| +|10 |100|100 |1 |0 |4 |0 |4 |8153 | +|10 |1000 |1000 |0 |0 |7 |0 |7 |13005| +|10 |1w |1w|0 |0 |3 |0 |3 |16064| +|10 |10w|10w |0 |0 |11|0 |2 |16256| +|10 |100w |100w |0 |0 |770 |0 |2 |15798| +|100|1000 |1000 |24 |23|67|0 |66|3737| +|100|1w |1w|5 |4 |51|0 |50|17759| +|100|10w|10w |4 |4 |58|0 |34|21315| +|100|100w |100w |5 |5 |418 |0 |26|18594| + +* request pkg size: 4096 +* response pkg size: 4040 + +|concurrency|total |succ |mean/ms|median|max/ms|min/ms|p99/ms|tps | +|---|---|--|---|--|--|--|--|-| +|10 |100|100 |1 |1 |7 |0 |7 |5150 | +|10 |1000 |1000 |1 |1 |9 |0 |8 |8276 | +|10 |1w |1w|1 |0 |0 |0 |5 |9730 | +|10 |10w|10w |1 |0 |39|0 |3 |9528 | +|10 |100w |100w |1 |1 |75|0 |3 |8772 | +|100|1000 |1000 |12 |8 |50|1 |50|6743 | +|100|1w |1w|8 |7 |57|0 |47|11657| +|100|10w|10w |8 |7 |115 |0 |94|11648| +|100|100w |100w |9 |8 |128 |0 |47|10160| + + + +# General Server + +## Environment * OS: CentOS Linux release 7.4.1708 (Core) * GOLANG: 1.12.5 linux/amd64 * RAM: 24G * CPU: Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz * cpu cores: 4 * 8 -* zk、server、client在同个机器上 +* zk、server、client running on same host -## 版本 +## Version > commit c73bad2eba5f98198148a70d75681ad88ca0775f + +## Benchmark test result + +* request pkg size: 600 +* response pkg size: 574 + +|concurrency|total |succ |mean/ms|median|max/ms|min/ms|p99/ms|tps | +|---|---|--|---|--|--|--|--|-| +|10 |100|100 |1 |0 |4 |0 |4 |8166 | +|10 |1000 |1000 |0 |0 |6 |0 |5 |11466| +|10 |1w |1w|0 |0 |5 |0 |3 |12846| +|10 |10w|10w |0 |0 |23|0 |6 |12915| +|10 |100w |100w |0 |0 |178 |0 |11|12753| +|100|1000 |1000 |9 |6 |48|0 |43|8669 | +|100|1w |1w|6 |6 |49|0 |37|13918| +|100|10w|10w |7 |6 |133 |0 |70|13723| +|100|100w |100w |6 |6 |328 |0 |59|14478| + +* request pkg size: 1024 +* response pkg size: 996 + +|concurrency|total |succ
[dubbo-go.wiki] 18/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 1787b715b36b0679579784da79fda70aaaf84a0f Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:22:01 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/_Sidebar.md b/_Sidebar.md index 84b41fc..b920dd7 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,16 +1,15 @@ -[Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) +* [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) +* [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) -[Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) +* Roadmap + * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) -### Roadmap -* [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) +* Commit + * [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) -### Commit -* [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) +* Benchmark Test + * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) + * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) -### Benchmark Test -* [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) -* [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) - -### OpenSource -* [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file +* OpenSource + * [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file
[dubbo-go.wiki] 18/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 1787b715b36b0679579784da79fda70aaaf84a0f Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:22:01 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/_Sidebar.md b/_Sidebar.md index 84b41fc..b920dd7 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,16 +1,15 @@ -[Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) +* [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) +* [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) -[Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) +* Roadmap + * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) -### Roadmap -* [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) +* Commit + * [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) -### Commit -* [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) +* Benchmark Test + * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) + * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) -### Benchmark Test -* [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) -* [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) - -### OpenSource -* [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file +* OpenSource + * [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file
[dubbo-go.wiki] 10/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 015db1a58fc73a572518406fe3aaad784d1ae1a0 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:38:58 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Roadmap.md b/Roadmap.md index 2199020..6bdb206 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -7,7 +7,7 @@ _**We are working on this now.**_ task|owner|status -|-|- -v2.6.5.0 release main mission|hxm|done +v1.0.0 release main mission|hxm|done k8s registry|zhb|doing log4go improvement, hessian2 method/struct tag|zzq|done getty:refactor designing to support epoll machanisim|wg|doing @@ -15,7 +15,7 @@ hessian2 improvement|cch|done cluster strategy: Failfast/Failsafe/Failback|匠尘|doing loadbalance: RoundRobin/LeastActive/ConsistentHash|诣极|doing filter : TokenFilter/AccessLogFilter/GenericFilter|舒铭| -p2p without registry|hxm|doing +p2p without registry|hxm|done getty network i/o performance optimization & dubbogo business gr pool|fyc|doing tps limit|zzq| routing rule||
[dubbo-go.wiki] 12/35: Updated pressure test report for jsonrpc (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit b5fcbc7045d6f72faa98830fa04c3cb5e0ca3abc Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:10:35 2019 +0800 Updated pressure test report for jsonrpc (markdown) --- pressure-test-report-for-jsonrpc.md => Benchmark-test-of-jsonrpc.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/pressure-test-report-for-jsonrpc.md b/Benchmark-test-of-jsonrpc.md similarity index 100% rename from pressure-test-report-for-jsonrpc.md rename to Benchmark-test-of-jsonrpc.md
[dubbo-go.wiki] 35/35: Merge branch 'master' of https://github.com/dubbo/go-for-apache-dubbo.wiki
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 9c6f7dda42b545b05ada9a8430154c59bf3c2f84 Merge: 068b269 79dd44d Author: vito.he AuthorDate: Sat Feb 29 14:15:27 2020 +0800 Merge branch 'master' of https://github.com/dubbo/go-for-apache-dubbo.wiki ...port-for-dubbo.md => Benchmark-test-of-dubbo.md | 168 ++--- ...-for-jsonrpc.md => Benchmark-test-of-jsonrpc.md | 4 +- Guide-for-Use.md | 166 Home.md| 68 + Roadmap.md | 14 +- _Sidebar.md| 13 ++ arch.png | Bin 0 -> 48907 bytes dubbo-go-V2.6-design.md => dubbo-go-V1.0-design.md | 2 +- notice-of-committing-codes.md | 4 + 9 files changed, 377 insertions(+), 62 deletions(-)
[dubbo-go.wiki] 13/35: Created Benchmark (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 208f3d67b0958b88638af3902c3af938d8d7d5e0 Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:14:08 2019 +0800 Created Benchmark (markdown) --- Benchmark.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Benchmark.md b/Benchmark.md new file mode 100644 index 000..74ab2cc --- /dev/null +++ b/Benchmark.md @@ -0,0 +1,3 @@ +## Benchmark +* [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) +* [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) \ No newline at end of file
[dubbo-go.wiki] 17/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit f84c5ee20f2e3d391141d6b3c1539d9864ed7d59 Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:20:54 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_Sidebar.md b/_Sidebar.md index 6b8abb3..84b41fc 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,5 +1,6 @@ -* [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) -* [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) +[Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) + +[Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) ### Roadmap * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST)
[dubbo-go.wiki] 07/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 0c89d53418aeb8a20f80b615ec27a78ff67b6aa1 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:37:28 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roadmap.md b/Roadmap.md index dd083f4..4e84f7f 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -1,5 +1,5 @@ 1. compatible with [dubbo v2.5.x](https://github.com/apache/incubator-dubbo/tree/2.5.x) based on [hessian2](https://github.com/dubbogo/hessian2) and [getty](https://github.com/alexstocks/getty); -### 2. release version v1.0.x based on the design in [dubbo-go-V1.0 design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design); _**We are working on this now.**_ +### 2. release version v1.0.x based on the design in [dubbo-go-V1.0 design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design),need to compatible with dubbo v2.6.x _**We are working on this now.**_ > Task list: task|owner|status
[dubbo-go.wiki] 09/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 6c757ccbe84b5dac9f257a1e9723748c414bdf34 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:38:26 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roadmap.md b/Roadmap.md index 62d8869..2199020 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -1,5 +1,5 @@ 1. compatible with [dubbo v2.5.x](https://github.com/apache/incubator-dubbo/tree/2.5.x) based on [hessian2](https://github.com/dubbogo/hessian2) and [getty](https://github.com/alexstocks/getty); -### 2. release version v1.0.x based on the design in [dubbo-go-V1.0 design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design),need to compatible with dubbo v2.6.x. +### 2. release version v1.0.x based on the design in [dubbo-go-V1.0 design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design), compatible with dubbo v2.6.x. _**We are working on this now.**_
[dubbo-go.wiki] 15/35: Destroyed Benchmark (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit c5b96e84cbc9528503ad48c03aef76816b80061f Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:15:08 2019 +0800 Destroyed Benchmark (markdown) --- Benchmark.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/Benchmark.md b/Benchmark.md deleted file mode 100644 index 74ab2cc..000 --- a/Benchmark.md +++ /dev/null @@ -1,3 +0,0 @@ -## Benchmark -* [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) -* [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) \ No newline at end of file
[dubbo-go.wiki] 04/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit a0d453c7ee07436410c4eb267c1cf5d81d0fee05 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:32:08 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roadmap.md b/Roadmap.md index 525a50a..cabe2c3 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -1,5 +1,5 @@ 1. compatible with [dubbo v2.5.x](https://github.com/apache/incubator-dubbo/tree/2.5.x) based on [hessian2](https://github.com/dubbogo/hessian2) and [getty](https://github.com/alexstocks/getty); -### 2. release version v2.6.5.x based on the design in [dubbo-go-V2.6.x design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V2.6-design); _**We are working on this now.**_ +### 2. release version v1.0.x based on the design in [dubbo-go-V2.6.x design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V2.6-design); _**We are working on this now.**_ > Task list: task|owner|status
[dubbo-go.wiki] 25/35: Created Guide for Use (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 888bff0455a9ec3800f9e9df59f937d58c31ceb9 Author: fangyincheng AuthorDate: Wed Jun 5 14:52:54 2019 +0800 Created Guide for Use (markdown) --- Guide-for-Use.md | 158 +++ 1 file changed, 158 insertions(+) diff --git a/Guide-for-Use.md b/Guide-for-Use.md new file mode 100644 index 000..3eb376c --- /dev/null +++ b/Guide-for-Use.md @@ -0,0 +1,158 @@ +# Guide for Use + +## How to start quick? + +--- + +### STEP 1: Define struct and provider + +> go-for-apache-dubbo/examples/dubbo/go-client/app/user.go +> go-for-apache-dubbo/examples/dubbo/go-server/app/user.go + +```go +// all structs must implements hessian.POJO +type User struct {} +func (User) JavaClassName string { +return "com.Xxx.User" // same to the java class name +} + +// for server +func init() { + config.SetProviderService(new(UserProvider)) +} +UserProvider struct {} +// args list reference "What to pay attention to?/function" +func (u *UserProvider) YourMethod(ctx context.Context, req []interface{}, rsp *User) error { +// do your any things +} + +// for client +func init() { + config.SetConsumerService(new(UserProvider)) +} +type UserProvider struct { +YourMethod func(ctx context.Context, req []interface{}, rsp *User) error +} +``` + +### STEP 2: Code client.go + +> go-for-apache-dubbo/examples/dubbo/go-client/app/client.go + +```go +// must import package you will use +// reference "What to pay attention to?/package" + +// register pojo +hessian.RegisterPOJO({}) +// Load +conMap, _ := config.Load() +// call +conMap["com.Xxx.User"].GetRPCService().YourMethod(...) +``` + +### STEP 3: Code server.go + +> go-for-apache-dubbo/examples/dubbo/go-server/app/server.go + +```go +// must import package you will use +// reference "What to pay attention to?/package" + +// register pojo +hessian.RegisterPOJO({}) +// Load +_, proMap := config.Load() +``` + +### STEP 4: Make client.yml and server.yml + +> go-for-apache-dubbo/config/testdata/consumer_config.yml + +> go-for-apache-dubbo/config/testdata/provider_config.yml + +## What to pay attention to? + +--- + +### hessian2 + +* all structs must implements hessian.POJO +* JavaEnum type should be: +```go +const ( + MAN hessian.JavaEnum = iota + WOMAN +) +var genderName = map[hessian.JavaEnum]string{ + MAN: "MAN", + WOMAN: "WOMAN", +} + +var genderValue = map[string]hessian.JavaEnum{ + "MAN": MAN, + "WOMAN": WOMAN, +} +type Gender hessian.JavaEnum +func (g Gender) JavaClassName() string { + return "com.Xxx.Gender" +} +func (g Gender) String() string { + return genderName[hessian.JavaEnum(g)] +} + +func (g Gender) EnumValue(s string) hessian.JavaEnum { +return genderValue[s] +} +``` + +```go +hessian.RegisterJavaEnum(Gender(MAN)) +hessian.RegisterJavaEnum(Gender(WOMAN)) +``` + +* JavaClass type should be: +```go +type User struct {} +func (User) JavaClassName string { +return "com.Xxx.User" // same to the java class name +} +``` + +```go +hessian.RegisterPOJO({}) +``` + +### function + +* support these argslist in the `dubbo protocol` + +```go +Method_1(ctx context.Context, req []interface{}, rsp *User) error +Method_2(id string, name string) (User, error) +Method_3(ctx context.Context, req []interface{}, rsp *[]interface{}) error +Method_4(ctx context.Context, req []interface{}) ([]interface{}, error) +Method_5(ctx context.Context, req []interface{}) (map[interface{}]interface{}, error) +``` + +### package + +* must import +```go +_ "github.com/dubbo/go-for-apache-dubbo/common/proxy/proxy_factory" +_ "github.com/dubbo/go-for-apache-dubbo/registry/protocol" +_ "github.com/dubbo/go-for-apache-dubbo/filter/impl" +_ "github.com/dubbo/go-for-apache-dubbo/cluster/cluster_impl" +_ "github.com/dubbo/go-for-apache-dubbo/cluster/loadbalance" +``` + +* other +```go +_ "github.com/dubbo/go-for-apache-dubbo/protocol/dubbo" // when using dubbo protocol +_ "github.com/dubbo/go-for-apache-dubbo/protocol/jsonrpc" // when using dubbo protocol +_ "github.com/dubbo/go-for-apache-dubbo/registry/zookeeper" // when using zookeeper registry +``` + +### config + +* when you want to get local ip, you can delete `ip` field. \ No newline at end of file
[dubbo-go.wiki] 04/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit a0d453c7ee07436410c4eb267c1cf5d81d0fee05 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:32:08 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roadmap.md b/Roadmap.md index 525a50a..cabe2c3 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -1,5 +1,5 @@ 1. compatible with [dubbo v2.5.x](https://github.com/apache/incubator-dubbo/tree/2.5.x) based on [hessian2](https://github.com/dubbogo/hessian2) and [getty](https://github.com/alexstocks/getty); -### 2. release version v2.6.5.x based on the design in [dubbo-go-V2.6.x design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V2.6-design); _**We are working on this now.**_ +### 2. release version v1.0.x based on the design in [dubbo-go-V2.6.x design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V2.6-design); _**We are working on this now.**_ > Task list: task|owner|status
[dubbo-go.wiki] 35/35: Merge branch 'master' of https://github.com/dubbo/go-for-apache-dubbo.wiki
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 9c6f7dda42b545b05ada9a8430154c59bf3c2f84 Merge: 068b269 79dd44d Author: vito.he AuthorDate: Sat Feb 29 14:15:27 2020 +0800 Merge branch 'master' of https://github.com/dubbo/go-for-apache-dubbo.wiki ...port-for-dubbo.md => Benchmark-test-of-dubbo.md | 168 ++--- ...-for-jsonrpc.md => Benchmark-test-of-jsonrpc.md | 4 +- Guide-for-Use.md | 166 Home.md| 68 + Roadmap.md | 14 +- _Sidebar.md| 13 ++ arch.png | Bin 0 -> 48907 bytes dubbo-go-V2.6-design.md => dubbo-go-V1.0-design.md | 2 +- notice-of-committing-codes.md | 4 + 9 files changed, 377 insertions(+), 62 deletions(-)
[dubbo-go.wiki] 12/35: Updated pressure test report for jsonrpc (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit b5fcbc7045d6f72faa98830fa04c3cb5e0ca3abc Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:10:35 2019 +0800 Updated pressure test report for jsonrpc (markdown) --- pressure-test-report-for-jsonrpc.md => Benchmark-test-of-jsonrpc.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/pressure-test-report-for-jsonrpc.md b/Benchmark-test-of-jsonrpc.md similarity index 100% rename from pressure-test-report-for-jsonrpc.md rename to Benchmark-test-of-jsonrpc.md
[dubbo-go.wiki] 26/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 18929d22726c8116cc7bab98bdcbc2d7fdd9d816 Author: fangyincheng AuthorDate: Wed Jun 5 14:54:36 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_Sidebar.md b/_Sidebar.md index 8f4aedc..11e7976 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -8,4 +8,6 @@ * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) * OpenSource - * [dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/%E4%BE%9D%E8%B5%96%E5%BA%93%E5%BC%80%E6%BA%90%E5%8D%8F%E8%AE%AE) \ No newline at end of file + * [dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/%E4%BE%9D%E8%B5%96%E5%BA%93%E5%BC%80%E6%BA%90%E5%8D%8F%E8%AE%AE) +* Documents + * [Guide-for-Use](https://github.com/dubbo/go-for-apache-dubbo/wiki/Guide-for-Use) \ No newline at end of file
[dubbo-go.wiki] 25/35: Created Guide for Use (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 888bff0455a9ec3800f9e9df59f937d58c31ceb9 Author: fangyincheng AuthorDate: Wed Jun 5 14:52:54 2019 +0800 Created Guide for Use (markdown) --- Guide-for-Use.md | 158 +++ 1 file changed, 158 insertions(+) diff --git a/Guide-for-Use.md b/Guide-for-Use.md new file mode 100644 index 000..3eb376c --- /dev/null +++ b/Guide-for-Use.md @@ -0,0 +1,158 @@ +# Guide for Use + +## How to start quick? + +--- + +### STEP 1: Define struct and provider + +> go-for-apache-dubbo/examples/dubbo/go-client/app/user.go +> go-for-apache-dubbo/examples/dubbo/go-server/app/user.go + +```go +// all structs must implements hessian.POJO +type User struct {} +func (User) JavaClassName string { +return "com.Xxx.User" // same to the java class name +} + +// for server +func init() { + config.SetProviderService(new(UserProvider)) +} +UserProvider struct {} +// args list reference "What to pay attention to?/function" +func (u *UserProvider) YourMethod(ctx context.Context, req []interface{}, rsp *User) error { +// do your any things +} + +// for client +func init() { + config.SetConsumerService(new(UserProvider)) +} +type UserProvider struct { +YourMethod func(ctx context.Context, req []interface{}, rsp *User) error +} +``` + +### STEP 2: Code client.go + +> go-for-apache-dubbo/examples/dubbo/go-client/app/client.go + +```go +// must import package you will use +// reference "What to pay attention to?/package" + +// register pojo +hessian.RegisterPOJO({}) +// Load +conMap, _ := config.Load() +// call +conMap["com.Xxx.User"].GetRPCService().YourMethod(...) +``` + +### STEP 3: Code server.go + +> go-for-apache-dubbo/examples/dubbo/go-server/app/server.go + +```go +// must import package you will use +// reference "What to pay attention to?/package" + +// register pojo +hessian.RegisterPOJO({}) +// Load +_, proMap := config.Load() +``` + +### STEP 4: Make client.yml and server.yml + +> go-for-apache-dubbo/config/testdata/consumer_config.yml + +> go-for-apache-dubbo/config/testdata/provider_config.yml + +## What to pay attention to? + +--- + +### hessian2 + +* all structs must implements hessian.POJO +* JavaEnum type should be: +```go +const ( + MAN hessian.JavaEnum = iota + WOMAN +) +var genderName = map[hessian.JavaEnum]string{ + MAN: "MAN", + WOMAN: "WOMAN", +} + +var genderValue = map[string]hessian.JavaEnum{ + "MAN": MAN, + "WOMAN": WOMAN, +} +type Gender hessian.JavaEnum +func (g Gender) JavaClassName() string { + return "com.Xxx.Gender" +} +func (g Gender) String() string { + return genderName[hessian.JavaEnum(g)] +} + +func (g Gender) EnumValue(s string) hessian.JavaEnum { +return genderValue[s] +} +``` + +```go +hessian.RegisterJavaEnum(Gender(MAN)) +hessian.RegisterJavaEnum(Gender(WOMAN)) +``` + +* JavaClass type should be: +```go +type User struct {} +func (User) JavaClassName string { +return "com.Xxx.User" // same to the java class name +} +``` + +```go +hessian.RegisterPOJO({}) +``` + +### function + +* support these argslist in the `dubbo protocol` + +```go +Method_1(ctx context.Context, req []interface{}, rsp *User) error +Method_2(id string, name string) (User, error) +Method_3(ctx context.Context, req []interface{}, rsp *[]interface{}) error +Method_4(ctx context.Context, req []interface{}) ([]interface{}, error) +Method_5(ctx context.Context, req []interface{}) (map[interface{}]interface{}, error) +``` + +### package + +* must import +```go +_ "github.com/dubbo/go-for-apache-dubbo/common/proxy/proxy_factory" +_ "github.com/dubbo/go-for-apache-dubbo/registry/protocol" +_ "github.com/dubbo/go-for-apache-dubbo/filter/impl" +_ "github.com/dubbo/go-for-apache-dubbo/cluster/cluster_impl" +_ "github.com/dubbo/go-for-apache-dubbo/cluster/loadbalance" +``` + +* other +```go +_ "github.com/dubbo/go-for-apache-dubbo/protocol/dubbo" // when using dubbo protocol +_ "github.com/dubbo/go-for-apache-dubbo/protocol/jsonrpc" // when using dubbo protocol +_ "github.com/dubbo/go-for-apache-dubbo/registry/zookeeper" // when using zookeeper registry +``` + +### config + +* when you want to get local ip, you can delete `ip` field. \ No newline at end of file
[dubbo-go.wiki] 19/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 5b0d925fda15890b5906defdbb4a37d093f6b514 Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:23:07 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 4 1 file changed, 4 deletions(-) diff --git a/_Sidebar.md b/_Sidebar.md index b920dd7..b6ba687 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,15 +1,11 @@ * [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) * [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) - * Roadmap * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) - * Commit * [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) - * Benchmark Test * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) - * OpenSource * [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file
[dubbo-go.wiki] 22/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit b56e0cbc5bfe079f226eb7107ed298e54442aa56 Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:26:32 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_Sidebar.md b/_Sidebar.md index 2318a67..8f4aedc 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -8,4 +8,4 @@ * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) * OpenSource - * [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file + * [dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/%E4%BE%9D%E8%B5%96%E5%BA%93%E5%BC%80%E6%BA%90%E5%8D%8F%E8%AE%AE) \ No newline at end of file
[dubbo-go.wiki] 11/35: Updated pressure test report for dubbo (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 01aa45fbd835aa244ab4a83eadfb978257aee4bf Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:10:00 2019 +0800 Updated pressure test report for dubbo (markdown) --- ...port-for-dubbo.md => Benchmark-test-of-dubbo.md | 168 ++--- 1 file changed, 115 insertions(+), 53 deletions(-) diff --git a/pressure-test-report-for-dubbo.md b/Benchmark-test-of-dubbo.md similarity index 56% rename from pressure-test-report-for-dubbo.md rename to Benchmark-test-of-dubbo.md index 6e110d5..43c58b4 100644 --- a/pressure-test-report-for-dubbo.md +++ b/Benchmark-test-of-dubbo.md @@ -1,25 +1,135 @@ -# 测试结果 +# Macbook Pro 15 inch 2018 +## Environment +* OS: Darwin 18.2.0 Darwin Kernel Version 18.2.0 +* GOLANG: go1.12.4 darwin/amd64 +* RAM: 32G +* CPU: Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz +* CPU cores: 6 * 2 +* server、client running on same host -## 环境 +## Version +> v1.0.0 + +## Benchmark test result + +* request pkg size: 600 +* response pkg size: 574 + +|concurrency|total |succ |mean/ms|median|max/ms|min/ms|p99/ms|tps | +|---|---|--|---|--|--|--|--|-| +|10 |100|100 |1 |0 |7 |0 |6 |7494 | +|10 |1000 |1000 |0 |0 |9 |0 |8 |14128| +|10 |1w |1w|0 |0 |6 |0 |4 |17228| +|10 |10w|10w |0 |0 |25|0 |6 |18999| +|10 |100w |100w |0 |0 |72|0 |2 |18476| +|100|1000 |1000 |9 |6 |49|0 |48|8752 | +|100|1w |1w|4 |4 |50|0 |49|19862| +|100|10w|10w |4 |4 |49|0 |35|22777| +|100|100w |100w |4 |4 |207 |0 |26|21142| + +* request pkg size: 1024 +* response pkg size: 996 + +|concurrency|total |succ |mean/ms|median|max/ms|min/ms|p99/ms|tps | +|---|---|--|---|--|--|--|--|-| +|10 |100|100 |1 |0 |4 |0 |4 |8153 | +|10 |1000 |1000 |0 |0 |7 |0 |7 |13005| +|10 |1w |1w|0 |0 |3 |0 |3 |16064| +|10 |10w|10w |0 |0 |11|0 |2 |16256| +|10 |100w |100w |0 |0 |770 |0 |2 |15798| +|100|1000 |1000 |24 |23|67|0 |66|3737| +|100|1w |1w|5 |4 |51|0 |50|17759| +|100|10w|10w |4 |4 |58|0 |34|21315| +|100|100w |100w |5 |5 |418 |0 |26|18594| + +* request pkg size: 4096 +* response pkg size: 4040 + +|concurrency|total |succ |mean/ms|median|max/ms|min/ms|p99/ms|tps | +|---|---|--|---|--|--|--|--|-| +|10 |100|100 |1 |1 |7 |0 |7 |5150 | +|10 |1000 |1000 |1 |1 |9 |0 |8 |8276 | +|10 |1w |1w|1 |0 |0 |0 |5 |9730 | +|10 |10w|10w |1 |0 |39|0 |3 |9528 | +|10 |100w |100w |1 |1 |75|0 |3 |8772 | +|100|1000 |1000 |12 |8 |50|1 |50|6743 | +|100|1w |1w|8 |7 |57|0 |47|11657| +|100|10w|10w |8 |7 |115 |0 |94|11648| +|100|100w |100w |9 |8 |128 |0 |47|10160| + + + +# General Server + +## Environment * OS: CentOS Linux release 7.4.1708 (Core) * GOLANG: 1.12.5 linux/amd64 * RAM: 24G * CPU: Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz * cpu cores: 4 * 8 -* zk、server、client在同个机器上 +* zk、server、client running on same host -## 版本 +## Version > commit c73bad2eba5f98198148a70d75681ad88ca0775f + +## Benchmark test result + +* request pkg size: 600 +* response pkg size: 574 + +|concurrency|total |succ |mean/ms|median|max/ms|min/ms|p99/ms|tps | +|---|---|--|---|--|--|--|--|-| +|10 |100|100 |1 |0 |4 |0 |4 |8166 | +|10 |1000 |1000 |0 |0 |6 |0 |5 |11466| +|10 |1w |1w|0 |0 |5 |0 |3 |12846| +|10 |10w|10w |0 |0 |23|0 |6 |12915| +|10 |100w |100w |0 |0 |178 |0 |11|12753| +|100|1000 |1000 |9 |6 |48|0 |43|8669 | +|100|1w |1w|6 |6 |49|0 |37|13918| +|100|10w|10w |7 |6 |133 |0 |70|13723| +|100|100w |100w |6 |6 |328 |0 |59|14478| + +* request pkg size: 1024 +* response pkg size: 996 + +|concurrency|total |succ
[dubbo-go.wiki] 18/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 1787b715b36b0679579784da79fda70aaaf84a0f Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:22:01 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/_Sidebar.md b/_Sidebar.md index 84b41fc..b920dd7 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,16 +1,15 @@ -[Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) +* [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) +* [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) -[Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) +* Roadmap + * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) -### Roadmap -* [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) +* Commit + * [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) -### Commit -* [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) +* Benchmark Test + * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) + * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) -### Benchmark Test -* [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) -* [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) - -### OpenSource -* [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file +* OpenSource + * [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file
[dubbo-go.wiki] 25/35: Created Guide for Use (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 888bff0455a9ec3800f9e9df59f937d58c31ceb9 Author: fangyincheng AuthorDate: Wed Jun 5 14:52:54 2019 +0800 Created Guide for Use (markdown) --- Guide-for-Use.md | 158 +++ 1 file changed, 158 insertions(+) diff --git a/Guide-for-Use.md b/Guide-for-Use.md new file mode 100644 index 000..3eb376c --- /dev/null +++ b/Guide-for-Use.md @@ -0,0 +1,158 @@ +# Guide for Use + +## How to start quick? + +--- + +### STEP 1: Define struct and provider + +> go-for-apache-dubbo/examples/dubbo/go-client/app/user.go +> go-for-apache-dubbo/examples/dubbo/go-server/app/user.go + +```go +// all structs must implements hessian.POJO +type User struct {} +func (User) JavaClassName string { +return "com.Xxx.User" // same to the java class name +} + +// for server +func init() { + config.SetProviderService(new(UserProvider)) +} +UserProvider struct {} +// args list reference "What to pay attention to?/function" +func (u *UserProvider) YourMethod(ctx context.Context, req []interface{}, rsp *User) error { +// do your any things +} + +// for client +func init() { + config.SetConsumerService(new(UserProvider)) +} +type UserProvider struct { +YourMethod func(ctx context.Context, req []interface{}, rsp *User) error +} +``` + +### STEP 2: Code client.go + +> go-for-apache-dubbo/examples/dubbo/go-client/app/client.go + +```go +// must import package you will use +// reference "What to pay attention to?/package" + +// register pojo +hessian.RegisterPOJO({}) +// Load +conMap, _ := config.Load() +// call +conMap["com.Xxx.User"].GetRPCService().YourMethod(...) +``` + +### STEP 3: Code server.go + +> go-for-apache-dubbo/examples/dubbo/go-server/app/server.go + +```go +// must import package you will use +// reference "What to pay attention to?/package" + +// register pojo +hessian.RegisterPOJO({}) +// Load +_, proMap := config.Load() +``` + +### STEP 4: Make client.yml and server.yml + +> go-for-apache-dubbo/config/testdata/consumer_config.yml + +> go-for-apache-dubbo/config/testdata/provider_config.yml + +## What to pay attention to? + +--- + +### hessian2 + +* all structs must implements hessian.POJO +* JavaEnum type should be: +```go +const ( + MAN hessian.JavaEnum = iota + WOMAN +) +var genderName = map[hessian.JavaEnum]string{ + MAN: "MAN", + WOMAN: "WOMAN", +} + +var genderValue = map[string]hessian.JavaEnum{ + "MAN": MAN, + "WOMAN": WOMAN, +} +type Gender hessian.JavaEnum +func (g Gender) JavaClassName() string { + return "com.Xxx.Gender" +} +func (g Gender) String() string { + return genderName[hessian.JavaEnum(g)] +} + +func (g Gender) EnumValue(s string) hessian.JavaEnum { +return genderValue[s] +} +``` + +```go +hessian.RegisterJavaEnum(Gender(MAN)) +hessian.RegisterJavaEnum(Gender(WOMAN)) +``` + +* JavaClass type should be: +```go +type User struct {} +func (User) JavaClassName string { +return "com.Xxx.User" // same to the java class name +} +``` + +```go +hessian.RegisterPOJO({}) +``` + +### function + +* support these argslist in the `dubbo protocol` + +```go +Method_1(ctx context.Context, req []interface{}, rsp *User) error +Method_2(id string, name string) (User, error) +Method_3(ctx context.Context, req []interface{}, rsp *[]interface{}) error +Method_4(ctx context.Context, req []interface{}) ([]interface{}, error) +Method_5(ctx context.Context, req []interface{}) (map[interface{}]interface{}, error) +``` + +### package + +* must import +```go +_ "github.com/dubbo/go-for-apache-dubbo/common/proxy/proxy_factory" +_ "github.com/dubbo/go-for-apache-dubbo/registry/protocol" +_ "github.com/dubbo/go-for-apache-dubbo/filter/impl" +_ "github.com/dubbo/go-for-apache-dubbo/cluster/cluster_impl" +_ "github.com/dubbo/go-for-apache-dubbo/cluster/loadbalance" +``` + +* other +```go +_ "github.com/dubbo/go-for-apache-dubbo/protocol/dubbo" // when using dubbo protocol +_ "github.com/dubbo/go-for-apache-dubbo/protocol/jsonrpc" // when using dubbo protocol +_ "github.com/dubbo/go-for-apache-dubbo/registry/zookeeper" // when using zookeeper registry +``` + +### config + +* when you want to get local ip, you can delete `ip` field. \ No newline at end of file
[dubbo-go.wiki] 30/35: Updated Home (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 4487ce08579e3e7ecd1b81930dba5962bb23ea91 Author: Xin.Zh AuthorDate: Fri Aug 9 21:26:25 2019 +0800 Updated Home (markdown) --- Home.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Home.md b/Home.md index 337533e..d1f24e3 100644 --- a/Home.md +++ b/Home.md @@ -1,4 +1,4 @@ -# Go for Apache Dubbo [中文](./README_CN.md) # +# Apache Dubbo-Go [中文](./README_CN.md) # [![Build Status](https://travis-ci.com/dubbo/go-for-apache-dubbo.svg?branch=master)](https://travis-ci.com/dubbo/go-for-apache-dubbo) [![codecov](https://codecov.io/gh/dubbo/go-for-apache-dubbo/branch/master/graph/badge.svg)](https://codecov.io/gh/dubbo/go-for-apache-dubbo)
[dubbo-go.wiki] 03/35: Updated dubbo go V2.6 design (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit f1c16c1b35d3855ca2a49ffbecc8e3367bc2d694 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:31:42 2019 +0800 Updated dubbo go V2.6 design (markdown) --- dubbo-go-V2.6-design.md => dubbo-go-V1.0-design.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dubbo-go-V2.6-design.md b/dubbo-go-V1.0-design.md similarity index 95% rename from dubbo-go-V2.6-design.md rename to dubbo-go-V1.0-design.md index 3d334ea..bf88b89 100644 --- a/dubbo-go-V2.6-design.md +++ b/dubbo-go-V1.0-design.md @@ -1,6 +1,6 @@ # 设计思路: -借鉴 dubbo 分层设计,v2.6 版本需要实现 dubbo 的主要功能以及实现 dubbo 可扩展点的易扩展性,与dubbo v2.6.x版本对应。尽量较少非必须的功能,以及现阶段难以拆分并对使用无感知(可以后续版本再来拆分而对使用者无感知)的分层。 +借鉴 dubbo 分层设计,v1.0.x 版本需要实现 dubbo 的主要功能以及实现 dubbo 可扩展点的易扩展性,与dubbo v2.6.x版本对应。尽量较少非必须的功能,以及现阶段难以拆分并对使用无感知(可以后续版本再来拆分而对使用者无感知)的分层。 ***
[dubbo-go.wiki] 14/35: Created _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 2ac1105c05e38dae71aaad878dbda386e9daf91d Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:14:43 2019 +0800 Created _Sidebar (markdown) --- _Sidebar.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_Sidebar.md b/_Sidebar.md new file mode 100644 index 000..74ab2cc --- /dev/null +++ b/_Sidebar.md @@ -0,0 +1,3 @@ +## Benchmark +* [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) +* [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) \ No newline at end of file
[dubbo-go.wiki] 19/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 5b0d925fda15890b5906defdbb4a37d093f6b514 Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:23:07 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 4 1 file changed, 4 deletions(-) diff --git a/_Sidebar.md b/_Sidebar.md index b920dd7..b6ba687 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,15 +1,11 @@ * [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) * [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) - * Roadmap * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) - * Commit * [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) - * Benchmark Test * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) - * OpenSource * [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file
[dubbo-go.wiki] 14/35: Created _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 2ac1105c05e38dae71aaad878dbda386e9daf91d Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:14:43 2019 +0800 Created _Sidebar (markdown) --- _Sidebar.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_Sidebar.md b/_Sidebar.md new file mode 100644 index 000..74ab2cc --- /dev/null +++ b/_Sidebar.md @@ -0,0 +1,3 @@ +## Benchmark +* [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) +* [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) \ No newline at end of file
[dubbo-go.wiki] 10/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 015db1a58fc73a572518406fe3aaad784d1ae1a0 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:38:58 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Roadmap.md b/Roadmap.md index 2199020..6bdb206 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -7,7 +7,7 @@ _**We are working on this now.**_ task|owner|status -|-|- -v2.6.5.0 release main mission|hxm|done +v1.0.0 release main mission|hxm|done k8s registry|zhb|doing log4go improvement, hessian2 method/struct tag|zzq|done getty:refactor designing to support epoll machanisim|wg|doing @@ -15,7 +15,7 @@ hessian2 improvement|cch|done cluster strategy: Failfast/Failsafe/Failback|匠尘|doing loadbalance: RoundRobin/LeastActive/ConsistentHash|诣极|doing filter : TokenFilter/AccessLogFilter/GenericFilter|舒铭| -p2p without registry|hxm|doing +p2p without registry|hxm|done getty network i/o performance optimization & dubbogo business gr pool|fyc|doing tps limit|zzq| routing rule||
[dubbo-go.wiki] 32/35: Updated Home (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit f068523a9cb4fae358aa8923879012bdbb926218 Author: Xin.Zh AuthorDate: Wed Dec 18 00:38:55 2019 +0800 Updated Home (markdown) --- Home.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Home.md b/Home.md index 09d9992..4eb98d2 100644 --- a/Home.md +++ b/Home.md @@ -66,6 +66,7 @@ About dubbo-go benchmarking report, please refer to: ## [User List](https://github.com/dubbo/go-for-apache-dubbo/issues/2) ![ctrip](https://pic.c-ctrip.com/common/c_logo2013.png) + ## Dev Plan --- - [Roadmap](https://github.com/dubbo/dubbo-go/wiki/Roadmap)
[dubbo-go.wiki] 30/35: Updated Home (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 4487ce08579e3e7ecd1b81930dba5962bb23ea91 Author: Xin.Zh AuthorDate: Fri Aug 9 21:26:25 2019 +0800 Updated Home (markdown) --- Home.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Home.md b/Home.md index 337533e..d1f24e3 100644 --- a/Home.md +++ b/Home.md @@ -1,4 +1,4 @@ -# Go for Apache Dubbo [中文](./README_CN.md) # +# Apache Dubbo-Go [中文](./README_CN.md) # [![Build Status](https://travis-ci.com/dubbo/go-for-apache-dubbo.svg?branch=master)](https://travis-ci.com/dubbo/go-for-apache-dubbo) [![codecov](https://codecov.io/gh/dubbo/go-for-apache-dubbo/branch/master/graph/badge.svg)](https://codecov.io/gh/dubbo/go-for-apache-dubbo)
[dubbo-go.wiki] 23/35: Updated Home (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit e45c0fb82db0d0a1f4ade8053803cec411fbcce7 Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:28:48 2019 +0800 Updated Home (markdown) --- Home.md | 64 1 file changed, 64 insertions(+) diff --git a/Home.md b/Home.md index 9d28ae3..6f2c4e2 100644 --- a/Home.md +++ b/Home.md @@ -1,4 +1,68 @@ +# Go for Apache Dubbo [中文](./README_CN.md) # +[![Build Status](https://travis-ci.com/dubbo/go-for-apache-dubbo.svg?branch=master)](https://travis-ci.com/dubbo/go-for-apache-dubbo) +[![codecov](https://codecov.io/gh/dubbo/go-for-apache-dubbo/branch/master/graph/badge.svg)](https://codecov.io/gh/dubbo/go-for-apache-dubbo) + +--- +Apache Dubbo Go Implementation. + +## License + +Apache License, Version 2.0 + +## Release note ## + +[v1.0.0 - May 29, 2019 compatible with dubbo v2.6.5](https://github.com/dubbo/go-for-apache-dubbo/releases/tag/v1.0.0) + +## Code design ## + +Extension module and layered code design based on dubbo (include protocol layer,registry layer,cluster layer,config layer and so on), Our goal is: you can implement these layered interfaces in a new way, and override the default implementation of dubbo-go[same go-for-apache-dubbo] by calling 'extension.SetXXX' of extension, and complete your special needs without modifying the source code. At the same time, you are welcome to contribute implementation of useful expansion to the community. + +![frame design](https://raw.githubusercontent.com/wiki/dubbo/dubbo-go/dubbo-go%E4%BB%A3%E7%A0%81%E5%88%86%E5%B1%82%E8%AE%BE%E8%AE%A1.png) + +About detail design please refer to [code layered design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) + +## Feature list ## + +Finished List: + +- Role: Consumer(√), Provider(√) +- Transport: HTTP(√), TCP(√) +- Codec: JsonRPC v2(√), Hessian v2(√) +- Registry: ZooKeeper(√) +- Cluster Strategy: Failover(√) +- Load Balance: Random(√) +- Filter: Echo Health Check(√) + +Working List: + +- Cluster Strategy: Failfast/Failsafe/Failback/Forking +- Load Balance: RoundRobin/LeastActive/ConsistentHash +- Filter: TokenFilter/AccessLogFilter/CountFilter/ActiveLimitFilter/ExecuteLimitFilter/GenericFilter/TpsLimitFilter +- Registry: etcd/k8s/consul + +Todo List: + +- routing rule (dubbo v2.6.x) +- monitoring (dubbo v2.6.x) +- dynamic configuration (dubbo v2.7.x) +- metrics (dubbo v2.7.x) waiting dubbo's quota + +You can know more about dubbo-go by its [roadmap](https://github.com/dubbo/go-for-apache-dubbo/wiki/Roadmap). + +## Quick Start + +The subdirectory examples shows how to use dubbo-go. Please read the [examples/README.md](https://github.com/dubbo/go-for-apache-dubbo/blob/develop/examples/README.md) carefully to learn how to dispose the configuration and compile the program. + +## Benchmark + +Benchmark project please refer to [go-for-apache-dubbo-benchmark](https://github.com/dubbogo/go-for-apache-dubbo-benchmark) + +About dubbo-go benchmarking report, please refer to [dubbo benchmarking report](https://github.com/dubbo/go-for-apache-dubbo/wiki/pressure-test-report-for-dubbo) & [jsonrpc benchmarking report](https://github.com/dubbo/go-for-apache-dubbo/wiki/pressure-test-report-for-jsonrpc) + +## [User List](https://github.com/dubbo/go-for-apache-dubbo/issues/2) + +![ctrip](https://pic.c-ctrip.com/common/c_logo2013.png) ## Dev Plan --- - [Roadmap](https://github.com/dubbo/dubbo-go/wiki/Roadmap)
[dubbo-go.wiki] 07/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 0c89d53418aeb8a20f80b615ec27a78ff67b6aa1 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:37:28 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roadmap.md b/Roadmap.md index dd083f4..4e84f7f 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -1,5 +1,5 @@ 1. compatible with [dubbo v2.5.x](https://github.com/apache/incubator-dubbo/tree/2.5.x) based on [hessian2](https://github.com/dubbogo/hessian2) and [getty](https://github.com/alexstocks/getty); -### 2. release version v1.0.x based on the design in [dubbo-go-V1.0 design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design); _**We are working on this now.**_ +### 2. release version v1.0.x based on the design in [dubbo-go-V1.0 design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design),need to compatible with dubbo v2.6.x _**We are working on this now.**_ > Task list: task|owner|status
[dubbo-go.wiki] 03/35: Updated dubbo go V2.6 design (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit f1c16c1b35d3855ca2a49ffbecc8e3367bc2d694 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:31:42 2019 +0800 Updated dubbo go V2.6 design (markdown) --- dubbo-go-V2.6-design.md => dubbo-go-V1.0-design.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dubbo-go-V2.6-design.md b/dubbo-go-V1.0-design.md similarity index 95% rename from dubbo-go-V2.6-design.md rename to dubbo-go-V1.0-design.md index 3d334ea..bf88b89 100644 --- a/dubbo-go-V2.6-design.md +++ b/dubbo-go-V1.0-design.md @@ -1,6 +1,6 @@ # 设计思路: -借鉴 dubbo 分层设计,v2.6 版本需要实现 dubbo 的主要功能以及实现 dubbo 可扩展点的易扩展性,与dubbo v2.6.x版本对应。尽量较少非必须的功能,以及现阶段难以拆分并对使用无感知(可以后续版本再来拆分而对使用者无感知)的分层。 +借鉴 dubbo 分层设计,v1.0.x 版本需要实现 dubbo 的主要功能以及实现 dubbo 可扩展点的易扩展性,与dubbo v2.6.x版本对应。尽量较少非必须的功能,以及现阶段难以拆分并对使用无感知(可以后续版本再来拆分而对使用者无感知)的分层。 ***
[dubbo-go.wiki] 27/35: Updated Guide for Use (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 57c132e95c638cada91aca101918b7977bf0a985 Author: fangyincheng AuthorDate: Wed Jun 5 17:55:50 2019 +0800 Updated Guide for Use (markdown) --- Guide-for-Use.md | 8 1 file changed, 8 insertions(+) diff --git a/Guide-for-Use.md b/Guide-for-Use.md index 3eb376c..16b0d0e 100644 --- a/Guide-for-Use.md +++ b/Guide-for-Use.md @@ -123,6 +123,14 @@ func (User) JavaClassName string { hessian.RegisterPOJO({}) ``` +* `hessian:""` as tag of field unite field name of java and go, eg: + +```go +type User struct { + A int `hessian:"b"` // name of A is b in the java, default a +} +``` + ### function * support these argslist in the `dubbo protocol`
[dubbo-go.wiki] 18/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 1787b715b36b0679579784da79fda70aaaf84a0f Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:22:01 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/_Sidebar.md b/_Sidebar.md index 84b41fc..b920dd7 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,16 +1,15 @@ -[Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) +* [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) +* [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) -[Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) +* Roadmap + * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) -### Roadmap -* [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) +* Commit + * [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) -### Commit -* [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) +* Benchmark Test + * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) + * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) -### Benchmark Test -* [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) -* [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) - -### OpenSource -* [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file +* OpenSource + * [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file
[dubbo-go.wiki] 08/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 4df294122a843b1f015725fec54d3b42427f9886 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:37:58 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Roadmap.md b/Roadmap.md index 4e84f7f..62d8869 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -1,5 +1,8 @@ 1. compatible with [dubbo v2.5.x](https://github.com/apache/incubator-dubbo/tree/2.5.x) based on [hessian2](https://github.com/dubbogo/hessian2) and [getty](https://github.com/alexstocks/getty); -### 2. release version v1.0.x based on the design in [dubbo-go-V1.0 design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design),need to compatible with dubbo v2.6.x _**We are working on this now.**_ +### 2. release version v1.0.x based on the design in [dubbo-go-V1.0 design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design),need to compatible with dubbo v2.6.x. + +_**We are working on this now.**_ + > Task list: task|owner|status
[dubbo-go.wiki] 12/35: Updated pressure test report for jsonrpc (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit b5fcbc7045d6f72faa98830fa04c3cb5e0ca3abc Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:10:35 2019 +0800 Updated pressure test report for jsonrpc (markdown) --- pressure-test-report-for-jsonrpc.md => Benchmark-test-of-jsonrpc.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/pressure-test-report-for-jsonrpc.md b/Benchmark-test-of-jsonrpc.md similarity index 100% rename from pressure-test-report-for-jsonrpc.md rename to Benchmark-test-of-jsonrpc.md
[dubbo-go.wiki] 09/35: Updated Roadmap (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 6c757ccbe84b5dac9f257a1e9723748c414bdf34 Author: vito.he <787325...@qq.com> AuthorDate: Wed May 29 20:38:26 2019 +0800 Updated Roadmap (markdown) --- Roadmap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roadmap.md b/Roadmap.md index 62d8869..2199020 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -1,5 +1,5 @@ 1. compatible with [dubbo v2.5.x](https://github.com/apache/incubator-dubbo/tree/2.5.x) based on [hessian2](https://github.com/dubbogo/hessian2) and [getty](https://github.com/alexstocks/getty); -### 2. release version v1.0.x based on the design in [dubbo-go-V1.0 design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design),need to compatible with dubbo v2.6.x. +### 2. release version v1.0.x based on the design in [dubbo-go-V1.0 design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design), compatible with dubbo v2.6.x. _**We are working on this now.**_
[dubbo-go.wiki] 21/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit a9d4127c165431ab0138d707e1b68798553cc98a Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:25:07 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_Sidebar.md b/_Sidebar.md index 1b7ea1c..2318a67 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,6 +1,6 @@ * [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) * [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) -* Roadmap(https://github.com/dubbo/go-for-apache-dubbo/wiki/Roadmap) +* [Roadmap](https://github.com/dubbo/go-for-apache-dubbo/wiki/Roadmap) * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) * Commit * [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes)
[dubbo-go.wiki] 14/35: Created _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 2ac1105c05e38dae71aaad878dbda386e9daf91d Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:14:43 2019 +0800 Created _Sidebar (markdown) --- _Sidebar.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_Sidebar.md b/_Sidebar.md new file mode 100644 index 000..74ab2cc --- /dev/null +++ b/_Sidebar.md @@ -0,0 +1,3 @@ +## Benchmark +* [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) +* [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) \ No newline at end of file
[dubbo-go.wiki] 15/35: Destroyed Benchmark (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit c5b96e84cbc9528503ad48c03aef76816b80061f Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:15:08 2019 +0800 Destroyed Benchmark (markdown) --- Benchmark.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/Benchmark.md b/Benchmark.md deleted file mode 100644 index 74ab2cc..000 --- a/Benchmark.md +++ /dev/null @@ -1,3 +0,0 @@ -## Benchmark -* [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) -* [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) \ No newline at end of file
[dubbo-go.wiki] 21/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit a9d4127c165431ab0138d707e1b68798553cc98a Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:25:07 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_Sidebar.md b/_Sidebar.md index 1b7ea1c..2318a67 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,6 +1,6 @@ * [Home](https://github.com/dubbo/go-for-apache-dubbo/wiki) * [Design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) -* Roadmap(https://github.com/dubbo/go-for-apache-dubbo/wiki/Roadmap) +* [Roadmap](https://github.com/dubbo/go-for-apache-dubbo/wiki/Roadmap) * [task 1 tcp/hessian implementation ](https://github.com/dubbo/dubbo-go/wiki/Roadmap-task-1-TODO-LIST) * Commit * [specification](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes)
[dubbo-go.wiki] 22/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit b56e0cbc5bfe079f226eb7107ed298e54442aa56 Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:26:32 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_Sidebar.md b/_Sidebar.md index 2318a67..8f4aedc 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -8,4 +8,4 @@ * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) * OpenSource - * [Dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/notice-of-committing-codes) \ No newline at end of file + * [dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/%E4%BE%9D%E8%B5%96%E5%BA%93%E5%BC%80%E6%BA%90%E5%8D%8F%E8%AE%AE) \ No newline at end of file
[dubbo-go.wiki] 23/35: Updated Home (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit e45c0fb82db0d0a1f4ade8053803cec411fbcce7 Author: u0x01 <233...@gmail.com> AuthorDate: Thu May 30 01:28:48 2019 +0800 Updated Home (markdown) --- Home.md | 64 1 file changed, 64 insertions(+) diff --git a/Home.md b/Home.md index 9d28ae3..6f2c4e2 100644 --- a/Home.md +++ b/Home.md @@ -1,4 +1,68 @@ +# Go for Apache Dubbo [中文](./README_CN.md) # +[![Build Status](https://travis-ci.com/dubbo/go-for-apache-dubbo.svg?branch=master)](https://travis-ci.com/dubbo/go-for-apache-dubbo) +[![codecov](https://codecov.io/gh/dubbo/go-for-apache-dubbo/branch/master/graph/badge.svg)](https://codecov.io/gh/dubbo/go-for-apache-dubbo) + +--- +Apache Dubbo Go Implementation. + +## License + +Apache License, Version 2.0 + +## Release note ## + +[v1.0.0 - May 29, 2019 compatible with dubbo v2.6.5](https://github.com/dubbo/go-for-apache-dubbo/releases/tag/v1.0.0) + +## Code design ## + +Extension module and layered code design based on dubbo (include protocol layer,registry layer,cluster layer,config layer and so on), Our goal is: you can implement these layered interfaces in a new way, and override the default implementation of dubbo-go[same go-for-apache-dubbo] by calling 'extension.SetXXX' of extension, and complete your special needs without modifying the source code. At the same time, you are welcome to contribute implementation of useful expansion to the community. + +![frame design](https://raw.githubusercontent.com/wiki/dubbo/dubbo-go/dubbo-go%E4%BB%A3%E7%A0%81%E5%88%86%E5%B1%82%E8%AE%BE%E8%AE%A1.png) + +About detail design please refer to [code layered design](https://github.com/dubbo/go-for-apache-dubbo/wiki/dubbo-go-V1.0-design) + +## Feature list ## + +Finished List: + +- Role: Consumer(√), Provider(√) +- Transport: HTTP(√), TCP(√) +- Codec: JsonRPC v2(√), Hessian v2(√) +- Registry: ZooKeeper(√) +- Cluster Strategy: Failover(√) +- Load Balance: Random(√) +- Filter: Echo Health Check(√) + +Working List: + +- Cluster Strategy: Failfast/Failsafe/Failback/Forking +- Load Balance: RoundRobin/LeastActive/ConsistentHash +- Filter: TokenFilter/AccessLogFilter/CountFilter/ActiveLimitFilter/ExecuteLimitFilter/GenericFilter/TpsLimitFilter +- Registry: etcd/k8s/consul + +Todo List: + +- routing rule (dubbo v2.6.x) +- monitoring (dubbo v2.6.x) +- dynamic configuration (dubbo v2.7.x) +- metrics (dubbo v2.7.x) waiting dubbo's quota + +You can know more about dubbo-go by its [roadmap](https://github.com/dubbo/go-for-apache-dubbo/wiki/Roadmap). + +## Quick Start + +The subdirectory examples shows how to use dubbo-go. Please read the [examples/README.md](https://github.com/dubbo/go-for-apache-dubbo/blob/develop/examples/README.md) carefully to learn how to dispose the configuration and compile the program. + +## Benchmark + +Benchmark project please refer to [go-for-apache-dubbo-benchmark](https://github.com/dubbogo/go-for-apache-dubbo-benchmark) + +About dubbo-go benchmarking report, please refer to [dubbo benchmarking report](https://github.com/dubbo/go-for-apache-dubbo/wiki/pressure-test-report-for-dubbo) & [jsonrpc benchmarking report](https://github.com/dubbo/go-for-apache-dubbo/wiki/pressure-test-report-for-jsonrpc) + +## [User List](https://github.com/dubbo/go-for-apache-dubbo/issues/2) + +![ctrip](https://pic.c-ctrip.com/common/c_logo2013.png) ## Dev Plan --- - [Roadmap](https://github.com/dubbo/dubbo-go/wiki/Roadmap)
[dubbo-go.wiki] 02/35: Updated pressure test report for jsonrpc (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 43582176759654eea64066747eb66833b18640b6 Author: fangyincheng AuthorDate: Wed May 29 16:44:19 2019 +0800 Updated pressure test report for jsonrpc (markdown) --- pressure-test-report-for-jsonrpc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pressure-test-report-for-jsonrpc.md b/pressure-test-report-for-jsonrpc.md index 3b48369..ca89901 100644 --- a/pressure-test-report-for-jsonrpc.md +++ b/pressure-test-report-for-jsonrpc.md @@ -11,9 +11,9 @@ ## log level -* consumer: warm +* consumer: warn -* provider: warm +* provider: warn ## 版本
[dubbo-go.wiki] 32/35: Updated Home (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit f068523a9cb4fae358aa8923879012bdbb926218 Author: Xin.Zh AuthorDate: Wed Dec 18 00:38:55 2019 +0800 Updated Home (markdown) --- Home.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Home.md b/Home.md index 09d9992..4eb98d2 100644 --- a/Home.md +++ b/Home.md @@ -66,6 +66,7 @@ About dubbo-go benchmarking report, please refer to: ## [User List](https://github.com/dubbo/go-for-apache-dubbo/issues/2) ![ctrip](https://pic.c-ctrip.com/common/c_logo2013.png) + ## Dev Plan --- - [Roadmap](https://github.com/dubbo/dubbo-go/wiki/Roadmap)
[dubbo-go.wiki] 26/35: Updated _Sidebar (markdown)
This is an automated email from the ASF dual-hosted git repository. xinminghe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go.wiki.git commit 18929d22726c8116cc7bab98bdcbc2d7fdd9d816 Author: fangyincheng AuthorDate: Wed Jun 5 14:54:36 2019 +0800 Updated _Sidebar (markdown) --- _Sidebar.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_Sidebar.md b/_Sidebar.md index 8f4aedc..11e7976 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -8,4 +8,6 @@ * [dubbo](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-dubbo) * [jsonrpc](https://github.com/dubbo/go-for-apache-dubbo/wiki/Benchmark-test-of-jsonrpc) * OpenSource - * [dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/%E4%BE%9D%E8%B5%96%E5%BA%93%E5%BC%80%E6%BA%90%E5%8D%8F%E8%AE%AE) \ No newline at end of file + * [dependency agreement](https://github.com/dubbo/go-for-apache-dubbo/wiki/%E4%BE%9D%E8%B5%96%E5%BA%93%E5%BC%80%E6%BA%90%E5%8D%8F%E8%AE%AE) +* Documents + * [Guide-for-Use](https://github.com/dubbo/go-for-apache-dubbo/wiki/Guide-for-Use) \ No newline at end of file