Upgrade to Pro — share decks privately, control downloads, hide ads and more …

gRPC-Fullstack

Posedio
January 25, 2023

 gRPC-Fullstack

Posedio

January 25, 2023
Tweet

More Decks by Posedio

Other Decks in Programming

Transcript

  1. RPC • Procedures executed in different address space coded as

    normal procedure call • Programmer does not explicitly code the details of the remote interaction • Typically implemented via a request-response message- passing system
  2. Representational state transfer • Standard way of communication between backend-frontend

    services today • RESTful systems - stateless and separate concerns of client and server • A request usually consists of: HTTP verb, header, path to resource, optional message body
  3. REST vs RPC? • RPC designed for actions, REST is

    resource-centric • RPC executes procedures and commands with ease, works on conectionless or connection- oriented protocols (TCP/UDP) • REST uses HTTP to communicate (application level protocol)
  4. gRPC • Open source high performance RPC • Runs in

    any environment • Efficiently connect services in and across data centers with pluggable support for load balancing, tracing health checking and authentication • Uses HTTP/2 for transportation and Protocol Buffers as the interface description language
  5. Load balancing • Proxy - distributes the RPC call to

    one of the available backend servers • Client-side - client aware of multiple backend servers and chooses one