Awesome
Apache Dubbo-go
Apache Dubbo-go, a Dubbo implementation written in Golang, is born to bridge the gap between Java/Dubbo and Go/X. Please visit our Dubbo official website for the quick start and documentation.
RPC invocation
<img src="https://dubbo-go-pixiu.github.io/img/pixiu-dubbo-ecosystem.png" height="400px" display="display: block, margin: auto" />Dubbo-go has supported many RPC protocols, like Triple, Dubbo, JSONRPC, gRPC, HTTP, HTTP2. The Triple, Dubbo and gRPC protocols supported security connections via TLS.
- Triple is the supported protocol of Dubbo3 ecology, and is gRPC extended protocol based on HTTP2, which is compatible with gRPC service.In other words, on the basis of gRPC's reliable invocation, it adds Dubbo's service governance capability.
- Dubbo protocol is tradition Dubbo ecology protocol, which is compatible with Dubbo 2.x, and is a good choice for cross-language invocation between GO and Java legacy service.
- HTTP support: As you can see in the figure above, you can invoke Triple/Dubbo service using HTTP protocol through dubbo-go-pixiu gateway.
Service governance capability
<img src="https://dubbogo.github.io/img/devops.png" height="300px" display="display: block, margin: auto" />- Registry: Nacos, Zookeeper, ETCD, Polaris-mesh, Consul.
- ConfigCenter: Nacos, Zookeeper
- Cluster Strategy: Failover, Failfast, Failsafe/Failback, Available, Broadcast, Forking
- Load Balance: AdaptiveService, Random, RoundRobin, LeastActive, ConsistentHash
- Filter: Echo, Hystrix, Token, AccessLog, TpsLimiter, ExecuteLimit, Generic, Auth/Sign, Metrics, Tracing, Active, Seata, Sentinel
- Generic Invoke
- Monitor: Prometheus
- Tracing: Jaeger, Zipkin
- Router: Dubbo3 Router
Getting started
- Dubbo-go Quick Start: δΈζ π¨π³, English πΊπΈ
- Dubbo-go Samples: The project gives a series of samples that show each feature available for Dubbo-go and help you know how to integrate Dubbo-go with your system.
- Dubbo-go Benchmark
- Dubbo-go Wiki
Tools
- imports-formatter formatting dubbo-go project import code block.
- dubbo-go-cli dubbo-go command line tools, by which you can define your own request pkg and gets rsp struct of your server, test your service as telnet and generate hessian.POJO register method body.
- dubbo-go-cli-v2 new dubbo-go line tools, you can get services from register center, create a demo , create application templates, one-click installation of protoc-gen-go-triple and imports-formatter tools,and has the same features with dubbo-go-cli.
- protoc-gen-go-triple tripe protocol pb file generation tool.
- protoc-gen-dubbo3grpc dubbo3 grpc pb file generation tool.
If you want to know more about dubbogo tools, please visit https://github.com/apache/dubbo-go/blob/master/dubbogo-cli and read its readme carefully.
Intellij plugin
- Windows: File > Settings > Plugins > Browse repositories... > Search for "Dubbo Go" > Install Plugin
- MacOS: Preferences > Settings > Plugins > Browse repositories... > Search for "Dubbo Go" > Install Plugin
- Manually:
- Download the latest release and install it manually using Preferences > Plugins > Install plugin from disk...
- From official jetbrains store from download
Features
Feature | IDEA | GoLand |
---|---|---|
Hessian2 Generator | β οΈ | β οΈ |
New Project/Module | β οΈ | β οΈ |
Project/module templates
Project/Module Template | Progress |
---|---|
Sample | β οΈ |
Empty Project | β οΈ |
Empty project template middleware
Middleware | Module | Support |
---|---|---|
Web Service | Gin | β οΈ |
Memory Cache | Redis | β οΈ |
Database | Gorm | β οΈ |
If you want to know more about the Intellij Plugin for Dubbo-go, you may refer to https://gitee.com/changeden/intellij-plugin-dubbo-go-generator.
Ecosystem
- Dubbo Ecosystem Entry - A GitHub group
dubbo
to gather all Dubbo relevant projects not appropriate in apache group yet. - dubbo-go-pixiu - A dynamic, high-performance API gateway solution for Dubbo and Http services.
- dubbo-go-samples - Samples for Apache Dubbo-go.
- dubbo-getty - A netty like asynchronous network I/O library which supports tcp/udp/websocket network protocol.
- triple - A golang network package that based on http2, used by Dubbo-go 3.0.
- dubbo-go-hessian2 - A golang hessian library used by Apache/dubbo-go.
- gost - A go sdk for Apache Dubbo-go.
Contributing
Please visit CONTRIBUTING for details on submitting patches and the contribution workflow.
Reporting bugs
Please use the bug report template to report bugs, use the enhancement template to provide suggestions for improvement.
Contact
- DingTalk Group: 23331795
User List
If you are using apache/dubbo-go and think that it helps you or want to contribute code for Dubbo-go, please add your company to the user list to let us know your needs.
<div> <table> <tbody> <tr></tr> <tr> <td align="center" valign="middle"> <a href="" target="_blank"> <img width="222px" src="https://pic.c-ctrip.com/common/c_logo2013.png"> </a> </td> <td align="center" valign="middle"> <a href="" target="_blank"> <img width="222px" src="https://user-images.githubusercontent.com/52339367/84628582-80512200-af1b-11ea-945a-c6b4b9ad31f2.png"> </a> </td> <td align="center" valign="middle"> <a href="" target="_blank"> <img width="222px" src="https://mosn.io/images/community/tuya.png"> </a> </td> <td align="center" valign="middle"> <a href="https://github.com/mosn" target="_blank"> <img width="222px" src="https://raw.githubusercontent.com/mosn/community/master/icons/png/mosn-labeled-horizontal.png"> </a> </td> <td align="center" valign="middle"> <a href="" target="_blank"> <img width="222px" src="https://festatic.estudy.cn/assets/xhx-web/layout/logo.png"> </a> </td> </tr> <tr></tr> <tr> <td align="center" valign="middle"> <a href="http://www.j.cn" target="_blank"> <img width="222px" src="http://image.guang.j.cn/bbs/imgs/home/pc/icon_8500.png"> </a> </td> <td align="center" valign="middle"> <a href="https://www.genshuixue.com/" target="_blank"> <img width="222px" src="https://i.gsxcdn.com/0cms/d/file/content/2020/02/5e572137d7d94.png"> </a> </td> <td align="center" valign="middle"> <a href="http://www.51h5.com" target="_blank"> <img width="222px" src="https://fs-ews.51h5.com/common/hw_220_black.png"> </a> </td> <td align="center" valign="middle"> <a href="https://www.zto.com" target="_blank"> <img width="222px" src="https://fscdn.zto.com/fs8/M02/B2/E4/wKhBD1-8o52Ae3GnAAASU3r62ME040.png"> </a> </td> <td align="center" valign="middle"> <a href="https://www.icsoc.net/" target="_blank"> <img width="222px" src="https://help.icsoc.net/img/icsoc-logo.png"> </a> </td> </tr> <tr></tr> <tr> <td align="center" valign="middle"> <a href="http://www.mgtv.com" target="_blank"> <img width="222px" src="https://ugc.hitv.com/platform_oss/F6077F1AA82542CDBDD88FD518E6E727.png"> </a> </td> <td align="center" valign="middle"> <a href="http://www.dmall.com" target="_blank"> <img width="222px" src="https://mosn.io/images/community/duodian.png"> </a> </td> <td align="center" valign="middle"> <a href="http://www.ruubypay.com" target="_blank"> <img width="222px" src="http://website.ruubypay.com/wifi/image/line5.png"> </a> </td> <td align="center" valign="middle"> <a href="https://www.dingtalk.com" target="_blank"> <img width="222px" src="https://gw.alicdn.com/tfs/TB1HPATMrrpK1RjSZTEXXcWAVXa-260-74.png"> </a> </td> <td align="center" valign="middle"> <a href="https://www.autohome.com.cn" target="_blank"> <img width="222px" src="https://avatars.githubusercontent.com/u/18279051?s=200&v=4"> </a> </td> </tr> <tr></tr> <tr> <td align="center" valign="middle"> <a href="https://www.mi.com/" target="_blank"> <img width="222px" src="https://s02.mifile.cn/assets/static/image/logo-mi2.png"> </a> </td> <td align="center" valign="middle"> <a href="https://opayweb.com/" target="_blank"> <img width="222px" src="https://open.opayweb.com/static/img/logo@2x.35c6fe4c.jpg"> </a> </td> <td align="center" valign="middle"> <a href="http://www.zongheng.com/" target="_blank"> <img width="222px" src="https://img.xmkanshu.com/u/202204/01/201253131.png"> </a> </td> <td align="center" valign="middle"> <a href="https://amap.com/" target="_blank"> <img width="222px" src="https://github.com/seven-tan/static/blob/main/logo.png" > </a> </td> <td align="center" valign="middle"> <a href="https://chinaz.com/" target="_blank"> <img width="222px" src="https://img.chinaz.com/2020/img/chinaz-logo.png" > </a> </td> </tr> <tr></tr> </tbody> </table> </div>License
Apache Dubbo-go software is licenced under the Apache License Version 2.0. See the LICENSE file for details.