go-kratos/kratos
Fork: 4005 Star: 23288 (更新于 2024-10-26 02:29:48)
license: MIT
Language: Go .
Your ultimate Go microservices framework for the cloud-native era.
最后发布版本: v2.8.0 ( 2024-07-22 20:02:06)
Translate to: 简体中文
About Kratos
The name is inspired by the Greek-mythology-based game "God of War". It tells the adventures of Kratos becoming a god of war from a mortal and launching a god-killing slaughter.
Kratos is a microservice-oriented governance framework implemented by golang, which offers convenient capabilities to help you quickly build a bulletproof application from scratch, such as:
- The communication protocol is based on the HTTP/gRPC through the definition of Protobuf.
- Abstract transport layer support: HTTP / gRPC.
- Powerful middleware design, support: Tracing (OpenTelemetry), Metrics (Prometheus is default), Recovery and more.
- Registry interface able to be connected with various other centralized registries through plug-ins.
- The standard log interfaces ease the integration of the third-party log libs with logs collected through the Fluentd.
- Automatically support the selection of the content encoding with Accept and Content-Type.
- Multiple data sources are supported for configurations and dynamic configurations (use atomic operations).
- In the protocol of HTTP/gRPC, use the uniform metadata transfer method.
- You can define errors in protos and generate enums with protoc-gen-go.
- You can define verification rules in Protobuf supported by the HTTP/gRPC service.
- Swagger API is generated Automatically and embed Swagger UI endpoint can be started by adding Swagger plugin.
Kratos is accessible, powerful, and provides tools required for large, robust applications.
Learning Kratos
Kratos has the most extensive and thorough documentation and example library of all modern web application frameworks, making it a breeze to get started with the framework.
We also provide a modern template. This template should help reduce the work required to setup up modern projects.
Goals
Kratos boosts your productivity. With the integration of excellent resources and further support, programmers can get rid of most issues might encounter in the field of distributed systems and software engineering such that they are allowed to focus on the release of businesses only. Additionally, for each programmer, Kratos is also an ideal one learning warehouse for many aspects of microservices to enrich their experiences and skills.
Principles
- Simple: Appropriate design with plain and easy code.
- General: Cover the various utilities for business development.
- Highly efficient: Speeding up the efficiency of businesses upgrading.
- Stable: The base libs validated in the production environment have the characteristics of high testability, high coverage as well as high security and reliability.
- Robust: Eliminating misusing through high quality of the base libs.
- High-performance: Optimal performance excluding the optimization of hacking in case of unsafe.
- Expandability: Properly designed interfaces where you can expand utilities such as base libs to meet your further requirements.
- Fault-tolerance: Designed against failure, enhance the understanding and exercising of SRE within Kratos to achieve more robustness.
- Toolchain: Includes an extensive toolchain, such as the code generation of cache, the lint tool, and so forth.
Getting Started
Create a kratos playground through docker:
docker run -it --rm -p 8000:8000 --workdir /workspace golang
apt-get update && apt-get -y install protobuf-compiler
export GOPROXY=https://goproxy.io,direct
go install github.com/go-kratos/kratos/cmd/kratos/v2@latest && kratos upgrade
kratos new helloworld
cd helloworld/ && go mod tidy
kratos run
Use a browser to open and visit: http://localhost:8000/helloworld/kratos
, The kratos program is running!
If you need more, please visit the kratos documentation.
Security Vulnerabilities
If you discover a security vulnerability within Kratos, please send an e-mail to tonybase via go-kratos@googlegroups.com. All security vulnerabilities will be promptly addressed.
Community
Contributors
Thank you for considering contributing to the Kratos framework! The contribution guide can be found in the Kratos documentation.
License
The Kratos framework is open-sourced software licensed under the MIT license.
Acknowledgments
The following project had particular influence on kratos's design.
- go-kit/kit is a programming toolkit for building microservices in go.
- asim/go-micro a distributed systems development framework.
- google/go-cloud is go cloud development kit.
- zeromicro/go-zero is a web and rpc framework with lots of builtin engineering practices.
- beego/beego is a web framework including RESTful APIs, web apps and backend services.
最近版本更新:(数据更新于 2024-10-05 16:16:21)
2024-07-22 20:02:06 v2.8.0
2024-03-22 23:57:46 v2.7.3
2023-12-07 13:42:28 v2.7.2
2023-10-23 20:54:59 v2.7.1
2023-08-08 13:20:52 v2.7.0
2023-07-04 13:16:59 v2.6.3
2023-05-08 21:58:28 v2.6.2
2023-03-10 00:35:06 v2.6.1
2023-01-17 13:13:55 v2.5.4
2022-11-10 23:04:42 v2.5.3
主题(topics):
architecture, cloud-native, framework, generate, go, golang, grpc, http, kratos, microservice, microservices, protobuf
go-kratos/kratos同语言 Go最近更新仓库
2024-11-05 08:55:31 XTLS/Xray-core
2024-11-05 00:03:47 SagerNet/sing-box
2024-11-04 20:34:19 Permify/permify
2024-11-04 15:07:27 containerd/containerd
2024-11-03 20:10:56 flipped-aurora/gin-vue-admin
2024-11-03 00:46:25 dolthub/dolt