Writing REST Services for the gRPC curious
summary
Demonstrates a reverse proxy that translates JSON HTTP calls into protobuf gRPC requests using the gRPC-Gateway, generated by a protoc plugin; generates an OpenAPI/Swagger UI, supports server-side streaming over REST, and maps protobuf well-known types (timestamps, wrappers, Struct) to JSON. Shows live edits: adding a field and a new GET method, regenerating code, and the proxy immediately serving the updated JSON API. Also demos automatic field mask translation for PATCH and a pluggable custom HTTP error formatter; the examples compile and run.
AI-written summary · about
chapters (9)
- 0:00Start
- 2:07Protocol Buffers
- 4:21Gfc Gateway Project
- 7:11User Service
- 13:33Get User Method
- 19:17Well-Known Types
- 22:55Field Mask
- 27:12Implementation
- 27:50How Do We Handle Errors in Our Service
related talks
20mWriting REST Services for the gRPC-curious
24mWriting RESTful APIs Using gRPC-Gateway
05mGenerate RESTful services using GRPC gateway
06mInteratively Migtrating an HTTP Svc to Go
13mFrom Writing REST to Writing gRPC
46mgRPC vs REST: let the battle begin!
21mExposing gRPC With Confidence: A Kubernetes-First API Gateway Approach
42mgRPC and Go: Developing Efficient and Type-Safe Services
