加载中
正在获取最新内容,请稍候...
正在获取最新内容,请稍候...
gRPC-Gateway is a plugin of the Protobuf compiler that generates a reverse-proxy server which translates a RESTful HTTP API into gRPC. This allows browser clients to interact with gRPC services using standard HTTP/JSON calls.
gRPC-Gateway is an open-source tool to expose gRPC services as RESTful JSON APIs. It simplifies client-side integration for environments where native gRPC is not feasible, such as browser-based applications.
Direct gRPC calls are not easily made from web browsers or standard HTTP clients. gRPC-Gateway solves this by providing a generated HTTP API layer that acts as a bridge to your gRPC services, enabling broader client compatibility.
Generates a reverse proxy from gRPC service definitions (.proto files) that serves a RESTful HTTP API.
Automatically translates incoming HTTP/JSON requests into gRPC calls and outgoing gRPC responses back into JSON.
Supports the gRPC HTTP transcoding specification, allowing flexible mapping of HTTP methods and paths to gRPC methods.
gRPC-Gateway can be applied in various scenarios where gRPC services need to be accessed by non-gRPC clients.
Expose backend microservices built with gRPC as a public REST API for external consumers or frontend applications.
Simplifies external integration and widens the range of compatible clients.
Allow web browsers to directly interact with gRPC backend services using standard fetch or XHR calls.
Avoids the need for browser-specific gRPC client libraries or manual translation layers.
You might be interested in these projects
DataEase is an open-source business intelligence and data visualization tool designed for everyone, offering a powerful and accessible alternative to commercial BI software.
Kubernetes is a portable, extensible, open-source platform for managing containerized workloads and services, that facilitates both declarative configuration and automation. It's the leading system for automating deployment, scaling, and management of containerized applications.