~/talk

Writing RESTful APIs Using gRPC-Gateway

Talkat gRPConf India 2025 · on Wednesday, 2025-11-19· at 15:10· Badaam Saat / Balla - 4th Floor· [api-design]
slides:none on file

gRPC-Gateway generates a reverse proxy that transcodes JSON HTTP requests to gRPC calls and back, demonstrated by a Go Hello World service with gRPC on port 50051 and an HTTP gateway on port 8800. The demo uses buf to generate code, imports google/api/annotations.proto, maps RPC methods to endpoints like post /v1/hello via inline annotations or external YAML, supports multiple HTTP bindings for one RPC, auto-generates OpenAPI docs, translates gRPC status codes to HTTP, and exposes server streaming as NDJSON streaming.

AI-written summary · about

  1. 0:00gRPC-Gateway intro
  2. 1:06What is gRPC-Gateway
  3. 3:37gRPC-Gateway request lifecycle
  4. 5:42Configuring HTTP mappings
  5. 7:30Inline REST annotations
  6. 9:13Multiple HTTP bindings
  7. 10:40Demo: Hello World service
  8. 13:50Code generation with protoc/buf
  9. 14:55Running gRPC + REST servers
  10. 17:04Advanced gRPC-Gateway features
  11. 17:26Custom HTTP method/path mapping
  12. 18:30Streaming support
  13. 20:40Error handling in gRPC/REST
  14. 22:06Key takeaways
  15. 23:12Resources & contributions
~/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.