--- lang: ja-jp breaks: true --- # gRPC の基礎 2021-09-15 ## gRPC の通信 > gRPC / MagicOnion 入門 (2) - 4 種類の通信方式 > https://blog.xin9le.net/entry/2017/06/11/182515 > Core concepts, architecture and lifecycle > https://www.grpc.io/docs/what-is-grpc/core-concepts/ * Protcol Buffers による言語非依存の通信定義 * 通信の種類を4種類に制限 * 単方向リクエスト/レスポンス(Unary RPCs) ![](https://i.imgur.com/z4EGigT.png) * サーバ=>クライアントストリーミング(Server Streaming RPCs) ![](https://i.imgur.com/isZyJDn.png) * クライアント=>サーバストリーミング(Client Streaming RPCs) ![](https://i.imgur.com/m01CZx0.png) * 双方向ストリーミング(Duplex Streaming RPCs/Bidirectional Streaming) ![](https://i.imgur.com/fH5usfy.png) ###### tags: `gRPC` `基礎`