What is gRPC (Google Remote Procedure Call)

  1. Unary: when the client sends a single request and receives a single response.
  2. Server-streaming: when the server responds with a stream of messages to a client’s request. Once all the data is sent, the server additionally delivers a status message to complete the process.
  3. Client-streaming: when the client sends a stream of messages and in turn receives a single response message from the server.
  4. Bidirectional-streaming: the two streams (client and server) are independent, meaning that they both can transmit messages in any order. The client is the one who initiates and ends the bidirectional streaming.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store