~/talk

Writing REST Services for the gRPC curious

Talkat GopherCon UK 2019 · 2019-08-21..08-23· [api-design, go]
slides:none on file

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

  1. 0:00Start
  2. 2:07Protocol Buffers
  3. 4:21Gfc Gateway Project
  4. 7:11User Service
  5. 13:33Get User Method
  6. 19:17Well-Known Types
  7. 22:55Field Mask
  8. 27:12Implementation
  9. 27:50How Do We Handle Errors in Our Service
~/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.