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とConnect
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Shota Totsuka
June 01, 2024
370
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
gRPCとConnect
Shota Totsuka
June 01, 2024
More Decks by Shota Totsuka
See All by Shota Totsuka
Figma to Codeから Code to Figmaへ
totsukash
0
1.8k
コードレビューはCLAUDE.md/skillsに書け。同じ指摘を繰り返すな。
totsukash
20
20k
HITL実装によるマルチエージェント組織の設計パターン
totsukash
1
110
Claude Codeの知らない知識に立ち向かう
totsukash
1
1k
Claude Codeの知らない知識、ADK, A2Aを用いた プロダクト開発をClaude Codeで行う
totsukash
0
1.6k
Claude Code で Vibe Coding
totsukash
1
120
MCP, A2Aをプロダクトに組み込んで 開発している話
totsukash
1
62
Mastra活用|Text-to-SQLの実装と応用
totsukash
1
270
Bedrockでのプロンプト管理戦略
totsukash
3
240
Featured
See All Featured
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
480
Evolving SEO for Evolving Search Engines
ryanjones
0
250
We Are The Robots
honzajavorek
0
300
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
270
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Raft: Consensus for Rubyists
vanstee
141
7.6k
How GitHub (no longer) Works
holman
316
150k
YesSQL, Process and Tooling at Scale
rocio
174
15k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
260
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
The browser strikes back
jonoalderson
0
1.5k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Transcript
gRPCとConnect スキーマ駆動開発のすゝめ 戸塚 翔太
自己紹介 - 戸塚翔太(Blueish) - Go, Rust, Python - 生成AI, 機械学習
- 静岡県(浜松)に住んでます - 近くの方がいれば、一緒に勉強会しましょう - X: @totsumaru_dot
会社紹介 - 株式会社ブルーイッシュ - Go, Rust, 生成AIエンジニア等募集中 - 興味があれば覗いていただけると嬉しいです -
https://www.blueish.co.jp
Agenda 1. Connectとは 2. 最近の構成(LLMアプリケーションを使う) 3. OpenAPIスキーマの生成
1. Connectとは - ブラウザ,gRPC互換のHTTP APIを構築するためのライブラリファミリ - gRPC・gRPC-Web・Connect独自のプロトコルをサポート - cURLでもコールできる -
プロトコル変換プロキシ不要 docs: https://connectrpc.com/docs/introduction
1. Connectとは サポートされている言語 - Go - TypeScript, JavaScript(Web, Node.js) -
Swift, Kotlin(ベータ版) Python,Rustも欲しい...
Agenda 1. Connectとは 2. 最近の構成(LLMアプリケーションを使う) 3. OpenAPIスキーマの生成
2. 最近の構成(LLMアプリケーションを使う) フロントエンド バックエンド LLM gRPC connect-web HTTP/1.1 Protocol Buffers
connect-go
Agenda 1. Connectとは 2. 最近の構成(LLMアプリケーションを使う) 3. OpenAPIスキーマの生成
3. OpenAPIスキーマの生成 - protoから直接OpenAPIのスキーマを作成できる - openapiv2 プラグインを使用 protoは少しfatになります
その他 - Connect conformance test suite(適合性テストスイート) - Connect, gRPCなどプロトコル間の適合性を検証するテストスイート -
CI/CDでも実行でき、クライアント,サーバー共にテスト可能 - `connectconformance --mode server -- <path/to/your/executable/server>` - https://github.com/connectrpc/conformance - Buf Schema Registry (BSR) - Protobuf対応のレジストリ - AWS MarketplaceとGoogle Cloud Marketplaceで利用可能に - Kong Insomnia(APIクライアント)と統合
最後に - gRPCを使っていて、Connectサポートの言語であれば検討をおすすめ - 特にプロトコル変換のためのプロキシを使っている場合 - curlが使えるのはデバッグが楽 - 不要なMarshal/Unmarshalが無いのは楽(gRPC) -
LLMのチャットアプリケーションはstreamも検討
None