tool

gRPC Gateway

gRPC Gateway is a plugin for the Google gRPC framework that generates a reverse-proxy server that translates RESTful HTTP/JSON API calls into gRPC. It allows developers to expose gRPC services as RESTful APIs, enabling clients that don't support gRPC (like web browsers or mobile apps) to interact with gRPC backends using standard HTTP/JSON. This tool is built on top of the protoc compiler and uses protocol buffer annotations to define REST mappings.

Also known as: grpc-gateway, gRPC-Gateway, grpc gateway, gRPC gateway, GRPC Gateway
🧊Why learn gRPC Gateway?

Developers should use gRPC Gateway when they need to provide both gRPC and REST APIs for the same service, such as in microservices architectures where internal services communicate via gRPC for efficiency, but external clients require RESTful interfaces. It's particularly useful for building polyglot systems, supporting web and mobile applications that rely on HTTP/JSON, while maintaining the performance benefits of gRPC internally. This reduces code duplication and simplifies API management by generating the REST proxy automatically from protocol buffer definitions.

Compare gRPC Gateway

Learning Resources

Related Tools

Alternatives to gRPC Gateway