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

電話インフラを支える Heroku サービス運用

電話インフラを支える Heroku サービス運用

Heroku Meetup #20 "Heroku Yacht"
https://herokujp.doorkeeper.jp/events/72329
での登壇資料です。

Kiminari Homma

April 10, 2018
Tweet

More Decks by Kiminari Homma

Other Decks in Technology

Transcript

  1. ి࿩ΠϯϑϥΛࢧ͑Δ )FSPLVαʔϏεӡ༻ !LJNJIPN )FSPLV.FFUVQ:BDIU 

  2. ࣗݾ঺հ ຊؒ ߖ੒ @kimihom CTO at selfree LLC CallConnect (ϒϥ΢βి࿩γεςϜ)

    ࣗݾࢿຊ x ࣗࣾαʔϏε x 1ΤϯδχΞ Heroku, Twilio UG ίΞϝϯόʔ ϒϩά “ϘΫίί” ӡӦ http://www.bokukoko.info/
  3. ૝ఆλʔήοτ҆ఆͨ͠l:BDIUzʹ৐Γ࢝Ίͨํ

  4. .71ϑΣʔζͷํ޲͚ IUUQXXXCPLVLPLPJOGPFOUSZ

  5. ຊ೔ͷ಺༰ αʔϏε঺հ γεςϜߏ੒ )FSPLVӡ༻ͷํ਑ ݱࡏͷӡ༻ϑϩʔ ͓ΘΓʹ

  6. ຊ೔ͷ಺༰ αʔϏε঺հ γεςϜߏ੒ )FSPLVӡ༻ͷํ਑ ݱࡏͷӡ༻ϑϩʔ ͓ΘΓʹ

  7. ϒϥ΢βి࿩γεςϜ

  8. %&.0

  9. ຊ೔ͷ಺༰ αʔϏε঺հ γεςϜߏ੒ )FSPLVӡ༻ͷํ਑ ݱࡏͷӡ༻ϑϩʔ ͓ΘΓʹ

  10. 'SPOU&OE #BDL&OE "84 *BB4 )FSPLV 1BB4 %ZOP 3VCZ 3VCZPO 3BJMT

    "EEPOT ֎෦"1* XXXDBMMDPOOFDUKQ AWS Lambda 8FCd4UBOEBSE9%ZOP
  11. )FSPLV"EEPOT $%/ ը૾΍Ի੠౳ͷΩϟογϡ  ݕࡧαʔόʔ σʔλϕʔε σʔλอଘ৔ॴ  ϩά؂ࢹ ࣌ؒࢦఆͰॊೈʹαʔόʔΛ૿ڧ

    Ұ࣌σʔλΩϟογϡ ఆظతʹॲཧ͢ΔϓϩάϥϜ ܾࡁ౳  αʔόʔ؂ࢹ ϝʔϧૹ৴ N
  12. ൒೥ͰͷมԽ )FSPLV1PTUHSFT 4UBOEBSE  1SFNJVN   1BQFSUSBJM 'JYB 

    'PSTUB   4FOEHSJE 4UBSUFS  #SPO[F   4RSFFO ಋೖʹ௅ઓͯ͠ɺىಈϝϞϦͷߴ͞ʹஅ೦
  13. ຊ೔ͷ಺༰ αʔϏε঺հ γεςϜߏ੒ )FSPLVӡ༻ͷํ਑ ݱࡏͷӡ༻ϑϩʔ ͓ΘΓʹ

  14. ӡ༻ͷํ਑ Ͱ͖ΔݶΓ"84ΛੜͰѻ͏͜ͱΛ͠ͳ͍ ӡ༻ͷௐࠪमਖ਼΍νϡʔχϯάͳͲͰ͕࣌ؒऔΒΕΔ )FSPLV΋ݟͯ"84΋ݟͯɾɾΈ͍ͨͳ͜ͱ͕ແବ ͦΕͰ΋ඞཁͩͬͨ"84 AWS Lambda Amazon
 S3 Amazon


    Route 53 Amazon API Gateway Amazon
 Cognito Amazon CloudWatch
  15. )FSPLV΁ͷࢧ෷͍ΛένΒͳ͍ ࠷ॳ͸҆͘ɻϢʔβʔΛ๊͑ΔΑ͏ʹͳͬͨΒࢥ͍੾Δ l͜ͷ͘Β͍αʔόʔʹ౤ࢿ͢Ε͹େৎ෉ͩΖ͏z ΤϯδχΞΛޏΘͳ͍ସΘΓͱׂΓ੾Δ ٕज़ͱαϙʔτʹࢧ෷͏ ӡ༻ͷํ਑

  16. ϑϩϯτΤϯυ։ൃʹ஫ྗ͢Δ #BDLFOE͸"1*ΛݺͿ%#ૢ࡞ͳͲγϯϓϧͳॲཧ ސ٬ͷl࢖͍΍͢͞zʹపఈͯͩ͜͠ΘΔ EFWUPͷߴ଎Խ΋ϑϩϯτΤϯυͷνϡʔχϯά $ISPNF0OMZαϙʔτʹΑΓɺ৽ٕज़Λద༻͠΍͘͢ ӡ༻ͷํ਑ 8FC35$ 8FC4PDLFU 4FSWJDF8PSLFS 'JMF"1*

    )JTUPSZ"1* $POUFOU&EJUBCMF $BOWBT 8FC/PUJpDBUJPO %SBH%SPQ ʜ
  17. ຊ೔ͷ಺༰ αʔϏε঺հ γεςϜߏ੒ )FSPLVӡ༻ͷํ਑ ݱࡏͷӡ༻ϑϩʔ ͓ΘΓʹ

  18. ೔ࠒͷӡ༻ શͯͷ௨஌Λ4MBDLʹू໿ lఆظతͳλεΫzΛແ͘͢ ϩάl&SSPSzͰ௨஌ ௨࿩ΤϥʔͰ௨஌ 'BMMCBDL  ϝʔϧి࿩αϙʔτͰ௨஌ $3.ొ࿥Ͱ௨஌ ೔

    ճ )FSPLV.FUSJDT͚ͩνΣοΫ ඞཁʹԠͯ͡4DPVU 1BQFSUSBJMͰௐࠪ Ϧιʔεͷׂ߹    ։ൃ αϙʔτ ӡ༻
  19. %BUB$MJQTΛ׆༻ 1BQFSUSBJMͷΠϕϯτ໊ʹ%BUB$MJQT63-Ληοτ ಛఆͷ1BQFSUSBJMΠϕϯτൃੜ࣌ʹ4MBDL௨஌ %BUB$MJQTͰ࠷৽৘ใΛνΣοΫ ϝϯόʔʹ42-Λڭ͑Δ͜ͱͰ௒ॊೈͳ؅ཧπʔϧΛ࣮ݱ Ͳ͏ͯ͠΋ߋ৽࡟আͷରԠ͕ඞཁͳ͚࣌ͩ AIFSPLVSVODPOTPMFA

  20. ιʔείʔυͷվળ αʔόʔ΍%#ʹෛՙΛ͔͚ͤ͞ͳ͍ .FUSJDT"EEPOΛఆظతʹ֬ೝ͠ɺॏ͍ॲཧΛमਖ਼ ແବͳॲཧΛͳ͘͢ / 2VFSZͳͲ  ىಈϝϞϦ ϥΠϒϥϦϩʔυ ΛݮΒ͢

    େྔͷϨίʔυΛऔಘ͢ΔΑ͏ͳ6*Λ࡞Βͳ͍ ը૾౳ͷΞοϓϩʔυ͸αʔόʔհͣ͞4΁௚઀͋͛Δ ࣌ؒͷ͔͔Δॲཧ͸"84-BNCEB΍8PSLFS%ZOP 4DIFEVMFS΁
  21. ຊ೔ͷ಺༰ αʔϏε঺հ γεςϜߏ੒ )FSPLVӡ༻ͷํ਑ ݱࡏͷӡ༻ϑϩʔ ͓ΘΓʹ

  22. )FSPLVΛ࢖͑͹ΤϯδχΞਓͰ΋αʔϏεΛࢧ͑ΒΕΔ ࢥ૝ʹج͍ͮͨzϒϨͳ͍z։ൃ όά΍ো֐ͷগͳ͍αʔϏεӡ༻ ढ़හͳߦಈͱࣗ༝ Πϯϑϥ͸׬શʹ)FSPLVʹ೚ͤΔ൑அ͕ඞཁ ఆظతͳӡ༻ͷഉআΛపఈ͢Δ

  23. ͓஌Βͤ )FSPLV6(4MBDLάϧʔϓ ࢀՃ͓଴ͪͯ͠·͢ʂ

  24. 5IBOLT