Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ExAws
Search
kanmo
January 11, 2017
Programming
1
510
ExAws
Elixir 勉強会 tokyo.ex#7 × 歌舞伎座.tech#13 資料
kanmo
January 11, 2017
Tweet
Share
More Decks by kanmo
See All by kanmo
Keep Phoenix App Productivity
kanmo
2
1.1k
Elixir/OTPを使った分散アプリケーション
kanmo
4
2.2k
Real Time Web Application with Elixir and Phoenix
kanmo
1
1.4k
Elixir 次に来る大物Web言語の可能性
kanmo
8
2.8k
Other Decks in Programming
See All in Programming
約9000個の自動テストの 時間を50分->10分に短縮 Flakyテストを1%以下に抑えた話
hatsu38
23
11k
生成 AI を活用した toitta 切片分類機能の裏側 / Inside toitta's AI-Based Factoid Clustering
pokutuna
0
570
Tuning GraphQL on Rails
pyama86
2
1k
Universal Linksの実装方法と陥りがちな罠
kaitokudou
1
220
GCCのプラグインを作る / I Made a GCC Plugin
shouth
1
150
cXML という電子商取引の トランザクションを支える プロトコルと向きあっている話
phigasui
3
2.3k
Synchronizationを支える技術
s_shimotori
1
150
カラム追加で増えるActiveRecordのメモリサイズ イメージできますか?
asayamakk
4
1.6k
弊社の「意識チョット低いアーキテクチャ」10選
texmeijin
5
23k
2万ページのSSG運用における工夫と注意点 / Vue Fes Japan 2024
chinen
3
1.3k
Modern Angular: Renovation for Your Applications
manfredsteyer
PRO
0
210
CSC305 Lecture 13
javiergs
PRO
0
130
Featured
See All Featured
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
41
2.1k
Designing on Purpose - Digital PM Summit 2013
jponch
115
6.9k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Making the Leap to Tech Lead
cromwellryan
132
8.9k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
9
680
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
43
6.6k
Thoughts on Productivity
jonyablonski
67
4.3k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.8k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
10 Git Anti Patterns You Should be Aware of
lemiorhan
654
59k
Scaling GitHub
holman
458
140k
Transcript
&Y"XTͰ"84ͷ"1* Λ͏ Elixir ษڧձ tokyo.ex#7 × Վب࠲.tech#13 2017/01/01
w "LJIJEF,BOH !LBONP@BL w $MBTTNFUIPEגࣜձࣾʹॴଐ w ීஈϞόΠϧΞϓϦαʔϏε෦ͱ͍͏ͱ͜ΖͰαʔ όαΠυͷ͓ࣄΛ͍ͯ͠·͢ʢ3VCZɺ/PEFͳ Ͳ
ɻ͋ͱΠϯϑϥʢ"84ʣ
"84ϝΠϯͷձࣾͰ&MJYJSͷ͜ͱΛ Α͘#MPHͰॻ͍ͯ·͢ ձࣾ ࢲ
ࢲͷΈʜ&MJYJSΛࣄͰ͑ͳ͍ w ձࣾͰΘΕ͍ͯΔݴޠ3VCZɺ/PEFɺ+BWBɺ 4DBMBʢ(Pগ͠ʣ w ࡢɺ্࢘ʹʮ&MJYJS͜ͷձࣾͰ͏Մೳੑ΄΅ ͳ͍͚ͲؤுͬͯʯͱݴΘΕͨ Ͳ͏͢Ε&MJYJS͑Δ͔ʜ
ͻΒΊ͍ͨʂ "84ͷձࣾͩ͠ɺ"84ͱ ͷ࿈ܞ͕ॆ࣮͍ͯ͠Ε ͑ΔΑ͏ʹͳΔ͔ʂ
ࠓΑ͋͘Δී௨ͷϞόΠϧόοΫΤϯυγεςϜ Ͱɺ&Y"XTΛͬͨ߹ͷ"84"1*ͷݺͼग़͠ʹͭ ͍͓ͯ͠͠·͢ w 4 w %ZOBNP%# w 4/4 424
w ,JOFTJT4USFBNT
&Y"XT w &MJYJSͷ"84$MJFOU-JCSBSZ w ରԠ͍ͯ͠ΔαʔϏε%ZOBNP%#ɺ4ɺ&$ɺ ,JOFTJTɺ-BNCEBɺ3%4ɺ4/4ɺ424ɺ,.4 w ࡢ݄ʹWFS͕ϦϦʔε͞Ε·ͨ͠ w TIBSFE@DSFEFOUJBMTFYQPOFOUJBMCBDLP⒎ʹରԠ
͍ͯͨ͠Γͱ৭ʑศར
4Λͬͨίϯςϯπ৴ $.4͔Βཧऀ͕ίϯςϯπΛొ ࡞ͨ͠ίϯςϯπʢ+40/ͱ͔ը૾ʣΛ4ʹΞο ϓϩʔυ $%/ܦ༝ͰϞόΠϧΞϓϦʹදࣔ͢Δ CMS S3 Cloud Front
Ξοϓϩʔυ μϯϩʔυ
%ZOBNP%#Λͬͨίϯςϯπ৴ w 4Ͱ৴͍ͯͨ͠ͷΛ%ZOBNP%# "1*αʔό ܦ༝ͰϞόΠϧΞϓϦʹදࣔ͢Δ DynamoDB API Server
Ϩίʔυͷऔಘ ߋ৽
আ
4/4τϐοΫΛͬͨϓογϡ௨ 424ܦ༝ͷσόΠετʔΫϯొ API Server SNS Topic CMS SQS Worker ϓογϡ௨
τʔΫϯొ
4/4τϐοΫͷύϒϦογϡ
424͔Βͷϝοηʔδऔಘɺআ
,JOFTJT4USFBNTܦ༝Ͱ%ZOBNP%# ఆྔ8$6ॻ͖ࠐΈ Stream Lambda DynamoDB Stream Lambda Worker w %ZOBNP%#ͷେྔϨίʔυॻ͖ࠐΈ
w -BNCEBͰಡΈࠐΈϨίʔυྔΛτϦΨʔͰݻఆͯ͠ %ZOBNP%#ͷॻ͖ࠐΈྔΛௐ͢Δ
4USFBNͷϨίʔυՃ ෳϨίʔυՃ
4USFBN͔ΒͷϨίʔυऔಘ
,.4 w ࡢɺ)JSPLJ0IUTVLB͞Μ͕࣮ͯ͘͠Ε·ͨ͠ʂ ͋Γ͕ͱ͏͍͟͝·͢☺ w ,.4҉߸ԽΩʔͷੜɺཧΛ"84ͰͰ͖ΔαʔϏε ҉߸Խ ෮߸Խ
·ͱΊ w &Y"XTΛͬͯ"84ͷ"1*Λ͏ͷඇৗʹ؆୯ w ݱࡏ։ൃ͕׆ൃͰࠓޙରԠαʔϏε͕૿͍͑ͯ ͘ͱࢥΘΕΔ w υΩϡϝϯτ͔ͬ͠Γ͍ͯ͠Δ w όάɺυΩϡϝϯτमਖ਼ͳͲ·ͩ·ͩਓख͕Γͳ
ͦ͏ͳͷͰߩݙͰ͖Δνϟϯε͋Δ ʢࣗখ͍͞मਖ਼ͳͲϓϧϦΫૹͬͨΓͯ͠·͢ʣ