grpc-python

Concepts and Usage of gRPC in Python

View on GitHub

—————– gRPC —————–

WHAT is gRPC?

WHY gRPC is better?

HOW gRPC works?

RPC Workflow

  1. Client is configured with client stub and instance of RPC runtime to execute.
  2. Client stub will be processed by passing parameters, the request along with metadata will be packed by the client stub. Client stubs also triggers local RPC runtime to process the metadata to server stub.
  3. The RPC runtime manages in transmission of messages between client and server using the generated buffer code which will help in serializing/deserializing the transmitted message.
  4. Upon completing the server procedure call, the server stub packs the message and triggers RPC runtime to perform the transmission to client
  5. The transport layer (RPC Runtime) at server will send the message to RPC Runtime at client which will carry forward the deserialized message to client stub.
  6. The client stub unpacks the message parameters and execution process will return to caller method.

WHEN gRPC was introduced?

API Timeline

References