Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/go-chassis/go-chassis
a cloud native application framework for Go with rich eco-system
https://github.com/go-chassis/go-chassis
circuit-breaker cloud-native distributed-systems framework go go-restful grpc istio kubernetes microservice restful servicecomb servicemesh
Last synced: 23 days ago
JSON representation
a cloud native application framework for Go with rich eco-system
- Host: GitHub
- URL: https://github.com/go-chassis/go-chassis
- Owner: go-chassis
- License: apache-2.0
- Created: 2018-01-15T12:57:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-10T01:30:03.000Z (about 2 months ago)
- Last Synced: 2024-09-30T15:41:32.695Z (about 1 month ago)
- Topics: circuit-breaker, cloud-native, distributed-systems, framework, go, go-restful, grpc, istio, kubernetes, microservice, restful, servicecomb, servicemesh
- Language: Go
- Homepage:
- Size: 4.04 MB
- Stars: 2,732
- Watchers: 118
- Forks: 470
- Open Issues: 38
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: security/authr/authenticator.go
Awesome Lists containing this project
- my-awesome - go-chassis/go-chassis - breaker,cloud-native,distributed-systems,framework,go,go-restful,grpc,istio,kubernetes,microservice,restful,servicecomb,servicemesh pushed_at:2024-09 star:2.7k fork:0.5k a cloud native application framework for Go with rich eco-system (Go)
- awesome - go-chassis/go-chassis - a cloud native application framework for Go with rich eco-system (Go)
- awesome-starts - go-chassis/go-chassis - a microservice framework for rapid development of micro services in Go with rich eco-system (Go)
- go-awesome - go-chassis
- awesome-golang-repositories - go-chassis - system (Repositories)
- awesome-list-microservice - go-chassis
- go-collection - go-chassis
- go-collection - go-chassis
README
![](logo.png)
[![Coverage Status](https://coveralls.io/repos/github/go-chassis/go-chassis/badge.svg)](https://coveralls.io/github/go-chassis/go-chassis)
[![Go Report Card](https://goreportcard.com/badge/github.com/go-chassis/go-chassis)](https://goreportcard.com/report/github.com/go-chassis/go-chassis)
[![GoDoc](https://godoc.org/github.com/go-chassis/go-chassis?status.svg)](https://godoc.org/github.com/go-chassis/go-chassis)
[![HitCount](http://hits.dwyl.io/go-chassis/go-chassis.svg)](http://hits.dwyl.io/go-chassis/go-chassis)
[![goproxy.cn](https://goproxy.cn/stats/github.com/go-chassis/go-chassis/badges/download-count.svg)](https://goproxy.cn)
[![Documentation Status](https://readthedocs.org/projects/go-chassis/badge/?version=latest)](https://go-chassis.readthedocs.io/en/latest/?badge=latest)
[中文版README](README_cn.md)Go-Chassis is a microservice framework for rapid development of microservices in Go.
it focus on helping developer to deliver cloud native application more easily.
The idea of logo is, developer can recreate and customize their own "wheel"(a framework) by go chassis to accelerate the delivery of software.### Why use Go chassis
- powerful middleware "handler chain":
powerful than "filter" or "interceptor".
each handler in chain is able to get the running result of backward handler and your business logic.
It is very useful in varies of scenario, for example:
1. a circuit breaker need to check command results
2. track response status and record it, so that prometheus can collect them
3. track critical response result, so that you can audit them
4. distribute tracing, you can complete the end span spec after business logic executedthe commonplace above is helping you decouple common function from business logic. without handler chain.
those function will couple with business logic- go chassis is designed as a protocol-independent framework, any protocol
is able to integrate with go chassis and leverage same function like load balancing,
circuit breaker,rate limiting, routing management, those function resilient your service- go chassis makes service observable by bringing open tracing and prometheus to it.
- go chassis is flexible, many different modules can be replaced by other implementation,
like registry, metrics, handler chain, config server etc- With many build-in function like route management, circuit breaker, load balancing, monitoring etc,
your don't need to investigate, implement and integrate many solutions yourself.# Features
- **Pluggable discovery service**: Support Service center, kubernetes.
fit both client side discovery and server side discovery pattern,
and you can disable service discovery to use end to end communication.
- **Pluggable Protocol**:
You can customize protocol, by default support http and grpc,
go chassis define standardized [model](https://github.com/go-chassis/go-chassis/blob/master/core/invocation/invocation.go) to makes all request of different protocol leverage same features
- **Multiple server management**: you can separate API by protocols and ports
- **Handler Chain**: Able to add your own code during service calling for client and server side
- **rich middleware**: based on handler chain,
supply circuit breaker, rate limiting, monitoring, auth features.
[see](https://go-chassis.readthedocs.io/en/latest/middleware.html)
- **Traffic marker** Traffic marker module is able to mark requests in both client(consumer) or server(provider) side,
with marker, you can govern traffic based on it.
- **Traffic management**: Able to route to different service based on weight and match rule, it can be used in many scenario, such as canary release
- **Security**: build in cipher, authentication, RSA related funtions
- **Safety and resilience**:
support fault-tolerant(retry, rate limiting, client-side load-balancing, circuit breaker) to makes your service facing any unpredictable situation.
- **Telemetry**: Able to expose Prometheus metric API automatically and customize metrics report.
Use opentracing-go as standard library.
- **Backing services**:
use [backend service](https://go-chassis.readthedocs.io/en/latest/dev-guides/backends.html) as a plugin,
so that your app can be easily tested, and swap to another plugin.
- **Hot re-configuration**:
Powered by go-archaius, configurations can be reload in runtime, like load balancing, circuit breaker,
rate limiting, developer is also able to develop a service which has hot-reconfiguration feature easily.
[see](https://go-chassis.readthedocs.io/en/latest/user-guides/dynamic-conf.html#)
- **API first** go chassis will automatically generate Open API 2.0 doc and register it to service center. you can manage all the API docs in one place
- **Spring Cloud** integrate with servicecomb, go chassis can work together with [spring cloud](https://github.com/huaweicloud/spring-cloud-huawei).
- **Service mesh**: you can introduce multi-language to your microservice system. powered by [servicecomb-mesher](https://github.com/apache/servicecomb-mesher).
- **Less dependencies**: checkout the go.mod file, it has less dependency on open source project by default, to import more features checkout [plugins](https://github.com/go-chassis/go-chassis-extension) to see more features# Get started
1.Generate go mod
```bash
go mod init
```
2.Add go chassis
```shell script
go get github.com/go-chassis/go-chassis/[email protected]
```
if you are facing network issue
```bash
export GOPROXY=https://goproxy.io
```3.[Write your first http micro service](https://go-chassis.readthedocs.io/en/latest/getstarted/writing-rest.html)
# Documentations
You can see more documentations in [here](https://go-chassis.readthedocs.io/),# Examples
You can check examples [here](examples)NOTICE: Now examples is migrating to [here](https://github.com/go-chassis/go-chassis-examples)
# Communication Protocols
Go-Chassis supports 2 types of communication protocol.
1. http - an approach that leverages the HTTP protocol for communication.
3. gRPC - native grpc protocol, go chassis bring circuit breaker, route management etc to grpc.
## Debug suggestion for dlv:
Add `-tags debug` into go build arguments before debugging, if your go version is go1.10 onward.example:
```shell
go build -tags debug -o server -gcflags "all=-N -l" server.go
```Chassis customized `debug` tag to resolve dlv debug issue:
https://github.com/golang/go/issues/23733
https://github.com/derekparker/delve/issues/865
# Other project using go-chassis
- [apache/servicecomb-kie](https://github.com/apache/servicecomb-kie):
A cloud native distributed configuration management service, go chassis and mesher integrate with it,
so that user can manage service configurations by this service.
- [apache/servicecomb-mesher](https://github.com/apache/servicecomb-mesher):
A service mesh able to co-work with go chassis,
it is able to run as a [API gateway](https://mesher.readthedocs.io/en/latest/configurations/edge.html) also.
- [KubeEdge](https://github.com/kubeedge/kubeedge): Kubernetes Native Edge Computing Framework (project under CNCF) https://kubeedge.io# Known Users
To register your self, go to https://github.com/go-chassis/go-chassis/issues/592
# Contributing
If you're interested in being a contributor and want to get involved in developing,
please check [CONTRIBUTING](CONTRIBUTING.md) and [wiki](https://github.com/go-chassis/go-chassis/wiki) for details.[Join slack](https://go-chassis.slack.com/)
# Committer
- ichiro999
- humingcheng