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
What Are We Doing as Merpay Architect
Search
Yuki Ito
December 14, 2021
Programming
0
1.6k
What Are We Doing as Merpay Architect
Yuki Ito
December 14, 2021
Tweet
Share
More Decks by Yuki Ito
See All by Yuki Ito
Modular Monolith Go Server with GraphQL Federation + gRPC
110y
1
700
Modular Monolith + Go @ newmo
110y
1
810
Go + GraphQL @ newmo
110y
3
600
Architect / Platform Team at KAUCHE
110y
1
490
Cloud Run + Observability / Reliability @ KAUCHE
110y
0
460
Cloud Run CI/CD + QA @ KAUCHE
110y
1
520
Microservices on Cloud Run @ KAUCHE
110y
0
170
KAUCHE Loves Go
110y
0
420
Evolution of Architecture @ Kauche
110y
3
480
Other Decks in Programming
See All in Programming
macOS でできる リアルタイム動画像処理
biacco42
9
2.4k
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
230
Why Jakarta EE Matters to Spring - and Vice Versa
ivargrimstad
0
1.1k
Jakarta EE meets AI
ivargrimstad
0
650
Contemporary Test Cases
maaretp
0
140
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
120
聞き手から登壇者へ: RubyKaigi2024 LTでの初挑戦が 教えてくれた、可能性の星
mikik0
1
130
Jakarta EE meets AI
ivargrimstad
0
200
Compose 1.7のTextFieldはPOBox Plusで日本語変換できない
tomoya0x00
0
190
色々なIaCツールを実際に触って比較してみる
iriikeita
0
330
WebフロントエンドにおけるGraphQL(あるいはバックエンドのAPI)との向き合い方 / #241106_plk_frontend
izumin5210
4
1.4k
Figma Dev Modeで変わる!Flutterの開発体験
watanave
0
140
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
The Cult of Friendly URLs
andyhume
78
6k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
Faster Mobile Websites
deanohume
305
30k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
Six Lessons from altMBA
skipperchong
27
3.5k
Visualization
eitanlees
145
15k
Why Our Code Smells
bkeepers
PRO
334
57k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Transcript
What Are We Doing as Merpay Architect? Yuki Ito (@mrno110)
Merpay / Mercoin Architect Mercari Microservices Platform CI/CD Yuki Ito
@mrno110
Agenda ɾArchitectur e ɾ׆ಈ༰
Agenda ɾArchitecture ɾ׆ಈ༰
Microservices Cloud Spanner Cloud Spanner Cloud Spanner Cloud Spanner Cloud
Pub/Sub QR Payment Service XXX Service ZZZ Service YYY iD Payment Gateway Authority ɾɾɾ
Architecture Cloud Spanner QR Payment Service XXX Service ZZZ Service
YYY iD Payment Gateway Authority ɾɾɾ
Go Cloud Spanner QR Payment Service XXX Service ZZZ Service
YYY iD Payment Gateway Authority ɾɾɾ
gRPC Cloud Spanner QR Payment Service XXX Service ZZZ Service
YYY iD Payment Gateway Authority ɾɾɾ
Google Cloud Platform Cloud Spanner Cloud Spanner Cloud Spanner Cloud
Spanner Cloud Pub/Sub QR Payment Service XXX Service ZZZ Service YYY iD Payment Gateway Authority ɾɾɾ
Kubernetes Cloud Spanner Cloud Spanner Cloud Spanner Cloud Spanner Cloud
Pub/Sub QR Payment Service XXX Service ZZZ Service YYY iD Payment Gateway Authority ɾɾɾ
Istio Cloud Spanner Cloud Spanner Cloud Spanner Cloud Spanner Cloud
Pub/Sub QR Payment Service XXX Service ZZZ Service YYY iD Payment Gateway Authority ɾɾɾ
Agenda ɾArchitecture ɾ׆ಈ༰
Agenda ɾArchitectur e ɾ׆ಈ༰
׆ಈ༰ ɾٕज़తͳҙࢥܾఆ ɾ৫తͳ՝ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ
׆ಈ༰ ɾٕज़తͳҙࢥܾఆ ɾ৫తͳ՝ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ
ٕज़తͳҙࢥܾఆ e.g. ϚΠΫϩαʔϏεͷΞʔΩςΫνϟ
ٕज़తͳҙࢥܾఆ e.g. ϚΠΫϩαʔϏεͷΞʔΩςΫνϟ Gateway
ٕज़తͳҙࢥܾఆ e.g. ϚΠΫϩαʔϏεͷΞʔΩςΫνϟ BFF
ٕज़తͳҙࢥܾఆ e.g. ϚΠΫϩαʔϏεͷΞʔΩςΫνϟ Services
ٕज़తͳҙࢥܾఆ mercari / mercari-microservices-example
ٕज़తͳҙࢥܾఆ e.g. ΧϯύχʔؒͷγεςϜ࿈ܞํ Merpay Mercoin
ٕज़తͳҙࢥܾఆ 🧑💻 Architect 🙋 Exec (ܦӦ) 🙋 ϦʔΨϧ 🙋 ϦεΫཧ
🙋 ίϯϓϥΠΞϯε 🙋 Identity Platform 🙋 SRE 🙋 Product Engineer 🙋 ηΩϡϦςΟ
׆ಈ༰ ɾٕज़తͳҙࢥܾఆ ɾ৫తͳ՝ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ
׆ಈ༰ ɾٕज़తͳҙࢥܾఆ ɾ৫తͳ՝ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ
৫తͳ՝ͷநग़ɾղܾ e.g. QAڥͷރׇ
৫తͳ՝ͷநग़ɾղܾ e.g. QAڥͷރׇ 🧑💻 Architect 😢 QA 😢 Developer ώΞϦϯά
৫తͳ՝ͷநग़ɾղܾ e.g. QAڥͷރׇ
৫తͳ՝ͷநग़ɾղܾ
৫తͳ՝ͷநग़ɾղܾ e.g. QAڥͷރׇ 🧑💻 Architect 😄 QA 😄 Developer ಋೖࢧԉ
৫తͳ՝ͷநग़ɾղܾ e.g. QAڥͷރׇ
׆ಈ༰ ɾٕज़తͳҙࢥܾఆ ɾ৫తͳ՝ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ
׆ಈ༰ ɾٕज़తͳҙࢥܾఆ ɾ৫తͳ՝ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ
Design Doc ͷϨϏϡʔ Microserviceͷ։ൃϑϩʔ 📝 Design Docͷ࡞ 👀 Design DocͷϨϏϡʔ
📝 API (gRPC) ఆٛ 🧑💻 ࣮
Design Doc ͷϨϏϡʔ Microserviceͷ։ൃϑϩʔ 📝 Design Docͷ࡞ 👀 Design DocͷϨϏϡʔ
📝 API (gRPC) ఆٛ 🧑💻 ࣮
Design Doc ͷϨϏϡʔ Design Doc ͷ༰ ɾΞʔΩςΫνϟ ɾೝূɾೝՄ ɾσʔλ (Database,
PII ) ɾґଘαʔϏε ɾηΩϡϦςΟ ...
Design Doc ͷϨϏϡʔ Microserviceͷ։ൃϑϩʔ 📝 Design Docͷ࡞ 👀 Design DocͷϨϏϡʔ
📝 API (gRPC) ఆٛ 🧑💻 ࣮
Design Doc ͷϨϏϡʔ 📝 Design Doc 🧑💻 Architect 🧑💻 Security
🧑💻 SRE 🧑💻 Security
Design Doc ͷϨϏϡʔ Microserviceͷ։ൃϑϩʔ 📝 Design Docͷ࡞ 👀 Design DocͷϨϏϡʔ
📝 API (gRPC) ఆٛ 🧑💻 ࣮
׆ಈ༰ ɾٕज़తͳҙࢥܾఆ ɾ৫తͳ՝ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ
׆ಈ༰ ɾٕज़తͳҙࢥܾఆ ɾ৫తͳ՝ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ
API Gateway ͷ։ൃ Cloud Spanner Cloud Spanner Cloud Spanner Cloud
Spanner Cloud Pub/Sub QR Payment Service XXX Service ZZZ Service YYY iD Payment Gateway Authority ɾɾɾ
API Gateway ͷ։ൃ Cloud Spanner Cloud Spanner Cloud Spanner Cloud
Spanner Cloud Pub/Sub QR Payment Service XXX Service ZZZ Service YYY iD Payment Gateway Authority ɾɾɾ
API Gateway Pattern https://docs.microsoft.com/en-us/dotnet/architecture/microservices/architect-microservice-container-applications/direct-client-to- microservice-communication-versus-the-api-gateway-pattern
API Gateway Pattern ɾAuthentication / Authorizatio n ɾDomain / IP
Managemen t ɾTLS Terminatio n ɾData Format Transcodin g etc... Microservice ʹڞ௨͢Δͷղܾ
API Gateway ͷ։ൃ Cloud Spanner Cloud Spanner Cloud Spanner Cloud
Spanner Cloud Pub/Sub QR Payment Service XXX Service ZZZ Service YYY iD Payment Gateway Authority ɾɾɾ
API Gateway ͷ։ൃ CDN Cloud Load Balancer (Ingress) API Gateway
Server
׆ಈ༰ ɾٕज़తͳҙࢥܾఆ ɾ৫తͳ՝ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ
׆ಈ༰ ɾٕज़తͳҙࢥܾఆ ɾ৫తͳ՝ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ
ٕज़ͷඪ४Խɾಋೖࢧԉ e.g. Istio ͷಋೖ Cloud Spanner Cloud Spanner Cloud Spanner
Cloud Spanner Cloud Pub/Sub QR Payment Service XXX Service ZZZ Service YYY iD Payment Gateway Authority ɾɾɾ
ٕज़ͷඪ४Խɾಋೖࢧԉ e.g. Istio ͷಋೖ 🧑💻 Architect 🧑💻 Microservice Platform 🧑💻
Developer
׆ಈ༰ ɾٕज़తͳҙࢥܾఆ ɾ৫తͳ՝ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ
Vision ࣄۀΛࢧ͑ಘΔγʔϜϨεͰ৴པੑͷߴ͍ ΞʔΩςΫνϟΛઃܭ͠ɺೳಈతʹΤϯδχΞϦϯάΛઌಋ͢Δɻ
Vision
એ 1 https://gihyo.jp/book/2022/978-4-297-12519-6
એ 2 https://meety.net/matches/CbIudcYbsTNu