~/talk

Generate RESTful services using GRPC gateway

Talkat GopherCon Europe 2022 · 2022-07-28..07-31· [api-design, go]
slides:none on file

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

  1. 0:00Start
  2. 0:55Introduction
  3. 1:42How does it work?
  4. 3:06Demonstration Hello World gRPC-Gateway
  5. 4:14References
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.