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

ExAws

86f6cc36138b8f2706c28d9598e7e36c?s=47 kanmo
January 11, 2017

 ExAws

Elixir 勉強会 tokyo.ex#7 × 歌舞伎座.tech#13 資料

86f6cc36138b8f2706c28d9598e7e36c?s=128

kanmo

January 11, 2017
Tweet

Transcript

  1. &Y"XTͰ"84ͷ"1* Λ࢖͏ Elixir ษڧձ tokyo.ex#7 × Վ෣ب࠲.tech#13 2017/01/01

  2. w "LJIJEF,BOH !LBONP@BL  w $MBTTNFUIPEגࣜձࣾʹॴଐ w ීஈ͸ϞόΠϧΞϓϦαʔϏε෦ͱ͍͏ͱ͜ΖͰαʔ όαΠυͷ͓࢓ࣄΛ͍ͯ͠·͢ʢ3VCZɺ/PEFͳ Ͳ

    ɻ͋ͱΠϯϑϥʢ"84ʣ
  3. "84ϝΠϯͷձࣾͰ&MJYJSͷ͜ͱΛ Α͘#MPHͰॻ͍ͯ·͢ ձࣾ ࢲ

  4. ࢲͷ೰Έʜ&MJYJSΛ࢓ࣄͰ࢖͑ͳ͍ w ձࣾͰ࢖ΘΕ͍ͯΔݴޠ͸3VCZɺ/PEFɺ+BWBɺ 4DBMBʢ(P΋গ͠ʣ w ࡢ೥ɺ্࢘ʹʮ&MJYJS͜ͷձࣾͰ࢖͏Մೳੑ͸΄΅ ͳ͍͚ͲؤுͬͯʯͱݴΘΕͨ Ͳ͏͢Ε͹&MJYJS࢖͑Δ͔ʜ

  5. ͻΒΊ͍ͨʂ "84ͷձࣾͩ͠ɺ"84ͱ ͷ࿈ܞ͕ॆ࣮͍ͯ͠Ε͹࢖ ͑ΔΑ͏ʹͳΔ͔΋ʂ

  6. ࠓ೔͸Α͋͘Δී௨ͷϞόΠϧόοΫΤϯυγεςϜ Ͱɺ&Y"XTΛ࢖ͬͨ৔߹ͷ"84"1*ͷݺͼग़͠ʹͭ ͍͓ͯ࿩͠͠·͢ w 4 w %ZOBNP%# w 4/4 424

    w ,JOFTJT4USFBNT
  7. &Y"XT w &MJYJS੡ͷ"84$MJFOU-JCSBSZ w ରԠ͍ͯ͠ΔαʔϏε͸%ZOBNP%#ɺ4ɺ&$ɺ ,JOFTJTɺ-BNCEBɺ3%4ɺ4/4ɺ424ɺ,.4 w ࡢ೥݄ʹWFS͕ϦϦʔε͞Ε·ͨ͠ w TIBSFE@DSFEFOUJBMT΍FYQPOFOUJBMCBDLP⒎ʹରԠ

    ͍ͯͨ͠Γͱ৭ʑศར
  8. 4Λ࢖ͬͨίϯςϯπ഑৴ $.4͔Β؅ཧऀ͕ίϯςϯπΛొ࿥ ࡞੒ͨ͠ίϯςϯπʢ+40/ͱ͔ը૾ʣΛ4ʹΞο ϓϩʔυ $%/ܦ༝ͰϞόΠϧΞϓϦʹදࣔ͢Δ CMS S3 Cloud Front

  9. Ξοϓϩʔυ μ΢ϯϩʔυ

  10. %ZOBNP%#Λ࢖ͬͨίϯςϯπ഑৴ w 4Ͱ഑৴͍ͯͨ͠΋ͷΛ%ZOBNP%# "1*αʔό ܦ༝ͰϞόΠϧΞϓϦʹදࣔ͢Δ DynamoDB API Server

  11. Ϩίʔυͷऔಘ ߋ৽

  12. ࡟আ

  13. 4/4τϐοΫΛ࢖ͬͨϓογϡ௨஌ 424ܦ༝ͷσόΠετʔΫϯొ࿥ API Server SNS Topic CMS SQS Worker ϓογϡ௨஌

    τʔΫϯొ࿥
  14. 4/4τϐοΫ΁ͷύϒϦογϡ

  15. 424͔Βͷϝοηʔδऔಘɺ࡟আ

  16. ,JOFTJT4USFBNTܦ༝Ͱ%ZOBNP%#΁ ఆྔ8$6ॻ͖ࠐΈ Stream Lambda DynamoDB Stream Lambda Worker w %ZOBNP%#΁ͷେྔϨίʔυॻ͖ࠐΈ

    w -BNCEBͰಡΈࠐΈϨίʔυྔΛτϦΨʔͰݻఆͯ͠ %ZOBNP%#΁ͷॻ͖ࠐΈྔΛௐ੔͢Δ
  17. 4USFBN΁ͷϨίʔυ௥Ճ ෳ਺Ϩίʔυ௥Ճ

  18. 4USFBN͔ΒͷϨίʔυऔಘ

  19. ,.4 w ࡢ೥ɺ)JSPLJ0IUTVLB͞Μ͕࣮૷ͯ͘͠Ε·ͨ͠ʂ
 ͋Γ͕ͱ͏͍͟͝·͢☺ w ,.4͸҉߸ԽΩʔͷੜ੒ɺ؅ཧΛ"84ͰͰ͖ΔαʔϏε ҉߸Խ ෮߸Խ

  20. ·ͱΊ w &Y"XTΛ࢖ͬͯ"84ͷ"1*Λ࢖͏ͷ͸ඇৗʹ؆୯ w ݱࡏ΋։ൃ͕׆ൃͰࠓޙ΋ରԠαʔϏε͕૿͍͑ͯ ͘ͱࢥΘΕΔ w υΩϡϝϯτ΋͔ͬ͠Γ͍ͯ͠Δ w όάɺυΩϡϝϯτमਖ਼ͳͲ·ͩ·ͩਓख͕଍Γͳ

    ͦ͏ͳͷͰߩݙͰ͖Δνϟϯε΋͋Δ
 ʢࣗ෼΋খ͍͞मਖ਼ͳͲϓϧϦΫૹͬͨΓͯ͠·͢ʣ