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
530
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.3k
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
快速入門可觀測性
blueswen
0
340
たのしいparse.y
ydah
3
120
良いユニットテストを書こう
mototakatsu
5
2k
php-conference-japan-2024
tasuku43
0
230
MCP with Cloudflare Workers
yusukebe
2
220
クリエイティブコーディングとRuby学習 / Creative Coding and Learning Ruby
chobishiba
0
3.9k
PHPとAPI Platformで作る本格的なWeb APIアプリケーション(入門編) / phpcon 2024 Intro to API Platform
ttskch
0
170
Haze - Real time background blurring
chrisbanes
1
510
create_tableをしただけなのに〜囚われのuuid編〜
daisukeshinoku
0
240
Effective Signals in Angular 19+: Rules and Helpers @ngbe2024
manfredsteyer
PRO
0
130
SymfonyCon Vienna 2025: Twig, still relevant in 2025?
fabpot
3
1.2k
RWC 2024 DICOM & ISO/IEC 2022
m_seki
0
210
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.6k
How to Think Like a Performance Engineer
csswizardry
22
1.2k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
RailsConf 2023
tenderlove
29
940
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
290
Building Your Own Lightsaber
phodgson
103
6.1k
KATA
mclloyd
29
14k
Site-Speed That Sticks
csswizardry
2
190
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
For a Future-Friendly Web
brad_frost
175
9.4k
Optimising Largest Contentful Paint
csswizardry
33
3k
Visualization
eitanlees
146
15k
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 όάɺυΩϡϝϯτमਖ਼ͳͲ·ͩ·ͩਓख͕Γͳ
ͦ͏ͳͷͰߩݙͰ͖Δνϟϯε͋Δ ʢࣗখ͍͞मਖ਼ͳͲϓϧϦΫૹͬͨΓͯ͠·͢ʣ