Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Microservices on Cloud Run @ KAUCHE
Yuki Ito
November 17, 2022
Technology
0
67
Microservices on Cloud Run @ KAUCHE
Yuki Ito
November 17, 2022
Tweet
Share
More Decks by Yuki Ito
See All by Yuki Ito
KAUCHE Loves Go
110y
0
190
Evolution of Architecture @ Kauche
110y
3
240
Envoy as an API Gateway
110y
0
110
Microservices on Cloud Run + VPC Network
110y
0
230
How We Use Cloud Run and its Friends
110y
0
210
Custom Kubernetes Controllers at Mercari
110y
1
450
What Is the Go Workspace Mode
110y
4
1.1k
What Are We Doing as Merpay Architect
110y
0
1.2k
Kubernetes Casual Talk
110y
0
59
Other Decks in Technology
See All in Technology
Astroで始める爆速個人サイト開発
takanorip
12
8.2k
マイクロサービス宣言から8年 振り返りとこれから / Eight Years After the Microservices Declaration A Look Back and A Look Ahead
eisuke
2
120
DID/VCを用いた自己主権型アイデンティティの実現
sbtechnight
0
360
SPA・SSGでSSRのようなOGP対応!
simo123
2
130
20230117_JAWS-UG_朝会_41_LT資料
tsumita
0
290
【NGK2023S】 ノードエディタ形式の画像処理ツール「Image-Processing-Node-Editor」
kazuhitotakahashi
0
180
Google Cloud Updates 2022/12/01-12/15
no24oka
1
150
Startup Studio Sereal / Culture Deck
sereal
0
590
LINEにおけるネットワーク自動化チーム / Network Automation Team in LINE
line_developers
PRO
0
200
RDS/Aurora バージョンアップのポイント
hmatsu47
PRO
8
1.6k
ROS_Japan_UG_#49_LT
maeharakeisuke
0
190
デスマーチから身を守るたったひとつの方法
kwappa
1
2.7k
Featured
See All Featured
Designing for Performance
lara
601
65k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
44
14k
Fashionably flexible responsive web design (full day workshop)
malarkey
396
63k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
24
4.5k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
351
21k
Faster Mobile Websites
deanohume
295
29k
Thoughts on Productivity
jonyablonski
49
2.7k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
239
19k
Stop Working from a Prison Cell
hatefulcrawdad
263
18k
Building Flexible Design Systems
yeseniaperezcruz
314
35k
How GitHub Uses GitHub to Build GitHub
holman
465
280k
How to train your dragon (web standard)
notwaldorf
66
4.2k
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)