qmetrics.net

go-zero

Cloud-native Go microservices and RPC framework

go-zero is a Go web and RPC framework with code generation, built-in resilience middleware, and tooling aimed at stable high-traffic services.

Overview

go-zero combines REST-style APIs and RPC in one Go framework oriented toward microservice deployments. It embeds practices for timeout chains, concurrency limits, rate limiting, adaptive circuit breaking, and load shedding so services can stay up under heavy load with minimal manual tuning.

The goctl tool reads concise API and proto definitions and generates Go server and client code, with optional output for mobile and web client languages. Handlers get automatic request validation, metrics hooks, caching helpers, and patterns compatible with standard net/http routing.

Services can participate in service mesh style discovery and balancing, including Kubernetes DNS-based RPC targets that resolve EndpointSlices in-cluster. The framework documents quick-start flows from an API file to a runnable HTTP server, plus guidance for AI coding assistants to invoke goctl directly or through an optional MCP wrapper.

Design goals stated by the authors emphasize simplicity, high availability under concurrency, failure-oriented protections, and extension through middleware. The project appears in the CNCF landscape as a microservices framework for Go teams building production APIs and RPC backends.

Key features

  • goctl API and RPC generation
  • Adaptive circuit breakers
  • Rate limiting and load shedding
  • Automatic request validation
  • Built-in metrics and middleware
  • Kubernetes RPC discovery
  • Multi-language client codegen
  • AI assistant workflow docs

Use cases

  • High-traffic REST APIs
  • Internal microservice RPC
  • Kubernetes-native Go services
  • Rapid API prototyping with goctl
  • Resilient backend modernization

Tags

Similar software

FastAPI

Python web framework for building APIs with type hints

FastAPI is a Python web framework for building APIs using standard type hints. It builds on Starlette and Pydantic and generates interactive OpenAPI documentation for the endpoints you define.

★ 105.1k⟳ 9 days agoMIT

NestJS

Progressive TypeScript framework for Node.js backends

Nest organizes Node server apps with modules, dependency injection, and first-party packages for auth, data, queues, and observability.

★ 77.2k⟳ todayMIT

OkHttp

HTTP client for JVM, Android, and GraalVM

OkHttp is an HTTP client library tuned for efficient networking on Android, Java, and GraalVM native images. It offers synchronous and asynchronous call APIs with a fluent request builder.

★ 47.1k⟳ yesterdayApache-2.0
Frameworks & PlatformsDesktop/CLI app

gRPC

Cross-language remote procedure call framework

gRPC is an RPC framework that lets client and server programs communicate transparently and supports building connected, multi-language systems.

★ 45.5k⟳ todayApache-2.0

tRPC

End-to-end typesafe TypeScript APIs without code generation

tRPC helps teams define server procedures and call them from clients with full TypeScript types for inputs, outputs, and errors—no schemas or codegen step.

★ 40.9k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

Hono

Lightweight web framework on Web Standards

Hono is a small web framework built on Web Standards that runs on Cloudflare Workers, Deno, Bun, Node.js, AWS Lambda, and other JavaScript runtimes with the same application code.

★ 33.1k⟳ yesterdayMIT