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

PHPアプリケーションにRidgepoleを導入する

Ad4c3c738e57a9bbcb800871e81c232d?s=47 itosho
May 22, 2017

 PHPアプリケーションにRidgepoleを導入する

PHP BLT #7 @メルカリ でのLT発表資料です。

Ad4c3c738e57a9bbcb800871e81c232d?s=128

itosho

May 22, 2017
Tweet

Transcript

  1. Ո଒ͷຖ೔Λ΋ͬͱসإʹɻ 1)1#-5 ίωώτגࣜձࣾҏ౻ᠳ 1)1ΞϓϦέʔγϣϯʹ3JEHFQPMFΛಋೖ͢Δ

  2. ࣗݾ঺հ 4IP*UP !JUPTIP !JUPTIP 4FSWFS4JEF&OHJOFFS 1)1 3VCZ (P

  3. ۙگ w ৽ཱྀࠗߦͰिؒ΄Ͳ w ;PNBUPͱ͍͏৯΂ϩάΈ͍ͨͳΞϓϦ͕େ׆༂ w ͪͳΈʹ"UMBTTJBO͸ΦʔετϥϦΞͷձࣾ ؼࠃ͔ͯ͠Β1)1#-5ͷ͜ͱΛࢥ͍ग़͢ʜɻ ि຤ʹΦʔετϥϦΞ͔Βؼ͖ͬͯ·ͨ͠

  4. 1)1#-5 օ͞Μ͸ීஈεΩʔϚ؅ཧΛͲ͏͍ͯ͠·͔͢ʁ

  5. 1)1ΞϓϦέʔγϣϯʹ3JEHFQPMFΛಋೖ͢Δ w ΧϥϜΛ௥Ճ࡟আ͢ΔͨͼʹϑΝΠϧ͕૿͑Δ w ίϯϑϦΫτͨ࣌͠ʹؾΛ࢖͏͜ͱ͕ଟ͍ w TDIFNF@NJHSBUJPOTςʔϒϧ͕͔ͭ࣋ͯ͠ͳ͍ ্ه͸ϝϦοτͰ΋͋Δɻ
 ͚ͩͲɺ΋͏গ͠γϯϓϧʹεΩʔϚ؅ཧ͍ͨ͠Μ΍ʂ $BLF1)1ඪ४ϚΠάϨʔγϣϯͷਏΈ

  6. 1)1#-5 ͦΜͳوํʹ3JEHFQPMF

  7. 1)1ΞϓϦέʔγϣϯʹ3JEHFQPMFΛಋೖ͢Δ w !XJOFCBSSFM͞Μ͕։ൃͨ͠εΩʔϚ؅ཧπʔϧ w IUUQTHJUIVCDPNXJOFCBSSFMSJEHFQPMF w ϑΝΠϧ 4DIFNFpMF ͰεΩʔϚ؅ཧग़དྷΔ w

    ΧϥϜΛ௥Ճ͍ͨ࣌͠͸ߦ௥Ճ͢Δ͚ͩͰΑ͍ w 4DIFNFpMF͸ႈ౳ੑ͕อূ͞Ε͍ͯΔʂ w 3VCZ੡ 3JEHFQPMFͱ͸ʁ
  8. 1)1#-5 جຊతͳ࢖͍ํ

  9. 1)1ΞϓϦέʔγϣϯʹ3JEHFQPMFΛಋೖ͢Δ w (FNpMF ˺DPNQPTFSKTPO ʹSJEHFQPMFΛ௥Ճ͢Δ w CVOEMFJOTUBMM ˺DPNQPTFSJOTUBMM ίϚϯυΛ࣮ߦ͢Δ Πϯετʔϧ

  10. 1)1ΞϓϦέʔγϣϯʹ3JEHFQPMFΛಋೖ͢Δ w %#ͷ઀ଓ৘ใΛهࡌͨ͠EBUBCBTFZNMΛ࡞੒͢Δ طଘͷΞϓϦέʔγϣϯʹಋೖ͢Δ

  11. 1)1ΞϓϦέʔγϣϯʹ3JEHFQPMFΛಋೖ͢Δ ΤΫεϙʔτ࣮ߦ w CVOEMFFYFDSJEHFQPMFDEBUBCBTFZNMFYQPSUP4DIFNBpMF
 ίϚϯυΛ࣮ߦ͢Δ

  12. 1)1ΞϓϦέʔγϣϯʹ3JEHFQPMFΛಋೖ͢Δ w 4DIFNBpMFʹ௥Ճ͍ͨ͠ΧϥϜͷ৘ใΛ௥ه͢Δ ΧϥϜΛ௥Ճ͢Δ

  13. 1)1ΞϓϦέʔγϣϯʹ3JEHFQPMFΛಋೖ͢Δ w CVOEMFFYFDSJEHFQPMFDEBUBCBTFZNMBQQMZG4DIFNBpMF
 ίϚϯυΛ࣮ߦ͢Δ มߋ಺༰Λ൓ө͢Δ

  14. 1)1ΞϓϦέʔγϣϯʹ3JEHFQPMFΛಋೖ͢Δ w CVOEMFFYFDSJEHFQPMFDEBUBCBTFZNMBQQMZG4DIFNBpMFESZSVO
 ίϚϯυΛ࣮ߦ͢Δ ESZSVO͍ͨ࣌͠

  15. 1)1#-5 ࣮ࡍʹ࢖ͬͯΈͨײ૝

  16. 1)1ΞϓϦέʔγϣϯʹ3JEHFQPMFΛಋೖ͢Δ w ϑΝΠϧͰεΩʔϚΛ؅ཧ͢Δ͜ͱ͕ग़དྷΔ w ςʔϒϧมߋͷཤྺ͕ෆඞཁʹԚ͘ͳΒͳ͍ w SJEHFQPMFBQQMZ͢Δ͚ͩͱ͍͏ؾܰ͞ w 3BJMTͷ%4-Ͱهड़ग़དྷΔ w

    ΦϨΦϨ%4-Ͱ͸ͳ͍ w ෳ਺%#ͷεΩʔϚ؅ཧ͕ൺֱత༰қ ϝϦοτ
  17. 1)1ΞϓϦέʔγϣϯʹ3JEHFQPMFΛಋೖ͢Δ w 1)1FS͸3BJMTͷ%4-Λ֮͑Δඞཁ͕͋Δ w ೉͘͠͸ͳ͍ w 1)1ͷੈքʹ3VCZ͕ೖΓࠐΜͰ͘Δ w JUBNBF࢖͍ͬͯΔͱಋೖָ͕͔΋ w

    ৘ใ͕ͦ͜·Ͱଟ͘ͳ͍ w $PPLQBEࣾ΍%F/"ࣾͰͷಋೖ࣮੷͕͋Δ w Կ͔͋ͬͨ࣌ʹ3VCZͷίʔυ͸͋Δఔ౓ಡΊͨ΄͏͕҆৺ σϝϦοτ
  18. 1)1ΞϓϦέʔγϣϯʹ3JEHFQPMFΛಋೖ͢Δ w JE JOUܕͷQL ͕BVUPJODSFNFOUͰͳ͍࣌ʹΤϥʔ͕ൃੜ͢Δ w ৽نͰςʔϒϧ࡞੒͢ΔͱJOU  ʹͳΔ w

    طଘͷςʔϒϧ͕JOU  ͩͱͪΐͬͱؾ࣋ͪѱ͍ ࣗ෼ͷॻ͖ํ͕ѱ͍͚ͩͳؾ΋͢ΔͷͰɺ୭͔ॿ͚͍ͯͩ͘͞ʜɻ ࠔ͍ͬͯΔ͜ͱ
  19. 1)1#-5 ·ͱΊ

  20. 1)1ΞϓϦέʔγϣϯʹ3JEHFQPMFΛಋೖ͢Δ w 3JEHFQPMF࠷ߴʂ w 1)1WT3VCZΈ͍ͨͳͷΑ͘ͳ͍ʂ w ͓ޓ͍ͷΑ͍ͱ͜ΖΛऔΓೖΕ͍͖͍ͯͨॴଘ ݴ͍͔ͨͬͨ͜ͱ

  21. 1)1ΞϓϦέʔγϣϯʹ3JEHFQPMFΛಋೖ͢Δ w ΫοΫύουʹ͓͚Δ࠷ۙͷ"DUJWF3FDPSEӡ༻ࣄ৘ w IUUQUFDIMJGFDPPLQBEDPNFOUSZ w %F/"ͷήʔϜ։ൃΛࢧ͑Δ(BNF#BDLFOEBTB4FSWJDF w IUUQTXXXTMJEFTIBSFOFUCMVFTLZCMVFEFOBHBNFCBDLFOEBTBTFSWJDF w

    $BLF1)1Ͱ։ൃ͍ͯ͠Δ͚ΕͲ΋.JHSBUJPOT͸ࣺͯͯ3JEHFQPMFΛ࢖͍ͬͯΔ͸ͳ͠ w IUUQLMPXIBUFOBCMPHDPNFOUSZ ࢀߟαΠτ
  22. 1)1#-5 ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠