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

Development example in cookpad storeTV

0d958fdebd2677dec52aec034afc9af1?s=47 sikaboze
March 30, 2018

Development example in cookpad storeTV

0d958fdebd2677dec52aec034afc9af1?s=128

sikaboze

March 30, 2018
Tweet

Other Decks in Technology

Transcript

  1. cookpad storeTVͷ։ൃࣄྫ ϝσΟΞϓϩμΫτ։ൃ෦ ࡾӜའే

  2. ࣗݾ঺հ • ໊લ: ࡾӜའే (Έ͏Β ΒΜͱ) • twitter: @sika_boze •

    ։ൃ: ྲྀ௨޲͚ΞϓϦͷαʔόʔαΠυ
  3. ࣄྫ঺հ • ࣄྫ • ϨγϐಈըΛબͼʹ͍͘໰୊ • ಉ͡৘ใೖߘʹΑΔ࡞ۀෛՙ໰୊ • ECSΛͲ͏؅ཧ͍ͯ͠Δ͔

  4. ࣄྫ঺հ • ࣄྫ • ϨγϐಈըΛબͼʹ͍͘໰୊ • ಉ͡৘ใೖߘʹΑΔ࡞ۀෛՙ໰୊ • ECSΛͲ͏؅ཧ͍ͯ͠Δ͔

  5. ϨγϐಈըΛબͼʹ͍͘໰୊ • લఏ • ళһ͞Μ͸৯ࡐ͔ΒಈըΛબͿ • ఏڙಈը਺͕૿͖͑ͯͯબͿͷେม ۄͶ͗࢖͏ͷ ͲΕ͚ͩͬʁ

  6. • ໰୊ • Ϩγϐಈը͕ଟͯ͘બͼʹ͍͘ • ղܾ๏ • ৯ࡐ໊ʹΑΔಈըͷάϧʔϐϯά ϨγϐಈըΛબͼʹ͍͘໰୊ ۄͶ͗

    ౾෗ ͡Ό͕͍΋ ۄͶ͗ͷͲͷಈըʹ ͠Α͏͔ͳ
  7. • ՝୊ • ৯ࡐ໊ͷදه༳Ε ϨγϐಈըΛબͼʹ͍͘໰୊ ɾਓࢀ
 ɾ͡Ό͕͍΋ ɾۄͶ͗ ɾ౾෗ ɾΘ͔Ί

    ɾਓࢀ ɾ͡Ό͕͍΋ ɾͨ·Ͷ͗ ɾ߹ͻ͖೑ ɾλϚωΪ ɾ߹͍ͼ͖೑ ɾཛ ɾύϯค ɾཛ ɾ͍ͪ͝ ɾ࠭౶
  8. ϨγϐಈըΛબͼʹ͍͘໰୊ • ޻෉఺1 • ৯ࡐ΍ϨγϐͳͲࣙॻΛར༻ ۄͶ͗ ۄೢ ͨ·Ͷ͗ λϚωΪ ΦχΦϯ

    ۄͶ͗ ࣙॻ
  9. ϨγϐಈըΛબͼʹ͍͘໰୊ • ޻෉఺2 • GDBMͱͯ͠ϩʔΧϧΩϟογϡ • ֎෦ͱAPI௨৴ͤͣ

  10. ϨγϐಈըΛબͼʹ͍͘໰୊ • ଞʹ΋΍ͬͨ͜ͱ • ৯ࡐͷ֊૚ߏ଄Խ • ৯ࡐͷಡΈԾ໊நग़ • mecab •

    etc…
  11. ࣄྫ঺հ • ࣄྫ • ίϯςϯπΛબͼʹ͍͘໰୊ • ಉ͡৘ใೖߘʹΑΔ࡞ۀෛՙ໰୊ • ECSΛͲ͏؅ཧ͍ͯ͠Δ͔

  12. • લఏ • ϚΠΫϩαʔϏεԽ • ಉ͡σʔλΛར༻ • ex) ××νΣʔϯɺܙൺणళ ೖߘ࡞ۀෛՙ໰୊

    App A App B db db
  13. ೖߘ࡞ۀෛՙ໰୊ • ղܾҊ • ೖߘ༻ͷΞϓϦέʔγϣϯΛ࡞੒ • σʔλΛϨϓϦέʔγϣϯ ೖߘ༻ App App

    A db db App B db
  14. ೖߘ࡞ۀෛՙ໰୊ • γεςϜߏ੒ • SNS + SQS • δϣϒεέδϡʔϥʔ(Kuroko2) ೖߘ༻

    App SNS SQS App A App B kuroko2 id id id
  15. ࣄྫ঺հ • ࣄྫ • ίϯςϯπΛબͼʹ͍͘໰୊ • ಉ͡৘ใೖߘʹΑΔ࡞ۀෛՙ໰୊ • ECSΛͲ͏؅ཧ͍ͯ͠Δ͔

  16. ECSΛͲ͏؅ཧ͍ͯ͠Δ͔ • ໰୊ • ܭࢉϦιʔε • ΞΫηε੍ݶ • ؀ڥม਺ web

    api batch docker image all.yml deploy
  17. ECSΛͲ͏؅ཧ͍ͯ͠Δ͔ • ద੾ͳ؀ڥʹ෼཭ • ܭࢉϦιʔε • ΞΫηε੍ݶ • ؀ڥม਺ web

    api docker image web.yml batch deploy api.yml batch.yml
  18. ·ͱΊ • ࣄྫ • ίϯςϯπΛબͼʹ͍͘໰୊ • ಉ͡৘ใೖߘʹΑΔ࡞ۀෛՙ໰୊ • ECSΛͲ͏؅ཧ͍ͯ͠Δ͔ •

    ࡉ͔͍ͱ͜Ζ͸આ໌Ͱ͖ͳ͔ͬͨͷͰQ&AͰʂ