Upgrade to Pro — share decks privately, control downloads, hide ads and more …

メルカリのマイクロサービスをPCで動かそう!

 メルカリのマイクロサービスをPCで動かそう!

1bfc6e2ed04a895bb36f36b86828b689?s=128

Yuki Ito

July 20, 2021
Tweet

Transcript

  1. ϝϧΧϦͷϚΠΫϩαʔϏεΛPCͰಈ͔ͦ͏ʂ Backend Hands-on @mrno110

  2. ΞδΣϯμ ɾ͸͡Ίʹ ɾࣗݾ঺հ ɾϝϧΧϦͷΞʔΩςΫνϟͷղઆ ɾϋϯζΦϯ

  3. ΞδΣϯμ ɾ͸͡Ίʹ ɾࣗݾ঺հ ɾϝϧΧϦͷΞʔΩςΫνϟͷղઆ ɾϋϯζΦϯ

  4. ͸͡Ίʹ https://github.com/mercari/go-conference-2021-spring-o ffi ce-hour/ ϦϙδτϦ

  5. ͸͡Ίʹ ɾGo ɾDocker ɾmake ɾjq ඞཁͳπʔϧ

  6. ͸͡Ίʹ ɾWindows ͷ৔߹͸ WSL Λར༻͢Δ ɾDocker ͷ Memory Λ 8GBҎ্ʹ͢Δ

    ɾarm64 (M1 Mac) CPU ͩͱҰ෦ಈ࡞͠·ͤΜ 🙏 ɾgit clone ޙʹ make cluster Λ࣮ߦ͢Δ
  7. ΞδΣϯμ ɾ͸͡Ίʹ ɾࣗݾ঺հ ɾϝϧΧϦͷΞʔΩςΫνϟͷղઆ ɾϋϯζΦϯ

  8. ΞδΣϯμ ɾ͸͡Ίʹ ɾࣗݾ঺հ ɾϝϧΧϦͷΞʔΩςΫνϟͷղઆ ɾϋϯζΦϯ

  9. Merpay Architect Team Mercari Microservices Platform CI/CD @yuki.ito

  10. ΞδΣϯμ ɾ͸͡Ίʹ ɾࣗݾ঺հ ɾϝϧΧϦͷΞʔΩςΫνϟͷղઆ ɾϋϯζΦϯ

  11. ΞδΣϯμ ɾ͸͡Ίʹ ɾࣗݾ঺հ ɾϝϧΧϦͷΞʔΩςΫνϟͷղઆ ɾϋϯζΦϯ

  12. ΞʔΩςΫνϟ

  13. ΞʔΩςΫνϟ

  14. ΞʔΩςΫνϟ

  15. ΞʔΩςΫνϟ

  16. ΞʔΩςΫνϟ

  17. ΞʔΩςΫνϟ

  18. ΞʔΩςΫνϟ

  19. ΞʔΩςΫνϟ

  20. ΞʔΩςΫνϟ

  21. ΞʔΩςΫνϟ

  22. ΞʔΩςΫνϟ https://istio.io/latest/docs/ops/deployment/architecture/

  23. ΞʔΩςΫνϟ

  24. ϋϯζΦϯ ϦϙδτϦ https://github.com/mercari/go-conference-2021-spring-o ffi ce-hour/

  25. ϋϯζΦϯ ϦϙδτϦ

  26. ϋϯζΦϯ ϦϙδτϦ Gateway

  27. ϋϯζΦϯ ϦϙδτϦ BFF

  28. ϋϯζΦϯ ϦϙδτϦ Services

  29. ϋϯζΦϯ ϦϙδτϦ

  30. ΞδΣϯμ ɾ͸͡Ίʹ ɾࣗݾ঺հ ɾϝϧΧϦͷΞʔΩςΫνϟͷղઆ ɾϋϯζΦϯ

  31. ΞδΣϯμ ɾ͸͡Ίʹ ɾࣗݾ঺հ ɾϝϧΧϦͷΞʔΩςΫνϟͷղઆ ɾϋϯζΦϯ

  32. ϋϯζΦϯ ϚΠΫϩαʔϏεΛ৽ن࡞੒͠Α͏ʂ ※ը໘ڞ༗Λ͓ئ͍͠·͢

  33. ϋϯζΦϯ ɾΧςΰϦҰཡΛอ࣋͢Δ category αʔϏε > curl -s -XGET -H "authorization:

    bearer $TOKEN" localhost:30000/categories { "categories": [ { "id": "9e893b41-65e5-4ab0-94dd-bb7f6cd06da4", "name": "Books" }, { "id": "35c51c6f-7c5b-4bb3-9093-3acce1ccf3e5", "name": "Gadgets" }, { "id": "3d450ed6-94ac-4f34-9f24-1b934735c06c", "name": "Toys" } ] }
  34. ϋϯζΦϯ

  35. ϋϯζΦϯ 1. category ͷ API ఆٛ (proto) 2. category ͷ

    gRPC ࣮૷ 3. category ͷ Deploy (Kubernetes) 4. gateway ͷ API ఆٛ (proto) 5. gateway ͷ࣮૷