talira

A cloud-native Go microservices framework with a code generation CLI

open sourceMITfree

go-zero is a web and RPC framework for Go microservices with resilience built in: chained timeout control, concurrency control, rate limiting, adaptive circuit breaking and adaptive load shedding work without configuration. Its CLI, goctl, generates the Go API and RPC server code from a simple .api definition, and client code for iOS, Android, Kotlin, Dart, TypeScript and JavaScript. It validates request parameters automatically and ships middleware and toolkits for microservice management and concurrency. It's listed in the CNCF Landscape.

Problems it solves

  • build Go microservices that stay up under heavy traffic without wiring circuit breakers myself
  • generate a Go API server and its clients from one API definition
  • add rate limiting and load shedding to Go services without extra configuration
  • a Go framework for both HTTP APIs and gRPC services

Features

  • adaptive circuit breaker, load shedding, rate limiting and timeout control built in
  • goctl code generation for API and RPC services from .api files
  • client code generation for iOS, Android, Kotlin, Dart, TypeScript and JavaScript
  • automatic request parameter validation
  • built-in middleware usable in other frameworks

Alternatives

The same job

These do what go-zero does.

  1. Kratos Go microservices framework for the cloud-native era
  2. GoFr Opinionated Go framework for microservices with built-in observability and Kubernetes focus
  3. Gin The fastest full-featured HTTP web framework for Go
  4. go-restful Lean Go package for building REST-style web services
  5. chi Lightweight, composable HTTP router for Go services built on net/http
  6. Iris Web framework for Go whose builder makes out-of-order setup a compile error

Compare go-zero with the top 3