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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Yuki Ito
November 17, 2022
Technology
0
280
Microservices on Cloud Run @ KAUCHE
Yuki Ito
November 17, 2022
Tweet
Share
More Decks by Yuki Ito
See All by Yuki Ito
newmo の創業を支える Software Architecture と Platform Engineering
110y
5
3.4k
Modular Monolith Go Server with GraphQL Federation + gRPC
110y
1
1.1k
Modular Monolith + Go @ newmo
110y
1
1.2k
Go + GraphQL @ newmo
110y
3
930
Architect / Platform Team at KAUCHE
110y
1
650
Cloud Run + Observability / Reliability @ KAUCHE
110y
0
630
Cloud Run CI/CD + QA @ KAUCHE
110y
1
650
KAUCHE Loves Go
110y
0
500
Evolution of Architecture @ Kauche
110y
3
610
Other Decks in Technology
See All in Technology
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
3k
LLM活用の壁を超える:リクルートR&Dの戦略と打ち手
recruitengineers
PRO
1
220
Master Dataグループ紹介資料
sansan33
PRO
1
4.4k
開発組織の課題解決を加速するための権限委譲 -する側、される側としての向き合い方-
daitasu
3
180
LINEアプリ開発のための Claude Code活用基盤の構築
lycorptech_jp
PRO
2
1.3k
クラウド時代における一時権限取得
krrrr38
1
150
A Gentle Introduction to Transformers
keio_smilab
PRO
1
100
Agentic Codingの実践とチームで導入するための工夫
lycorptech_jp
PRO
0
400
Oracle Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
4
1.6k
OSSで構築するIT基盤管理実践事例: NetBox・Snipe-IT・FreeRADIUS+PrivacyIDEA / Practical Case Studies of IT Infrastructure Management Using OSS
nttcom
0
190
生成AIの利用とセキュリティ /gen-ai-and-security
mizutani
0
870
ヘルシーSRE
tk3fftk
2
230
Featured
See All Featured
Information Architects: The Missing Link in Design Systems
soysaucechin
0
810
Design in an AI World
tapps
0
160
Utilizing Notion as your number one productivity tool
mfonobong
4
240
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.4k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
250
We Have a Design System, Now What?
morganepeng
55
8k
Everyday Curiosity
cassininazir
0
150
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
130
How to train your dragon (web standard)
notwaldorf
97
6.5k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
370
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)