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
Microservices on Cloud Run @ KAUCHE
Search
Yuki Ito
November 17, 2022
Technology
0
150
Microservices on Cloud Run @ KAUCHE
Yuki Ito
November 17, 2022
Tweet
Share
More Decks by Yuki Ito
See All by Yuki Ito
Modular Monolith Go Server with GraphQL Federation + gRPC
110y
1
610
Modular Monolith + Go @ newmo
110y
1
690
Go + GraphQL @ newmo
110y
3
520
Architect / Platform Team at KAUCHE
110y
1
460
Cloud Run + Observability / Reliability @ KAUCHE
110y
0
430
Cloud Run CI/CD + QA @ KAUCHE
110y
1
500
KAUCHE Loves Go
110y
0
400
Evolution of Architecture @ Kauche
110y
3
470
Envoy as an API Gateway
110y
0
320
Other Decks in Technology
See All in Technology
公共交通データとアプリ制作 - Mini Tokyo 3D の初期制作過程を振り返る
nagix
2
200
つよつよリーダーが 抜けたらどうする? 〜ナビタイムのAgile⽀援組織の変遷〜
navitimejapan
PRO
8
2k
位置情報とオープンソースがやりたくてMIERUNEに転職した話 〜経歴、事例紹介、GISへのいざない〜 / MIERUNE JCT - Tokyo 2024
mierune
PRO
0
150
XP matsuri 2024 - 銀河英雄伝説に学ぶ
kawaguti
PRO
2
260
クロージング / MIERUNE JCT - Tokyo 2024
mierune
PRO
0
110
Wasmコンテナを動かしてみた
stanaka26
0
150
Vista FinderMx
jtes
0
160
Valuable Software Engineering
avandeursen
0
200
Technology that powers Lambda / AWS Lambda を支える技術
_kensh
22
5k
Introducing NgRx in an Nx Angular Workspace
fabiangosebrink
0
170
「巨人の肩の上」で自作ライブラリを作る技術 / pyconjp2024
upura
2
290
仕事を前に進めるためのコツ - 判断と決断と共有 / Aim for the goal
soudai
60
22k
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
64
11k
Teambox: Starting and Learning
jrom
131
8.7k
Building an army of robots
kneath
302
42k
A Tale of Four Properties
chriscoyier
155
22k
How to Think Like a Performance Engineer
csswizardry
16
980
Documentation Writing (for coders)
carmenintech
65
4.3k
The Brand Is Dead. Long Live the Brand.
mthomps
53
38k
Rebuilding a faster, lazier Slack
samanthasiow
78
8.6k
VelocityConf: Rendering Performance Case Studies
addyosmani
322
23k
Principles of Awesome APIs and How to Build Them.
keavy
125
17k
In The Pink: A Labor of Love
frogandcode
139
22k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
25
620
Transcript
Microservices on Cloud Run @ KAUCHE Yuki Ito (@mrno110) GCPUG
Modern Architecture Talk
Kauche Architect Yuki Ito @mrno110
None
Architecture Run Tasks Pub/Sub Mobile App External Service Mobile API
Web Hook API Job API Scheduler
What is Cloud Run Cloud Run is a managed compute
platform that enables you to run containers that are invocable via requests or events. Cloud Run is serverless: it abstracts away all infrastructure management... https://cloud.google.com/run/docs
Architecture - Key Concepts - ɾEverything runs on Cloud Run
ɾEverything runs as an API (gRPC)
Architecture Run Tasks Pub/Sub Mobile App External Service Mobile API
Web Hook API Job API Scheduler
Architecture Run Tasks Pub/Sub Mobile App External Service Mobile API
Web Hook API Job API Scheduler
Architecture - Key Concepts - e.g.) VS. Cloud Functions Trigger
Run Pub/Sub Functions Run Firestore Functions
Architecture Run Tasks Pub/Sub Mobile App External Service Mobile API
Web Hook API Job API Scheduler
Architecture ✅ Everything is Managed as API De fi nitions
✅ Reuse same implementation logic as APIs ✅ Use same Monitoring environments
Architecture: 2020 ~ Run Customer App Customer gRPC
Architecture: 2022 ~ Customer App Customer gRPC Partner App Partner
gRPC Envoy (API Gateway)
O ffl oading Cross-Cutting Concerns to the API Gateway ✓
Authentication / Authorization ✓ Transcoding ✓ Being Internet facing (TLS / Domain / CDN / IP ...) ✓ ...
API Gateway Pattern Customer App Customer gRPC Partner App Partner
gRPC Envoy (API Gateway)
proxy-wasm https://github.com/proxy-wasm/spec/blob/c8 ff 5a8ac7b18a65360fe8ab843a6291b8947682/docs/WebAssembly-in-Envoy.md
e.g. Fetching access tokens from Google Cloud Metadata Server API
Gateway Upstream Microservice Metadata Server Access Token Access Token Get Access Token Request
Architecture: 2022 ~ Customer App Customer gRPC Partner App Partner
gRPC Envoy (API Gateway)
Network: Single Service
Network: Microservices
Network: Access Control
Access Control - Cloud Run - • Access Control with
IAM • Restricting Ingress
Network: Shared VPC + Service Controls Perimeter
Architecture: 2022 ~ Customer App Customer gRPC Partner App Partner
gRPC Envoy (API Gateway)