This category covers building blocks for systems that run across many processes or machines: RPC frameworks, microservice frameworks and toolkits, consensus libraries, service discovery, API gateways, and peer-to-peer and messaging systems. Many of the best-known pieces of cloud infrastructure are written in Go, so several entries here are the libraries those systems are built on.
For RPC, grpc-go is the standard implementation of gRPC, and CloudWeGo's Kitex and smallnest/rpcx are alternatives with their own protocols and service governance. Microservice frameworks bundle RPC, configuration, discovery and code generation: go-zero includes the goctl generator, Kratos comes from Bilibili, and go-micro offers pluggable components. go-kit is a toolkit of patterns rather than a framework, and has been quiet since 2024. For consensus, hashicorp/raft and etcd-io/raft are widely used Raft implementations, and dragonboat implements multi-group Raft. lura is the core of the KrakenD API gateway, and the NATS server provides messaging and streaming.
Start with plain gRPC or HTTP and add a framework only when its code generation and conventions save real work across many services. Do not implement consensus yourself; build on etcd-io/raft or hashicorp/raft, or on etcd itself. For long-running business processes, a durable workflow engine such as Temporal may fit better than hand-written retries.
A web and rpc framework. It's born to ensure the stability of the busy sites with resilient design. Builtin goctl greatly improves the development productivity.
github.com/zeromicro/go-zeroGo 1.25+ 44 dependenciesv1.10.3updated 1d ago
A high-performance and strong-extensibility Golang RPC framework that helps developers build microservices. If the performance and extensibility are the main concerns when you develop microservices, Kitex can be a good choice.
github.com/cloudwego/kitexGo 1.20+ 24 dependenciesv0.16.4updated 12d ago
Fast and scalable distributed map/reduce system written in pure Go and Luajit, combining Go's high concurrency with Luajit's high performance, runs standalone or distributed.
github.com/chrislusf/gleamGo 1.25+ 26 dependenciesupdated 13d ago
Provide efficient, stable and secure file distribution and image acceleration based on p2p technology to be the best practice and standard solution in cloud native architectures.
A gossip protocol and OpenAPI 3.0 spec based decentralized microservice framework. Built-in go-doudou cli focusing on low-code and rapid dev can power up your productivity.
github.com/unionj-cloud/go-doudou/v2Go 1.25+ 75 dependenciesv2.5.13updated 6mo ago
Distributed lock family with one Go interface and five backends (filelock, flock, Redis, Postgres, etcd) — fencing tokens, semaphore mode, and observability hooks across all backends.
github.com/ubgo/lockGo 1.24+ No dependencies updated 20d ago