awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
cloudwego avatar

cloudwego/hertz

0
View on GitHub↗
7,279 星标·629 分支·Go·Apache-2.0·11 次浏览www.cloudwego.io↗

Hertz

Hertz is a high-performance Go HTTP framework designed for building scalable microservices, RESTful APIs, and AI applications. It functions as a high-performance web server and a communication framework for microservices, utilizing non-blocking I/O and zero-copy memory management to handle high-concurrency traffic.

The project distinguishes itself through a microservices communication toolkit that supports high-efficiency remote procedure calls via gRPC and Thrift protocols. It implements an asynchronous middleware engine based on an onion model, allowing for a pluggable request-response pipeline.

The framework covers a broad range of capabilities, including trie-based request routing, request parameter validation, and multi-format response rendering. It provides integrated service governance and discovery, observability tools for distributed tracing and metrics, and automated API documentation via the Swagger standard.

Developer productivity is supported through interface-driven code generation for service boilerplate and network-free unit testing for request handlers.

Features

  • High-Performance HTTP Servers - Provides a high-performance Go framework optimized for low-latency, high-throughput web service and RESTful API delivery.
  • Memory Reference Counting - Implements zero-copy memory management using reference counting to handle high-concurrency traffic with minimal memory overhead.
  • Kernel-Level Data Splicing - Uses zero-copy APIs to send and receive data between processes and the kernel, avoiding memory buffer duplication.
  • Interface Definition Code Generation - Generates server skeletons and client stubs from Thrift or Protobuf IDL files to ensure type safety.
  • Server Boilerplate Generators - Automatically generates server-side boilerplate code from API schema definitions to ensure type safety.
  • Thrift Service Implementations - Implements server-side service logic to process remote procedure calls using the Apache Thrift protocol.
  • High-Concurrency Networking - Utilizes non-blocking I/O and asynchronous calls to process massive volumes of concurrent network requests with minimal latency.
  • High-Performance Networking - Optimizes throughput and latency using non-blocking I/O, zero-copy data transfer, and customizable network libraries.
  • gRPC Service Implementations - Implements gRPC services for defining and executing high-efficiency remote procedure calls.
  • Reactor Pattern Event Distribution - Employs a reactor-based event loop to distribute network events to a worker pool for high-performance request handling.
  • URI Handlers - Matches URIs to handler functions using a high-performance routing tree with parameter matching.
  • Network Event Monitoring Schedulers - Implements a high-performance event monitoring scheduler to trigger asynchronous network I/O operations.
  • Asynchronous Middleware Engines - Implements an asynchronous middleware engine to process requests through a sequence of non-blocking functions.
  • Interceptor Middleware - Implements a pluggable pipeline for injecting cross-cutting concerns like authentication and logging into the request lifecycle.
  • Reference-Counted Memory Blocks - Uses memory blocks and reference counting to move data between the network and application without duplicating buffers.
  • Microservice Architectures - Provides a toolkit for building scalable backend systems with support for gRPC, Thrift, and service discovery.
  • Custom Middleware Implementations - Allows inserting custom processing steps before and after handlers using an onion-model architecture.
  • Go Web Frameworks - Acts as a high-performance Go web framework for building scalable microservices and AI applications.
  • Microservices Frameworks - Provides a comprehensive toolkit for high-efficiency remote procedure calls using gRPC and Thrift protocols.
  • Onion-Model Pipelines - Utilizes an onion-model architecture where requests and responses flow through concentric middleware layers.
  • REST API Frameworks - Provides a framework for mapping HTTP routes to handlers with integrated request validation and automated Swagger documentation.
  • Trie-Based Routing Engines - Employs a high-performance routing engine that organizes path patterns into trie structures for efficient URI matching.
  • HTTP Routing - Directs incoming HTTP traffic to specific handlers using static routes, parameter-based routes, and priorities.
  • AI Application Frameworks - Provides a structured framework to organize model logic and data processing for building AI-native applications.
  • Data Serialization and Parsing - Processes Thrift and Protobuf definitions for high-performance structured data serialization.
  • Graceful Shutdowns - Ensures clean termination by allowing all in-flight requests to complete before shutting down the server process.
  • Pluggable Transport Layers - Provides a modular interface for swapping underlying network transport libraries and protocols to optimize performance.
  • Connection Multiplexing - Simulates multiple virtual connections over a single persistent connection to reduce scheduling overhead and increase efficiency.
  • Custom Protocol Implementations - Provides a pluggable interface to register and implement custom communication protocols.
  • Dynamic Service Discovery - Provides mechanisms for mapping logical service names to physical network addresses to enable dynamic microservices communication.
  • Protocol Version Selectors - Supports various versions of the HTTP protocol and allows for custom protocol extensions.
  • Multi-Protocol - Supports multiple communication protocols simultaneously to enable interaction across different service architectures.
  • Service Governance - Coordinates service discovery, registration, and load balancing to maintain stability within a microservices environment.
  • Incremental Stream Processing - Processes large payloads and proxy requests incrementally to reduce memory overhead and latency.
  • Request Authentication Middleware - Features an asynchronous middleware engine that intercepts requests to enforce authentication via tokens and API keys.
  • Automated API Documentation - Automatically generates technical API specifications and documentation from source code using the Swagger standard.
  • Reactor Pattern Event Loops - Distributes network events to a worker pool using a reactor-based event monitoring scheduler to handle high concurrency.
  • Request Interception Middleware - Implements architectural patterns for routing traffic through security and logging layers before core business processing.
  • Request Middleware - Provides reusable middleware components to handle cross-cutting concerns like logging and error recovery.
  • Request Validation - Provides utilities for validating incoming HTTP request parameters, queries, and cookies against defined schemas.
  • Application Performance Monitoring - Tracks execution metrics to monitor the health and response times of service requests.
  • Distributed Tracing - Traces requests across microservice boundaries using telemetry standards to identify system bottlenecks.
  • Metric and Performance Monitors - Monitors system health by tracking metrics, traces, and logs using industry-standard tools.
  • Observability Tool Integrations - Injects custom providers for logging, tracing, and metrics via a standardized observability interface.
  • Service Observability Integrations - Integrates distributed tracing, performance metrics, and structured logging to monitor the health of Go services.
  • Custom Log Writers - Provides a custom logging interface to control how system events and errors are recorded and formatted.
  • Network-Bypass - Tests request handlers using internal interfaces to bypass the network stack and increase execution speed.
  • Payload Type Mapping - Maps incoming request payloads to structured data types for consistent processing and validation.
  • Response Formatting - Produces output in multiple formats, including JSON, HTML, and Protobuf, to meet diverse client requirements.
  • Response Rendering - Transforms internal data structures into formatted responses for delivery via a unified rendering interface.
  • Static Asset Serving - Provides web server capabilities optimized for delivering static files and assets directly to clients.
  • 微服务框架 - High-performance HTTP framework for microservices.

Star 历史

cloudwego/hertz 的 Star 历史图表cloudwego/hertz 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

cloudwego/hertz 是做什么的?

Hertz is a high-performance Go HTTP framework designed for building scalable microservices, RESTful APIs, and AI applications. It functions as a high-performance web server and a communication framework for microservices, utilizing non-blocking I/O and zero-copy memory management to handle high-concurrency traffic.

cloudwego/hertz 的主要功能有哪些?

cloudwego/hertz 的主要功能包括:High-Performance HTTP Servers, Memory Reference Counting, Kernel-Level Data Splicing, Interface Definition Code Generation, Server Boilerplate Generators, Thrift Service Implementations, High-Concurrency Networking, High-Performance Networking。

cloudwego/hertz 有哪些开源替代品?

cloudwego/hertz 的开源替代品包括: line/armeria — Armeria is a Netty-based microservice framework used for building high-performance asynchronous services. It functions… aws-powertools/powertools-lambda-python — AWS Powertools for Python is a utility framework designed for building production-ready Python functions on AWS… connectrpc/connect-go — Connect-go is a library for building type-safe remote procedure call services that are wire-compatible with gRPC and… go-kratos/kratos — Kratos is a toolkit for building cloud-native microservices in Go. It provides a comprehensive suite of framework… dodyg/practical-aspnetcore — This project is a comprehensive sample library and implementation guide for ASP.NET Core. It provides a collection of… prefecthq/fastmcp — FastMCP is a Python framework designed for building servers that expose functions, resources, and prompts to AI models…

Hertz 的开源替代方案

相似的开源项目,按与 Hertz 的功能重合度排序。
  • line/armerialine 的头像

    line/armeria

    5,115在 GitHub 上查看↗

    Armeria is a Netty-based microservice framework used for building high-performance asynchronous services. It functions as a multi-protocol RPC server capable of exposing gRPC, Thrift, and REST services on a single unified port. The project is distinguished by its ability to run diverse communication protocols simultaneously and its integrated RPC debugging web console, which allows for the discovery and invocation of remote procedure calls via JSON. It also includes a gRPC to JSON transcoder to enable web client compatibility with Protobuf services. The framework provides a comprehensive sui

    Java
    在 GitHub 上查看↗5,115
  • aws-powertools/powertools-lambda-pythonaws-powertools 的头像

    aws-powertools/powertools-lambda-python

    3,267在 GitHub 上查看↗

    AWS Powertools for Python is a utility framework designed for building production-ready Python functions on AWS Lambda. It provides a comprehensive suite of tools for observability, event parsing, routing, and idempotency management to streamline the development of serverless applications. The project distinguishes itself through specialized capabilities for event-driven architectures and AI agent orchestration. It enables the implementation of AI agents by exposing functions as tools via OpenAPI schemas and managing conversation states. Additionally, it features an idempotency library that p

    Pythonawsaws-lambdalambda
    在 GitHub 上查看↗3,267
  • go-kratos/kratosgo-kratos 的头像

    go-kratos/kratos

    25,743在 GitHub 上查看↗

    Kratos is a toolkit for building cloud-native microservices in Go. It provides a comprehensive suite of framework primitives, including a dedicated toolset for API-first development using Protobuf to generate server and client code for gRPC and HTTP. The project is distinguished by its pluggable service infrastructure, which allows for the swapping of configuration stores, service registries, and data encoding formats. It utilizes a composable middleware pipeline to inject cross-cutting concerns such as authentication, request validation, and circuit breaking into the service flow. The frame

    Goaiarchitecturecloud-native
    在 GitHub 上查看↗25,743
  • connectrpc/connect-goconnectrpc 的头像

    connectrpc/connect-go

    3,963在 GitHub 上查看↗

    Connect-go is a library for building type-safe remote procedure call services that are wire-compatible with gRPC and HTTP. It provides a Go implementation of Protocol Buffers for structured data exchange, enabling the creation of multi-protocol RPC servers and generated type-safe clients. The framework is distinguished by its polyglot protocol support, allowing a single server handler to serve requests using several different protocols simultaneously over HTTP. This includes the ability to toggle between different transport protocols for the same service and the use of pluggable content negot

    Go
    在 GitHub 上查看↗3,963
查看 Hertz 的所有 30 个替代方案→