Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Nodebestpractices | 93,096 | a day ago | 64 | cc-by-sa-4.0 | Dockerfile | |||||
:white_check_mark: The Node.js best practices list (July 2023) | ||||||||||
Dubbo | 39,410 | 5,461 | 164 | 3 hours ago | 59 | December 29, 2021 | 1,005 | apache-2.0 | Java | |
The java implementation of Apache Dubbo. An RPC and microservice framework. | ||||||||||
Go Zero | 25,578 | 262 | 2 days ago | 154 | July 14, 2023 | 396 | mit | Go | ||
A cloud-native Go microservices framework with cli tool for productivity. | ||||||||||
Kubeshark | 9,574 | a day ago | 105 | apache-2.0 | Go | |||||
The API traffic analyzer for Kubernetes providing real-time K8s protocol-level visibility, capturing and monitoring all traffic and payloads going in, out and across containers, pods, nodes and clusters. Inspired by Wireshark, purposely built for Kubernetes | ||||||||||
Falcon | 9,241 | 1,521 | 187 | 23 days ago | 75 | November 18, 2022 | 157 | apache-2.0 | Python | |
The no-magic web data plane API and microservices framework for Python developers, with a focus on reliability, correctness, and performance at scale. | ||||||||||
Oatpp | 6,841 | 5 days ago | 193 | apache-2.0 | C++ | |||||
🌱Light and powerful C++ web framework for highly scalable and resource-efficient web application. It's zero-dependency and easy-portable. | ||||||||||
Goa | 5,299 | 68 | 8 hours ago | 127 | July 24, 2023 | 10 | mit | Go | ||
Design-based APIs and microservices in Go | ||||||||||
Spring Boot Projects | 4,551 | 7 months ago | 2 | apache-2.0 | Java | |||||
:fire: 该仓库中主要是 Spring Boot 的入门学习教程以及一些常用的 Spring Boot 实战项目教程,包括 Spring Boot 使用的各种示例代码,同时也包括一些实战项目的项目源码和效果展示,实战项目包括基本的 web 开发以及目前大家普遍使用的线上博客项目/企业大型商城系统/前后端分离实践项目等,摆脱各种 hello world 入门案例的束缚,真正的掌握 Spring Boot 开发。 | ||||||||||
Nodejs Integration Tests Best Practices | 2,983 | 2 months ago | 42 | JavaScript | ||||||
✅ Beyond the basics of Node.js testing. Including a super-comprehensive best practices list and an example app (July 2022) | ||||||||||
Go Chassis | 2,698 | 6 | 33 | a month ago | 80 | November 10, 2022 | 38 | apache-2.0 | Go | |
a cloud native application framework for Go with rich eco-system |
go-zero is a web and rpc framework with lots of builtin engineering practices. Its born to ensure the stability of the busy services with resilience design and has been serving sites with tens of millions of users for years.
go-zero (listed in CNCF Landscape: https://landscape.cncf.io/?selected=go-zero) is a web and rpc framework with lots of builtin engineering practices. Its born to ensure the stability of the busy services with resilience design and has been serving sites with tens of millions of users for years.
go-zero contains simple API description syntax and code generation tool called goctl
. You can generate Go, iOS, Android, Kotlin, Dart, TypeScript, JavaScript from .api files with goctl
.
At the beginning of 2018, we decided to re-design our system, from monolithic architecture with Java+MongoDB to microservice architecture. After research and comparison, we chose to:
By designing the microservice architecture, we expected to ensure stability, as well as productivity. And from just the beginning, we have the following design principles:
After almost half a year, we finished the transfer from a monolithic system to microservice system and deployed on August 2018. The new system guaranteed business growth and system stability.
go-zero is a web and rpc framework that integrates lots of engineering practices. The features are mainly listed below:
As below, go-zero protects the system with a couple of layers and mechanisms:
Run the following command under your project:
go get -u github.com/zeromicro/go-zero
full examples can be checked out from below:
install goctl
goctl
can be read as go control
. goctl
means not to be controlled by code, instead, we control it. The inside go
is not golang
. At the very beginning, I was expecting it to help us improve productivity, and make our lives easier.
# for Go
go install github.com/zeromicro/go-zero/tools/goctl@latest
# For Mac
brew install goctl
# docker for amd64 architecture
docker pull kevinwan/goctl
# run goctl like
docker run --rm -it -v `pwd`:/app kevinwan/goctl goctl --help
# docker for arm64 (M1) architecture
docker pull kevinwan/goctl:latest-arm64
# run goctl like
docker run --rm -it -v `pwd`:/app kevinwan/goctl:latest-arm64 goctl --help
make sure goctl is executable.
create the API file, like greet.api, you can install the plugin of goctl in vs code, api syntax is supported.
type (
Request {
Name string `path:"name,options=[you,me]"` // parameters are auto validated
}
Response {
Message string `json:"message"`
}
)
service greet-api {
@handler GreetHandler
get /greet/from/:name(Request) returns (Response)
}
the .api files also can be generated by goctl, like below:
goctl api -o greet.api
generate the go server-side code
goctl api go -api greet.api -dir greet
the generated files look like:
greet
etc
greet-api.yaml // configuration file
greet.go // main file
internal
config
config.go // configuration definition
handler
greethandler.go // get/put/post/delete routes are defined here
routes.go // routes list
logic
greetlogic.go // request logic can be written here
svc
servicecontext.go // service context, mysql/redis can be passed in here
types
types.go // request/response defined here
greet.api // api description file
the generated code can be run directly:
cd greet
go mod init
go mod tidy
go run greet.go -f etc/greet-api.yaml
by default, its listening on port 8888, while it can be changed in the configuration file.
you can check it by curl:
curl -i http://localhost:8888/greet/from/you
the response looks like below:
HTTP/1.1 200 OK
Date: Sun, 30 Aug 2020 15:32:35 GMT
Content-Length: 0
Write the business logic code
Generate code like Java, TypeScript, Dart, JavaScript, etc. just from the api file
goctl api java -api greet.api -dir greet
goctl api dart -api greet.api -dir greet
...
Join the chat via https://discord.gg/4JQvC5A4Fe
go-zero enlisted in the CNCF Cloud Native Landscape.
If you like or are using this project to learn or start your solution, please give it a star. Thanks!