Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

"84ϝΠϯͷձࣾͰ&MJYJSͷ͜ͱΛ Α͘#MPHͰॻ͍ͯ·͢ ձࣾ ࢲ

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

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

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

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

Slide 9

Slide 9 text

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

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

Ϩίʔυͷऔಘ ߋ৽

Slide 12

Slide 12 text

࡟আ

Slide 13

Slide 13 text

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

Slide 14

Slide 14 text

4/4τϐοΫ΁ͷύϒϦογϡ

Slide 15

Slide 15 text

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

Slide 16

Slide 16 text

,JOFTJT4USFBNTܦ༝Ͱ%ZOBNP%#΁ ఆྔ8$6ॻ͖ࠐΈ Stream Lambda DynamoDB Stream Lambda Worker w %ZOBNP%#΁ͷେྔϨίʔυॻ͖ࠐΈ w -BNCEBͰಡΈࠐΈϨίʔυྔΛτϦΨʔͰݻఆͯ͠ %ZOBNP%#΁ͷॻ͖ࠐΈྔΛௐ੔͢Δ

Slide 17

Slide 17 text

4USFBN΁ͷϨίʔυ௥Ճ ෳ਺Ϩίʔυ௥Ճ

Slide 18

Slide 18 text

4USFBN͔ΒͷϨίʔυऔಘ

Slide 19

Slide 19 text

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

Slide 20

Slide 20 text

·ͱΊ w &Y"XTΛ࢖ͬͯ"84ͷ"1*Λ࢖͏ͷ͸ඇৗʹ؆୯ w ݱࡏ΋։ൃ͕׆ൃͰࠓޙ΋ରԠαʔϏε͕૿͍͑ͯ ͘ͱࢥΘΕΔ w υΩϡϝϯτ΋͔ͬ͠Γ͍ͯ͠Δ w όάɺυΩϡϝϯτमਖ਼ͳͲ·ͩ·ͩਓख͕଍Γͳ ͦ͏ͳͷͰߩݙͰ͖Δνϟϯε΋͋Δ
 ʢࣗ෼΋খ͍͞मਖ਼ͳͲϓϧϦΫૹͬͨΓͯ͠·͢ʣ