Generate RESTful services using GRPC gateway
summary
Uses the protoc gRPC-Gateway plugin to generate a reverse-proxy that translates HTTP/JSON to protobuf/gRPC so one service serves both APIs, saving the duplicate-implementation cost. Requires adding google/api/annotations.proto and google.api.http annotations in proto files and running protoc with the gateway and grpc generators. Two deployment modes are shown: in-process vs proxy server (streaming requires the separate proxy). A HelloWorld proxy is generated and runs successfully.
AI-written summary · about
chapters (5)
- 0:00Start
- 0:55Introduction
- 1:42How does it work?
- 3:06Demonstration Hello World gRPC-Gateway
- 4:14References
related talks
20mWriting REST Services for the gRPC-curious
24mWriting RESTful APIs Using gRPC-Gateway
31mWriting REST Services for the gRPC curious
07mGRPC & Go
06mInteratively Migtrating an HTTP Svc to Go
21mExposing gRPC With Confidence: A Kubernetes-First API Gateway Approach
37mgRPC Intro
13mFrom Writing REST to Writing gRPC
