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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
NGINX Japan
November 14, 2018
Technology
130
0
Share
NGINXとApacheざっくり比較 - NGINX MeetUp #1 Lightning Talks
NGINX Japan
November 14, 2018
More Decks by NGINX Japan
See All by NGINX Japan
NGINX / Developers Summit 2019
nginx_jp
0
1.6k
NGINX Plus - マイクロサービスの高可用性 / JapanContainerDays v18.12
nginx_jp
4
2.1k
NGINX Plusのご紹介 - Red Hat Forum Tokyo 2018
nginx_jp
0
120
Other Decks in Technology
See All in Technology
多角的な視点から見たAGI
terisuke
0
130
[Scram Fest Niigata2026]Quality as Code〜AIにQAの思考を再現させる試み〜
masamiyajiri
1
320
AI駆動開発で生産性を追いかけたら、行き着いたのは品質とシフトレフトだった
littlehands
0
490
Modernizing Your HCL Connections Experience: Visual Report to chain, Profile Enhancements, and AI Integration
wannesrams
0
300
Agent の「自由」と「安全」〜未来に向けて今できること〜
katayan
0
360
なぜ、私がCommunity Builderに?〜活動期間1か月半でも選出されたワケ〜
yama3133
0
130
Oracle Exadata Database Service on Cloud@Customer X11M (ExaDB-C@C) サービス概要
oracle4engineer
PRO
2
8k
知ってた?JavaScriptの"正しさ"を検証するテストが5万以上もあること(Test262)
riyaamemiya
1
190
20260507-ACL-seminar
satoshi5884
0
110
みんなの考えた最強のデータ基盤アーキテクチャ'26前期〜前夜祭〜ルーキーズ_資料_遠藤な
endonanana
0
310
Purview 勉強会報告 Microsoft Purview 入門しようとしてみた
masakichixo
1
370
QAエンジニアはどうやって プロダクト議論の場に入れるのか?
moritamasami
2
420
Featured
See All Featured
Abbi's Birthday
coloredviolet
2
7.5k
The agentic SEO stack - context over prompts
schlessera
0
770
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
180
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.8k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
190
Color Theory Basics | Prateek | Gurzu
gurzu
0
310
How GitHub (no longer) Works
holman
316
150k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
360
Code Review Best Practice
trishagee
74
20k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
230
How to Think Like a Performance Engineer
csswizardry
28
2.6k
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