Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
gRPCの概要について理解できるスライド
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Hiromu Takahashi
April 04, 2024
67
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
gRPCの概要について理解できるスライド
以前登壇したLTで使用したスライド
Hiromu Takahashi
April 04, 2024
Transcript
9 slides
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/
More Decks by Hiromu Takahashi
See All by Hiromu Takahashi
Spring Bootでの定数の扱い
tk_hirom
0
340
触って理解するElasticsearch 1
tk_hirom
0
37
Featured
See All Featured
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.8k
Into the Great Unknown - MozCon
thekraken
41
2.8k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
500
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.2k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
2
560
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1.1k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
670
How to train your dragon (web standard)
notwaldorf
96
6.9k
Paper Plane
katiecoart
PRO
6
55k