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
さよなら、レガシー画像変換システム
Search
Daichi Toma
November 22, 2018
Programming
0
1.9k
さよなら、レガシー画像変換システム
Diverse.tech #1 〜レガシーシステムを語らう夜〜
Daichi Toma
November 22, 2018
Tweet
Share
More Decks by Daichi Toma
See All by Daichi Toma
Poiboy改善への道
amothic
1
910
Other Decks in Programming
See All in Programming
Effective Signals in Angular 19+: Rules and Helpers @ngbe2024
manfredsteyer
PRO
0
130
From Translations to Multi Dimension Entities
alexanderschranz
2
130
tidymodelsによるtidyな生存時間解析 / Japan.R2024
dropout009
1
730
モバイルアプリにおける自動テストの導入戦略
ostk0069
0
110
これが俺の”自分戦略” プロセスを楽しんでいこう! - Developers CAREER Boost 2024
niftycorp
PRO
0
190
採用事例の少ないSvelteを選んだ理由と それを正解にするためにやっていること
oekazuma
2
1k
N.E.X.T LEVEL
pluu
2
300
コンテナをたくさん詰め込んだシステムとランタイムの変化
makihiro
1
120
42 best practices for Symfony, a decade later
tucksaun
1
180
今からはじめるAndroidアプリ開発 2024 / DevFest 2024
star_zero
0
1k
テストケースの名前はどうつけるべきか?
orgachem
PRO
0
130
Mermaid x AST x 生成AI = コードとドキュメントの完全同期への道
shibuyamizuho
0
160
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.5k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
510
Being A Developer After 40
akosma
87
590k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
We Have a Design System, Now What?
morganepeng
51
7.3k
Unsuck your backbone
ammeep
669
57k
Typedesign – Prime Four
hannesfritz
40
2.4k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
5
440
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
What's in a price? How to price your products and services
michaelherold
243
12k
Six Lessons from altMBA
skipperchong
27
3.5k
Transcript
͞ΑͳΒɺϨΨγʔը૾มγεςϜ Diverse.tech #1 ʙϨΨγʔγεςϜΛޠΒ͏ʙ November 22, 2018 Daichi TOMA
About Me ᙛᚸ େઍ @Amothic גࣜձࣾ Diverse Poiboy ͷαʔόαΠυΠϯϑϥΛݟͨΓ ৫पΓͷվળΛߦͬͯ·͢
ϨΨγʔγεςϜͰ໘ͯ͠ࠔΔ͜ͱ • ো͕ى͖ͯ͠ํ͕͔Βͳ͍ɺ ͘͠म෮खॱ͕ෳࡶ • εέʔϧΞτɺεέʔϧΠϯ͕͍͠ ◦ εέʔϥϏϦςΟ͕ߟྀ͞Ε͓ͯΒͣɺ Մ༻ੑ͍
ϨΨγʔγεςϜ Մ༻ੑ৴པੑ͕͍
ϨΨγʔγεςϜΛ ͲͷΑ͏ʹվળ͢Δ͔
Մ༻ੑ৴པੑΛ ࣗલͰٻ͍ͯ͘͠ͷ ίετ͕ߴ͍
ͳΔ͘ϚωʔδυαʔϏε ΛͬͯίετΛԼ͍͛ͯ͘
Poiboy ͷطଘͷը૾มγεςϜ nginx ϩʔυόϥϯγϯά squid Ωϟογϡ ngx_small_light ը૾ม Request S3
طଘγεςϜͷ • nginx ͷઃఆ͕खॻ͖ɺނো࣌ʹखಈͰ config Λ ॻ͖ͯ͠Γସ͑ͳ͚ΕͳΒͳ͍ ◦ ϔϧενΣοΫར༻͍ͯ͠ͳ͔ͬͨ •
ߏஙͷखॱ͕ࡶɺखಈͰαʔόͷηοτΞοϓΛ ߦ͏ඞཁ͕͋Δ • ߏஙͷखॱ͕ෳࡶͷͨΊɺεέʔϧΞτ εέʔϧΠϯ͕େม
ͭΒ͍
ϨΨγʔγεςϜΛ Ұͭͣͭஔ͖͍͑ͯ͘
CloudFront ͷར༻ • ͓खܰ CDN • nginx ͱ squid Λ
CloudFront ʹஔ͖͑Δ • ैྔ՝ۚͷΦʔτεέʔϧͰɺ େྔͷΞΫηε͕དྷΔ͜ͱʹͳͬͯ҆৺ • ແྉͰ SSL ূ໌ॻ͑Δ
Docker ͷ׆༻ • ngx_small_light ͷηοτΞοϓͷίετΛ Լ͛ΔͨΊ Docker Խ͢Δ • https://github.com/diverse-inc/docker-ngx-small-
light • υΩϡϝϯτΛݟͳ͕ΒߏஙΛؤுΒͳͯ͘ྑ͍ • Docker Hub Λ׆༻ͯ͠ɺϏϧυࣗಈԽ͢Δ
ECS ͷར༻ • Docker ίϯςφΛ؆୯ʹ࣮ߦɺεέʔϧ Ͱ͖Δ • ࠓ·ͰखಈͰεέʔϧΛߦ͏ඞཁ͕͕͋ͬͨɺ ෛՙʹԠͯ͡ඵͰࣗಈతʹεέʔϧ •
ϩʔυόϥϯγϯάͯ͘͠ΕΔ
Poiboy ͷ৽͍͠ը૾มγεςϜ CloudFront Ωϟογϡ ECS ίϯςφΦʔέετϨʔγϣϯ ngx_small_light ը૾ม Request S3
Poiboy ͷ৽͍͠ը૾มγεςϜ • ෛՙʹԠͯ͡উखʹεέʔϧ • ো࣌ϚωʔδυαʔϏε͕ྑ͠ͳʹͯ͠ ͘ΕΔ • खಈͰΔ࡞ۀ͕ഉআ͞Ε͍ͯΔ
࠷ߴ
·ͱΊ • ϨΨγʔγεςϜՄ༻ੑ৴པੑ͕͍ • ϚωʔδυαʔϏεΛ͍ɺίετΛ Լ͛ͭͭஔ͖͑Δ • ߏཧίʔυԽࣗ͠ಈԽ͢Δ
༨ஊ • ͦΖͦΖը૾มͯ͘͠ΕΔ ϚωʔδυαʔϏε͕ AWS ʹཉ͍͠ • AWS ͡Όͳ͚Ε Cloudinary
ͱ͔ ImageFlux ͱ͔͋Γ·͢