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 Talks
Search
NGINX Japan
November 14, 2018
Technology
0
110
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.3k
NGINX Plus - マイクロサービスの高可用性 / JapanContainerDays v18.12
nginx_jp
4
1.8k
NGINX Plusのご紹介 - Red Hat Forum Tokyo 2018
nginx_jp
0
93
Other Decks in Technology
See All in Technology
2023 Japan AWS Jr.Championsに選出されての振り返りとこれから
hiropy877
1
130
XRミーティング 2024-03-20
1ftseabass
PRO
0
100
関数型DDDの理論と実践:「決定を遅らせる」を先につくり、 ビジネスの機動力と価値をあげる
knih
2
470
生成AI・LLM時代における 機械学習エンジニアとしてのキャリア戦略・開発戦略 / my-career-and-development-strategies-for-ml-engineer-2024
yuya4
3
240
これまでのキャリアとこれからMLエンジニアとしてどう動くか
masatakashiwagi
0
300
現実世界の事象から学ぶSOLID原則
h0r15h0
24
10k
8週連続ウェビナー_イチから学ぶFivetran
cmsuzu
0
160
サービスメッシュ環境における OpenTelemetry 活用 / OpenTelemetry in Service Mesh
k6s4i53rx
2
830
今さら聞けない!? AWSの生成AIサービス Amazon Bedrock入門!
minorun365
PRO
11
2.3k
マイクロサービス環境におけるDB戦略 in DMMプラットフォーム
pospome
11
3k
20240321_生成AI時代のDevOps
kzkmaeda
2
610
サービス成長と共に肥大化するモノレポ、長くなるCI時間 / As services grow, monorepos get bigger and CI time gets longer
kohbis
5
2.1k
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
14
2.6k
Fantastic passwords and where to find them - at NoRuKo
philnash
35
2.4k
Visualization
eitanlees
135
14k
Making Projects Easy
brettharned
106
5.4k
Designing for humans not robots
tammielis
247
25k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
101
6.6k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
24
2.2k
Building a Scalable Design System with Sketch
lauravandoore
455
32k
Designing Experiences People Love
moore
135
23k
RailsConf 2023
tenderlove
0
510
Java REST API Framework Comparison - PWX 2021
mraible
PRO
18
6.8k
The Art of Programming - Codeland 2020
erikaheidi
40
12k
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