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.4k
NGINX Plus - マイクロサービスの高可用性 / JapanContainerDays v18.12
nginx_jp
4
1.9k
NGINX Plusのご紹介 - Red Hat Forum Tokyo 2018
nginx_jp
0
110
Other Decks in Technology
See All in Technology
いざ、BSC討伐の旅
nikinusu
2
720
組み込みLinuxの時系列
puhitaku
4
1.1k
20241108_CS_LLMMT
shigashiyama
0
260
TinyGoを使ったVSCode拡張機能実装
askua
2
210
マイベストのデータ基盤の現在と未来 / mybest-data-infra-asis-tobe
mybestinc
2
2k
強いチームと開発生産性
onk
PRO
23
7.9k
2024年グライダー曲技世界選手権参加報告/2024 WGAC report
jscseminar
0
260
エンジニア候補者向け資料2024.11.07.pdf
macloud
0
4.6k
エンジニアが一生困らない ドキュメント作成の基本
naohiro_nakata
2
150
Redmine 6.0 新機能評価ガイド
vividtone
0
300
RubyのWebアプリケーションを50倍速くする方法 / How to Make a Ruby Web Application 50 Times Faster
hogelog
1
750
AWS Lambdaと歩んだ“サーバーレス”と今後 #lambda_10years
yoshidashingo
1
120
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
65
4.4k
What's in a price? How to price your products and services
michaelherold
243
12k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
Embracing the Ebb and Flow
colly
84
4.5k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.8k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
27
2k
GraphQLとの向き合い方2022年版
quramy
43
13k
Teambox: Starting and Learning
jrom
133
8.8k
Why Our Code Smells
bkeepers
PRO
334
57k
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