4. nginx: gute Leistung geringer Aufwand
• Eventorientiert
Only software we tested which could handle 8000 (live traffic, not benchmark)
requests/second on a single server
barry.wordpress.com/2008/04/28/load-balancer-update
• Cachebare FastCGI Requests
scratchbook.ch/2010/11/06/zehntausend-anfragen-pro-sekunde
• Direkter Zugriff auf memcached
technosophos.com/content/53900-speedup-nginx-drupal-and-memcache-bring-concurrency-and-
page-load-time-way-down
• Konfiguration und Betrieb: einfach und flexibel
• simplify the software stack:
Server, Reverse Proxy und Load Balancing: ein System
26.03.2013 4
5. nginx vs. andere Server
www.zdnet.de/41559930/mehr-leistung-im-www-nginx-statt-apache-nutzen 14.02.2012
26.03.2013 5
6. nginx vs. Apache
• "Apache is like Microsoft Word, it has a million options but you only need
six. Nginx does those six things, and it does five of them 50 times faster than
Apache."
Chris Lea wiki.nginx.org/WhyUseIT
• eventbased (nginx ) vs. threadbased (Apache)
nginx: 46,9 % schneller, 55 % des Hauptspeichers benötigt
10.000 gleichzeitige HTTP-Abfragen benötigen nur etwa 2,5 MByte RAM
www.zdnet.de/41559930/mehr-leistung-im-www-nginx-statt-apache-nutzen 14.02.2012
• Nginx bei hoher Last schneller vor allem bei statischen Datieien als Apache
und verbraucht deutlich weniger Speicher.
www.wikivs.com/wiki/Apache_vs_nginx
• timmehosting.de/blog/benchmark-nginx-12-vs-apache-24-statische-
dateien-drupal-typo3
26.03.2013 6
8. nginx vs. Varnish (static)
• Varnish
– HTTP accelerator for dynamic websites
• Nginx
– excels at serving static assets. Varnish is capable of intelligently caching dynamic
content. CGI Support and SSL
• Apache+varnish a bit faster than nginx (alone)?
– I've found varnish ~5% faster for small static files than nginx -- varnish in front of apache, or
varnish in front of a web app server would be big gains; but in front of nginx, the benefit is
pretty negligible (especially with overheads and extra complexity taken into account)
todsul.com/nginx-varnish
– Using Varnish + Nginx is not worth *my* effort! (for static files)
rtcamp.com/tutorials/why-we-never-use-varnish-with-nginx/
– no advantage to put Varnish in front of nginx
www.garron.me/go2linux/nginx-varnish-vs-nginx-alone-compared.html
26.03.2013 8
9. nginx vs. Varnish (dynamic)
• Static files as fast as possible, place Nginx in front
• Dynamic ESI-enabled content, place Varnish in front
• The best ESI config :
– dynamic content served by Varnish on one VPS node
– static assets served via a subdomain (static.example.com) by Nginx on another node
• Any application that caches to static files is better off without Varnish
todsul.com/nginx-varnish
26.03.2013 9
10. nginx und TYPO3
• scratchbook.ch/2010/11/06/zehntausend-anfragen-pro-sekunde
mehr als 10.000 requests mit TYPO3
• blog.thedigitals.pl/en/how-to-boostspeed-up-your-typo3-website-with-
nginx
• www.typofree.org/article/archive/2009/august/title/running-typo3-on-
nginx
26.03.2013 10
11. nginx und TYPO3
• timmehosting.de/blog/benchmark-nginx-12-vs-apache-24-statische-dateien-drupal-typo3
26.03.2013 11