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
2k
NGINX Plusのご紹介 - Red Hat Forum Tokyo 2018
nginx_jp
0
110
Other Decks in Technology
See All in Technology
コスト削減と精度維持を両立!類似画像検索システムの内製化成功事例
shutotakahashi
0
320
DMMブックスへのTipKit導入
ttyi2
1
140
レイクハウスとはなんだったのか?
akuwano
14
1.5k
TypeScriptでモジュラーモノリスやってみた
diggymo
0
100
データ基盤におけるIaCの重要性とその運用
mtpooh
5
780
ドメイン駆動設計によるdodaダイレクトのリビルド実践 / Rebuild practice of doda direct with domain-driven design
techtekt
0
330
横断SREの立ち上げと、AWSセキュリティへの取り組みの軌跡
rvirus0817
3
3.3k
Skip Skip Run Run Run ♫
temoki
0
290
2週に1度のビッグバンリリースをデイリーリリース化するまでの苦悩 ~急成長するスタートアップのリアルな裏側~
kworkdev
PRO
8
5.2k
Mocking your codebase without cursing it
gaqzi
0
130
現実的なCompose化戦略 ~既存リスト画面の置き換え~
sansantech
PRO
0
110
論文紹介 ”Long-Context LLMs Meet RAG: Overcoming Challenges for Long Inputs in RAG” @GDG Tokyo
shukob
0
150
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
298
20k
Facilitating Awesome Meetings
lara
51
6.2k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.3k
Learning to Love Humans: Emotional Interface Design
aarron
274
40k
Designing Experiences People Love
moore
139
23k
The Pragmatic Product Professional
lauravandoore
32
6.4k
How to Ace a Technical Interview
jacobian
276
23k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
27
1.9k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.6k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
3
260
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