Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
gRPCの概要について理解できるスライド
Search
Hiromu Takahashi
April 04, 2024
0
44
gRPCの概要について理解できるスライド
以前登壇したLTで使用したスライド
Hiromu Takahashi
April 04, 2024
Tweet
Share
More Decks by Hiromu Takahashi
See All by Hiromu Takahashi
Spring Bootでの定数の扱い
tk_hirom
0
240
触って理解するElasticsearch 1
tk_hirom
0
29
Featured
See All Featured
Facilitating Awesome Meetings
lara
57
6.8k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
1
58
How STYLIGHT went responsive
nonsquared
100
6k
Utilizing Notion as your number one productivity tool
mfonobong
3
220
Abbi's Birthday
coloredviolet
1
4.8k
Everyday Curiosity
cassininazir
0
130
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
160
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
150
Transcript
gRPC超入門(1/n)
目的 実務で使用する際に、困らない程度の理解 何回かに分けて発表を行う
gRPCとは • Googleが作成した新しい通信プロトコル • 高速通信が得意(REST APIの7~10倍) ◦ HTTPプロトコルがHTTP2 ◦ バイト列でデータをやり取り
• やり取りするデータ型をファイルに定義しておける • 同時に多くのリクエストを捌ける(ストリーミング通信)
gRPCの使い方 1. gRPC利用に必要なライブラリをインストール 2. Protocol Buffersの定義ファイル(protoファイル)を作成 3. ファイルからコード(インターフェイス)を生成 4. そのインターフェイスを用いてControllerを作成
Protocol Buffersとは protoファイルに定義してあるデータ型のデータを、シリアライズしてバイト列にしてくれる もの
デメリット 実装に時間がかかる REST APIと異なりまだ浸透していない。そのため、サードパーティのフレームワークに gRPCを用いた開発のサポート機能が充実していない
gRPCの利用シーン • マイクロサービス ◦ 素早い通信速度が求められるから • 多(プログラミング)言語システム ◦ 様々な言語のコード生成サポートがあるため •
リアルタイムのストリーミング ◦ HTTP2を採用しているため双方向ストリーミングが可能 • 低電力低帯域ネットワーク ◦ やり取りするデータがバイト文字列だから
次回以降の予定 • 実際に動くものを作成しそれを示しつつ基本的な使用方法を共有 • 実務での採用理由
参考文献 https://learn.microsoft.com/ja-jp/dotnet/architecture/grpc-for-wcf-developers/why-gr pc https://knowledge.sakura.ad.jp/24059/