0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Udemyコース受講メモ:gRPC[C#] Master Class

Last updated at Posted at 2024-12-25

概要

UdemyのgRPC関連の下記コースを受講したメモ。
受講時間は約4時間で、gRPCの概要を掴むのによい。C#以外にもGoやPythonなど他言語向けのコースも用意されている。

内容

セクション1-3

  • Googleで公式にサポートされていない言語であっても、実際は他社やOSSコミュニティでサポートされている言語が多く存在
gRPC vs REST
比較項目 gRPC REST Notes
データフォーマット Protocol Buffers JSON
  • Protocol Buffersで定義されたメッセージは、Jsonと比較してデータ量が少なく、バイナリでの通信となるため、CPU負荷が小さく、高速
  • Protocol Buffersはスキーマが固定されているため、JSONと比較するとデータ構造の柔軟性が低い
プロトコル HTTP2 HTTP1 HTTP2はTCPコネクションを使いまわす、ヘッダーが圧縮されるなどの理由からHTTP1よりも性能がよい
通信方式 StreamingやBi directionalをサポート Unaryのみをサポート(Request/Responseのみ) 双方向の通信を行いたい場合はgRPCを選択
設計 自由 GET/POST/UPDATE/DELETE

セクション4以降

  • Unary, Server Streaming, Client Streaming, Bi-Directional Streamingの全てに関してハンズオン実施

  • ソースコードは下記からgit clone可能

参考リンク集

  • 公式HP
    各プログラミング言語に関する、ソースコードのサンプル、APIレファレンス、Githubのリポジトリが記載されている

  • 講師のBlog post

  • Microsoftのドキュメント

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?