[Share] Nginx vs Apache
#1
Bukan bermaksud untuk rasis atau gimana , ini ane share aja performa dari masing-masing webserver, setelah itu terserah om om dan tante tante mau gimana .

1. Design Model
Spoiler! :
nginx : event-based (asynchronous) web server.
apache : process-based web server.
Artinya apa , nginx tidak bergantung sepenuhnya dengan resource dari server, karena nginx bergantung kepada event yang dihandle nya. Sedangkan apache karena dia process-based maka apache bergantung kepada resource dari server. Semakin tinggi resource semakin bagus performa dari apache.

2. Handle Request
Spoiler! :
nginx : karena nginx bersifat asynchronous web server, maka nginx bisa menghandle request banyak dalam single thread. Sedangkan untuk
apache : karena dia process-based, maka dalam menghandle request apache membuat thread yang banyak.

3. Memory Consumption
Spoiler! :
nginx : karena event-based maka nginx hanya menggunakan sedikit memory.
apache : karena process-based maka setiap ada request maka apache membuat process baru, sehingga apabila ada banyak request penggunaan memory juga akan meningkat.
[Image: Webserver_memory_graph.jpg]


4. Performance
Spoiler! :
[Image: Webserver_requests_graph.jpg]

5. Configuration
Spoiler! :
nginx : Lebih susah dan complex , gak friendly dengan n00b. (dokumentasi masih terbatas).
apache : easy dan lebih banyak sample (dokumentasi).

Kesimpulan :
Untuk menangani static page dan server yang memiliki resource yang low level, nginx lebih bagus dan cocok.

Apache versi 2.4 sudah dilengkapi dengan modul MPM dimana module ini merupakan thread based bukan lagi process based.


dari : berbagai sumber


Messages In This Thread
Nginx vs Apache - by czeroo_cool - 04-16-2014, 01:11 PM
RE: Nginx vs Apache - by b4cktr4ck - 04-16-2014, 03:19 PM
RE: Nginx vs Apache - by zee eichel - 04-16-2014, 05:49 PM
RE: Nginx vs Apache - by iKONspirasi - 04-18-2014, 09:58 AM
RE: Nginx vs Apache - by mas~jojoen - 04-18-2014, 03:27 PM
RE: Nginx vs Apache - by czeroo_cool - 04-18-2014, 05:20 PM
RE: Nginx vs Apache - by mas~jojoen - 04-22-2014, 04:19 PM
RE: Nginx vs Apache - by antonl - 02-17-2015, 01:30 AM
RE: Nginx vs Apache - by malaikat_pencabut_uban - 02-17-2015, 08:05 AM
RE: Nginx vs Apache - by czeroo_cool - 02-20-2015, 12:14 AM
RE: Nginx vs Apache - by iKONspirasi - 02-21-2015, 04:34 AM
RE: Nginx vs Apache - by czeroo_cool - 07-30-2015, 12:48 PM
RE: Nginx vs Apache - by Situstarget.com - 11-05-2019, 05:46 PM




Users browsing this thread: 1 Guest(s)