$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
さよなら、レガシー画像変換システム
Search
Daichi Toma
November 22, 2018
Programming
0
2k
さよなら、レガシー画像変換システム
Diverse.tech #1 〜レガシーシステムを語らう夜〜
Daichi Toma
November 22, 2018
Tweet
Share
More Decks by Daichi Toma
See All by Daichi Toma
Poiboy改善への道
amothic
1
940
Other Decks in Programming
See All in Programming
モビリティSaaSにおけるデータ利活用の発展
nealle
1
660
複数人でのCLI/Infrastructure as Codeの暮らしを良くする
shmokmt
2
450
なあ兄弟、 余白の意味を考えてから UI実装してくれ!
ktcryomm
10
8.9k
jakarta-security-jjug-ccc-2025-fall
tnagao7
0
100
モダンJSフレームワークのビルドプロセス 〜なぜReactは503行、Svelteは12行なのか〜
fuuki12
0
130
Level up your Gemini CLI - D&D Style!
palladius
1
130
Combinatorial Interview Problems with Backtracking Solutions - From Imperative Procedural Programming to Declarative Functional Programming - Part 1
philipschwarz
PRO
0
110
CSC509 Lecture 13
javiergs
PRO
0
260
開発15年のAIネイティブでない 巨大サービスのAI最適化
rapicro
0
110
Building AI Agents with TypeScript #TSKaigiHokuriku
izumin5210
5
1.1k
AI時代もSEOを頑張っている話
shirahama_x
0
190
30分でDoctrineの仕組みと使い方を完全にマスターする / phpconkagawa 2025 Doctrine
ttskch
3
610
Featured
See All Featured
Unsuck your backbone
ammeep
671
58k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
11
950
Code Reviewing Like a Champion
maltzj
527
40k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Optimizing for Happiness
mojombo
379
70k
Designing Experiences People Love
moore
142
24k
Raft: Consensus for Rubyists
vanstee
140
7.2k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8k
4 Signs Your Business is Dying
shpigford
186
22k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.8k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
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 ͱ͔͋Γ·͢