Anzeige

Build your next REST API with gRPC

APIs at Google um Google
8. Nov 2019
Anzeige

Más contenido relacionado

Presentaciones para ti(20)

Similar a Build your next REST API with gRPC(20)

Anzeige
Anzeige

Build your next REST API with gRPC

  1. Build your next REST API with gRPC Tim Burks (timburks@google.com, @timburks)
  2. timburks@google.com @timburks Electronic Design Automation Mobile Apps APIs Hello!
  3. Projects at Google gnostic (OpenAPI Compiler) gRPC-Swift GAPICs for Google APIs API Lifecycle
  4. 1 What is gRPC?
  5. “gRPC is a modern open source high performance RPC framework that can run in any environment. It can efficiently connect services in and across data centers with pluggable support for load balancing, tracing, health checking and authentication. It is also applicable in last mile of distributed computing to connect devices, mobile applications and browsers to backend services.” grpc.io
  6. How a gRPC service is called: ALWAYS specification-first. Clients are generated from API descriptions written in the Protocol Buffer language.
  7. How a gRPC service is built: ALWAYS specification-first. Service code is generated. Typically this generated code declares an interface that is implemented in language-native data structures and patterns.
  8. 2 Why implement your API with gRPC?
  9. APIs have a native language.
  10. gRPC scales to multiple programming languages. Java Service Python Service Go Service C++ Service gRPC Server gRPC Stub gRPC Stub gRPC Stub gRPC Stub gRPC Server gRPC Server gRPC Server gRPC Stub
  11. gRPC scales to distributed systems.
  12. gRPC is open and extensible.
  13. gRPC has a style guide.
  14. 3 Implementing OpenAPI Services with gRPC
  15. Build a gRPC service, get a free REST API! Originally defined in google/api/http.proto Now documented in AIP-127: HTTP and gRPC Transcoding Implemented by gRPC-gateway, Envoy, etc.
  16. ? transcoding
  17. gnostic-grpc (end-to-end example)
  18. @LorenzHoWe @no_d_here @timburks
Anzeige