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
NGINXとApacheざっくり比較 - NGINX MeetUp #1 Lightning ...
Search
NGINX Japan
November 14, 2018
Technology
0
120
NGINXとApacheざっくり比較 - NGINX MeetUp #1 Lightning Talks
NGINX Japan
November 14, 2018
Tweet
Share
More Decks by NGINX Japan
See All by NGINX Japan
NGINX / Developers Summit 2019
nginx_jp
0
1.5k
NGINX Plus - マイクロサービスの高可用性 / JapanContainerDays v18.12
nginx_jp
4
2k
NGINX Plusのご紹介 - Red Hat Forum Tokyo 2018
nginx_jp
0
120
Other Decks in Technology
See All in Technology
ドメイン特化なCLIPモデルとデータセットの紹介
tattaka
1
200
より良いプロダクトの開発を目指して - 情報を中心としたプロダクト開発 #phpcon #phpcon2025
bengo4com
1
3.1k
Witchcraft for Memory
pocke
1
500
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
26k
米国国防総省のDevSecOpsライフサイクルをAWSのセキュリティサービスとOSSで実現
syoshie
2
1.2k
第9回情シス転職ミートアップ_テックタッチ株式会社
forester3003
0
260
生まれ変わった AWS Security Hub (Preview) を紹介 #reInforce_osaka / reInforce New Security Hub
masahirokawahara
0
260
Yamla: Rustでつくるリアルタイム性を追求した機械学習基盤 / Yamla: A Rust-Based Machine Learning Platform Pursuing Real-Time Capabilities
lycorptech_jp
PRO
4
150
本が全く読めなかった過去の自分へ
genshun9
0
620
SpringBoot x TestContainerで実現するポータブル自動結合テスト
demaecan
0
100
AWS Organizations 新機能!マルチパーティ承認の紹介
yhana
1
170
解析の定理証明実践@Lean 4
dec9ue
0
180
Featured
See All Featured
The Language of Interfaces
destraynor
158
25k
Faster Mobile Websites
deanohume
307
31k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Facilitating Awesome Meetings
lara
54
6.4k
Code Reviewing Like a Champion
maltzj
524
40k
Unsuck your backbone
ammeep
671
58k
Visualization
eitanlees
146
16k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
490
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
710
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
657
60k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.5k
Documentation Writing (for coders)
carmenintech
72
4.9k
Transcript
NGINXͱApache ͬ͘͟Γൺֱ ాล ໜ 2018/11/14
ͦͷൺֱɺඞཁʁ ҙ֎ͱΑ͘ฉ͔Ε·͢ɻ Χʔυͱ͓ͯ࣋ͬͯ͘͠ͱྑ͍͔ ࢲࣗࡧதͰ͢ɻ ͥͻ͝ҙݟ͝ܦݧڭ͍͑ͯͩ͘͞
ࣗݾհ 3 • ాลໜ • NGINXࣾ ςΫχΧϧɾιϦϡʔγϣϯζɾΞʔΩςΫτ • ܦҢ ◦
ΦʔϓϯιʔεɾWebܥͷϑϦʔϥϯεΤϯδχΞɿॳظWebͷԿͰ ◦ ϚΠΫϩιϑτܥɾΤϯλʔϓϥΠζܥɿIDཧɾPowerShell ◦ ϞόΠϧͷΞϓϦͱσόΠεཧɿCIɾMDM ◦ Webܥʹճؼɿઈࢍษڧத
4 ॳ൛ɿ1997ൃߦ
Nginxɺ40%͑ - WebαΠτγΣΞௐࠪ 5 • 11/6 ͷχϡʔε ◦ ੈքͷWebαΠτͷ40%͕NginxΛར༻ ◦
τοϓ1ສαΠτʹ͓͍ͯ66.7%͕ NginxΛར༻
20ੈل vs 21ੈل 6 • Apache HTTP Server ◦ 1995ొ
2.4: 2012 ݱࡏ 2.4.37 ރΕ͍ͬͯΔʢ͍͍ҙຯͰʣ ࠓޙ৽͍͠ػೳՃͳͦ͞͏ ◦ LAMPͷॏཁཁૉ ◦ Webʹඞཁͳͷશ෦ Webքͷsendmail? • NGINX ◦ 2002ొ ◦ C10Kͷղܾ ◦ ͘ɺޮΑ͘ ◦ ϦόʔεϓϩΩγΩϟογϡ ϩʔυόϥϯεͳͲͷ ࠷ۙͷཁʹ࠷ॳ͔ΒରԠ HTTPҎ֎ʹରԠ
ύϑΥʔϚϯε 7 • ੩తίϯςϯπͰnginx ͕2ഒ͍ (Wikipedia) ◦ 1000ಉ࣌ଓͰnginx͕2.5ഒ͍ (eschrade.com) ◦
512ಉ࣌ଓͰnginx͕2ഒ͍ (speedemy) • ಈతίϯςϯπͰ΄΅ಉ ◦ ΞϓϦଆ͕ ◦ ΩϟογϡͳͲΛ׆༻
NGINX͍ܰʁ 8 • ݕূྫ (https://stackshare.io/stackups/apache-httpd-vs-nginx) ◦ Ubuntu 18.04, Apache 2.4.29
(mpm_event), Nginx 1.14.0 ◦ Default settings, 1GB ram, 1 CPU ◦ wrk: -d 60 (duration of the test), -c 40 (concurrency), --latency (latency distribution) ◦ ੩తίϯςϯπ
njs 9 • NGINXͷઃఆϑΝΠϧதͰ͑Δɺ JavaScriptͷαϒηοτ • ༻ྫ ◦ ΧελϜϩάϑΥʔϚοτ ◦
ϩʔυόϥϯεͷಠࣗΞϧΰϦζϜ ◦ αϒϦΫΤετͷੜ nginx.conf: js_include hello_world.js; location / { js_content hello; } hello_world.js: function hello(r) { r.return(200, "Hello world!"); } Advent ΧϨϯμʔʹॻ͜͏͔ͳ͊ɻɻɻ
ΤίγεςϜ 10 • એʂ • NGINXʹձࣾ͋Γ ◦ nginx.org ʹྑ͍ޮՌ ◦
ΤϯλʔϓϥΠζ͚ͷαϙʔτ ◦ NGINX Plus ͋Γ·͢ ◦ બ͢Δ҆৺
[email protected]
͋Γ͕ͱ͏͍͟͝·ͨ͠ @stanabe