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

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

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

Yuki Ito

July 20, 2021
Tweet

More Decks by Yuki Ito

Other Decks in Programming

Transcript

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

    ɾarm64 (M1 Mac) CPU ͩͱҰ෦ಈ࡞͠·ͤΜ 🙏 ɾgit clone ޙʹ make cluster Λ࣮ߦ͢Δ
  2. ϋϯζΦϯ ɾΧςΰϦҰཡΛอ࣋͢Δ 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" } ] }
  3. ϋϯζΦϯ 1. category ͷ API ఆٛ (proto) 2. category ͷ

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