# zeromicro/go-zero

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/zeromicro-go-zero).**

32,675 stars · 4,282 forks · Go · mit

## Links

- GitHub: https://github.com/zeromicro/go-zero
- Homepage: https://go-zero.dev
- awesome-repositories: https://awesome-repositories.com/repository/zeromicro-go-zero.md

## Topics

`ai-native` `ai-native-development` `cloud-native` `code-generation` `framework` `gateway` `go` `golang` `grpc-gateway` `microservice` `microservice-framework` `microservices` `microservices-architecture` `rest-api` `restful` `restful-api` `rpc` `rpc-framework` `spec-driven-development` `web-framework`

## Description

This project is a comprehensive microservices development framework designed to build scalable, resilient backend systems. It provides a production-ready runtime that integrates stability patterns directly into the service architecture, ensuring consistent performance and reliability for both web and remote procedure call services even under heavy traffic conditions.

The framework centers on an interface-first development model, utilizing a domain-specific language to define service contracts that serve as the single source of truth. This approach powers an extensive code generation ecosystem that automates the creation of type-safe client and server implementations, effectively eliminating manual boilerplate. To maintain system stability, the framework includes adaptive circuit breakers and dynamic load-shedding controls that monitor real-time metrics to prevent cascading failures and protect core services during periods of high demand.

Beyond its core runtime capabilities, the project offers a robust command-line toolchain that streamlines the entire development lifecycle. This includes automated project scaffolding, static configuration binding for type-safe initialization, and a middleware-based request pipeline for handling cross-cutting concerns like authentication and logging. The environment also supports distributed tracing to monitor request lifecycles and integrates artificial intelligence to assist in generating compliant code and implementing complex business logic.

## Tags

### Web Development

- [Microservices Frameworks](https://awesome-repositories.com/f/web-development/microservices-frameworks.md) — Provides a comprehensive toolkit for building scalable backend services with integrated stability and communication patterns.
- [Interface Definition Languages](https://awesome-repositories.com/f/web-development/interface-definition-languages.md) — Uses a domain-specific language to define service contracts as the source of truth.
- [API Client Generators](https://awesome-repositories.com/f/web-development/api-client-generators.md) — Creating consistent client and server code from interface definitions to eliminate manual boilerplate and ensure type safety across services.
- [Middleware Pipelines](https://awesome-repositories.com/f/web-development/middleware-pipelines.md) — Processes network traffic through interceptors for authentication, logging, and validation.

### DevOps & Infrastructure

- [Distributed Computing Frameworks](https://awesome-repositories.com/f/devops-infrastructure/distributed-computing-frameworks.md) — Provides a production-ready runtime environment designed for high performance and reliability under heavy network traffic.
- [Load Shedding Systems](https://awesome-repositories.com/f/devops-infrastructure/load-shedding-systems.md) — Drops incoming requests dynamically based on current system health metrics to protect core service stability under extreme load conditions.

### Software Engineering & Architecture

- [Resilience Patterns](https://awesome-repositories.com/f/software-engineering-architecture/resilience-patterns.md) — Implements adaptive circuit breakers to prevent cascading failures during high traffic.
- [Distributed Tracing](https://awesome-repositories.com/f/software-engineering-architecture/distributed-tracing.md) — Injects metadata into request headers to track network call lifecycles across services.
- [Interface Definition Toolchains](https://awesome-repositories.com/f/software-engineering-architecture/interface-definition-toolchains.md) — Transforms declarative service definitions into boilerplate-free client and server implementations across multiple languages.
- [Load Shedding](https://awesome-repositories.com/f/software-engineering-architecture/load-shedding.md) — Drops incoming requests dynamically based on system health to protect service stability.
- [Microservices Architectures](https://awesome-repositories.com/f/software-engineering-architecture/microservices-architectures.md) — Provides architectural patterns and structural support for building independent, scalable service-oriented systems.

### Development Tools & Productivity

- [Code Generators](https://awesome-repositories.com/f/development-tools-productivity/code-generators.md) — Create client and server code from interface definition files using command-line tools that automate boilerplate, parameter validation, and the integration of services across multiple programming languages. ([source](https://cdn.jsdelivr.net/gh/zeromicro/go-zero@master/README.md))
- [Command Line Interfaces](https://awesome-repositories.com/f/development-tools-productivity/command-line-interfaces.md) — Provides a CLI to automate development tasks, project scaffolding, and build processes. ([source](https://go-zero.dev/reference/))
- [Command Line Development Environments](https://awesome-repositories.com/f/development-tools-productivity/command-line-development-environments.md) — Provides a terminal-based workflow that automates project scaffolding and service configuration.
- [Configuration Management](https://awesome-repositories.com/f/development-tools-productivity/configuration-management.md) — Maps external configuration files directly into typed structures for service initialization.
- [Project Scaffolding Tools](https://awesome-repositories.com/f/development-tools-productivity/project-scaffolding-tools.md) — Automates the creation of standard directory structures and configuration files to accelerate project initialization.

### Artificial Intelligence & ML

- [AI-Assisted Development Tools](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-assisted-development-tools.md) — Integrating artificial intelligence into the development lifecycle to automate the implementation of complex business logic and maintain coding standards.
- [AI Development Assistants](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-development-assistants.md) — Connects AI tools to generate compliant code and simplify complex logic. ([source](https://cdn.jsdelivr.net/gh/zeromicro/go-zero@master/README.md))
