$30 off During Our Annual Pro Sale. View details »

What Are We Doing as Merpay Architect

Yuki Ito
December 14, 2021

What Are We Doing as Merpay Architect

Yuki Ito

December 14, 2021
Tweet

More Decks by Yuki Ito

Other Decks in Programming

Transcript

  1. What Are We Doing as Merpay Architect? Yuki Ito (@mrno110)

  2. Merpay / Mercoin Architect Mercari Microservices Platform CI/CD Yuki Ito

    @mrno110
  3. Agenda ɾArchitectur e ɾ׆ಈ಺༰

  4. Agenda ɾArchitecture ɾ׆ಈ಺༰

  5. Microservices Cloud Spanner Cloud Spanner Cloud Spanner Cloud Spanner Cloud

    Pub/Sub QR Payment Service XXX Service ZZZ Service YYY iD Payment Gateway Authority ɾɾɾ
  6. Architecture Cloud Spanner QR Payment Service XXX Service ZZZ Service

    YYY iD Payment Gateway Authority ɾɾɾ
  7. Go Cloud Spanner QR Payment Service XXX Service ZZZ Service

    YYY iD Payment Gateway Authority ɾɾɾ
  8. gRPC Cloud Spanner QR Payment Service XXX Service ZZZ Service

    YYY iD Payment Gateway Authority ɾɾɾ
  9. 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 ɾɾɾ
  10. Kubernetes Cloud Spanner Cloud Spanner Cloud Spanner Cloud Spanner Cloud

    Pub/Sub QR Payment Service XXX Service ZZZ Service YYY iD Payment Gateway Authority ɾɾɾ
  11. Istio Cloud Spanner Cloud Spanner Cloud Spanner Cloud Spanner Cloud

    Pub/Sub QR Payment Service XXX Service ZZZ Service YYY iD Payment Gateway Authority ɾɾɾ
  12. Agenda ɾArchitecture ɾ׆ಈ಺༰

  13. Agenda ɾArchitectur e ɾ׆ಈ಺༰

  14. ׆ಈ಺༰ ɾٕज़తͳҙࢥܾఆ ɾ૊৫తͳ՝୊ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ

  15. ׆ಈ಺༰ ɾٕज़తͳҙࢥܾఆ ɾ૊৫తͳ՝୊ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ

  16. ٕज़తͳҙࢥܾఆ e.g. ϚΠΫϩαʔϏεͷΞʔΩςΫνϟ

  17. ٕज़తͳҙࢥܾఆ e.g. ϚΠΫϩαʔϏεͷΞʔΩςΫνϟ Gateway

  18. ٕज़తͳҙࢥܾఆ e.g. ϚΠΫϩαʔϏεͷΞʔΩςΫνϟ BFF

  19. ٕज़తͳҙࢥܾఆ e.g. ϚΠΫϩαʔϏεͷΞʔΩςΫνϟ Services

  20. ٕज़తͳҙࢥܾఆ mercari / mercari-microservices-example

  21. ٕज़తͳҙࢥܾఆ e.g. ΧϯύχʔؒͷγεςϜ࿈ܞํ਑ Merpay Mercoin

  22. ٕज़తͳҙࢥܾఆ 🧑💻 Architect 🙋 Exec (ܦӦ) 🙋 ϦʔΨϧ 🙋 ϦεΫ؅ཧ

    🙋 ίϯϓϥΠΞϯε 🙋 Identity Platform 🙋 SRE 🙋 Product Engineer 🙋 ηΩϡϦςΟ
  23. ׆ಈ಺༰ ɾٕज़తͳҙࢥܾఆ ɾ૊৫తͳ՝୊ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ

  24. ׆ಈ಺༰ ɾٕज़తͳҙࢥܾఆ ɾ૊৫తͳ՝୊ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ

  25. ૊৫తͳ՝୊ͷநग़ɾղܾ e.g. QA؀ڥͷރׇ໰୊

  26. ૊৫తͳ՝୊ͷநग़ɾղܾ e.g. QA؀ڥͷރׇ໰୊ 🧑💻 Architect 😢 QA 😢 Developer ώΞϦϯά

  27. ૊৫తͳ՝୊ͷநग़ɾղܾ e.g. QA؀ڥͷރׇ໰୊

  28. ૊৫తͳ՝୊ͷநग़ɾղܾ

  29. ૊৫తͳ՝୊ͷநग़ɾղܾ e.g. QA؀ڥͷރׇ໰୊ 🧑💻 Architect 😄 QA 😄 Developer ಋೖࢧԉ

  30. ૊৫తͳ՝୊ͷநग़ɾղܾ e.g. QA؀ڥͷރׇ໰୊

  31. ׆ಈ಺༰ ɾٕज़తͳҙࢥܾఆ ɾ૊৫తͳ՝୊ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ

  32. ׆ಈ಺༰ ɾٕज़తͳҙࢥܾఆ ɾ૊৫తͳ՝୊ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ

  33. Design Doc ͷϨϏϡʔ Microserviceͷ։ൃϑϩʔ 📝 Design Docͷ࡞੒ 👀 Design DocͷϨϏϡʔ

    📝 API (gRPC) ఆٛ 🧑💻 ࣮૷
  34. Design Doc ͷϨϏϡʔ Microserviceͷ։ൃϑϩʔ 📝 Design Docͷ࡞੒ 👀 Design DocͷϨϏϡʔ

    📝 API (gRPC) ఆٛ 🧑💻 ࣮૷
  35. Design Doc ͷϨϏϡʔ Design Doc ͷ಺༰ ɾΞʔΩςΫνϟ ɾೝূɾೝՄ ɾσʔλ (Database,

    PII ) ɾґଘαʔϏε ɾηΩϡϦςΟ ...
  36. Design Doc ͷϨϏϡʔ Microserviceͷ։ൃϑϩʔ 📝 Design Docͷ࡞੒ 👀 Design DocͷϨϏϡʔ

    📝 API (gRPC) ఆٛ 🧑💻 ࣮૷
  37. Design Doc ͷϨϏϡʔ 📝 Design Doc 🧑💻 Architect 🧑💻 Security

    🧑💻 SRE 🧑💻 Security
  38. Design Doc ͷϨϏϡʔ Microserviceͷ։ൃϑϩʔ 📝 Design Docͷ࡞੒ 👀 Design DocͷϨϏϡʔ

    📝 API (gRPC) ఆٛ 🧑💻 ࣮૷
  39. ׆ಈ಺༰ ɾٕज़తͳҙࢥܾఆ ɾ૊৫తͳ՝୊ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ

  40. ׆ಈ಺༰ ɾٕज़తͳҙࢥܾఆ ɾ૊৫తͳ՝୊ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ

  41. 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 ɾɾɾ
  42. 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 ɾɾɾ
  43. 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

  44. API Gateway Pattern ɾAuthentication / Authorizatio n ɾDomain / IP

    Managemen t ɾTLS Terminatio n ɾData Format Transcodin g etc... Microservice ʹڞ௨͢Δ໰୊ͷղܾ
  45. 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 ɾɾɾ
  46. API Gateway ͷ։ൃ CDN Cloud Load Balancer (Ingress) API Gateway

    Server
  47. ׆ಈ಺༰ ɾٕज़తͳҙࢥܾఆ ɾ૊৫తͳ՝୊ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ

  48. ׆ಈ಺༰ ɾٕज़తͳҙࢥܾఆ ɾ૊৫తͳ՝୊ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ

  49. ٕज़ͷඪ४Խɾಋೖࢧԉ 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 ɾɾɾ
  50. ٕज़ͷඪ४Խɾಋೖࢧԉ e.g. Istio ͷಋೖ 🧑💻 Architect 🧑💻 Microservice Platform 🧑💻

    Developer
  51. ׆ಈ಺༰ ɾٕज़తͳҙࢥܾఆ ɾ૊৫తͳ՝୊ͷநग़ɾղܾ ɾDesign Doc ͷϨϏϡʔ ɾAPI Gateway ͷ։ൃ ɾٕज़ͷඪ४Խɾಋೖࢧԉ

  52. Vision ࣄۀ੒௕Λࢧ͑ಘΔγʔϜϨεͰ৴པੑͷߴ͍ 
 ΞʔΩςΫνϟΛઃܭ͠ɺೳಈతʹΤϯδχΞϦϯάΛઌಋ͢Δɻ

  53. Vision

  54. એ఻ 1 https://gihyo.jp/book/2022/978-4-297-12519-6

  55. એ఻ 2 https://meety.net/matches/CbIudcYbsTNu