Logo
  • PHP
    • HipHop / HHVM
    • Modern PHP
    • PHPStorm
    • LAMP
    • Laravel
    • Composer
    • PDO
  • JavaScript
    • node.js
    • AngularJS
  • CSS
    • SASS
    • “CSS4” (CSS level 4)
  • HTML
  • Git
  • LAMP
  • Vagrant
  • UI / UX
  • Architecture of …
  • Off-Topic
With ♥ from Berlin
May 19, 2014
Chris
german, How do THEY do it ?, LAMP, Linux, Refactoring, Server, The architecture of ...
Comments Off on Hochlastseiten mit PHP, MySQL und Apache am Beispiel stern.de (deutscher Artikel)

Hochlastseiten mit PHP, MySQL und Apache am Beispiel stern.de (deutscher Artikel)

PreviousNext
redaktionelle-hochlastseiten

Eine grandiose Powerpoint-Präsentation die sich jeder, der mit PHP, MySQL und Apache auf Linux arbeitet, mal anschauen sollte: Nils Langner, vielen sicherlich vom legendären PHP-Blog PHP hates me (but that’s okay) bekannt [welcher mittlerweile zu The Web hates me fusioniert ist], hat 2011 mal ausführlich erklärt, wie man 16.000.000.000 [kein Tippfehler] Requests auf stern.de abfrühstückt, und zwar OHNE den Code selbst anzufassen.

Die Präsentation ist ein Paradebeispiel für exzellenten Optimierungs-Workflow: Nils startet mit dem (theoretischen) “Geld spielt keine Rolle”-Ansatz (der immerhin knapp 6000 Server braucht!) und optimiert step für step, bis am Ende nur noch 4 (!) Server gebraucht werden. Nochmal zum Mitschreiben: OHNE den Code selbst zu ändern. Allein der erste Schritt, in dem statische Inhalte von dynamischen getrennt werden, reduziert die Server auf circa 60, also runter auf 1% (!!) vor der Optimierung. Dazu kommt eine extreme Reduktion der Renderzeit (von 6 sec auf <1sec), potentielle Frontend-Verbesserungen noch gar nicht betrachtet (und da geht heute so einiges!).

Das sind Zahlen die zum ernsthaften Nachdenken anregen und auch ganz klar die Frage nach dem Sinn von Dev-Ops im Unternehmen beantworten: Ja.

Ein großartiges Beispiel dafür, was der ach-so-amateurhafte PHP/MySQL/Apache-Stack selbst im High-End-Segment leisten kann.

Geht da noch mehr ?

Aus heutiger Sicht (die Folien sind immerhin 2 1/2 Jahre alt) wird’s dann nochmal richtig interessant, wenn man die extremen Performancesprünge der letzten PHP-Versionen mit einberechnet (real ist PHP 5.7 bis zu 30% schneller als PHP 5.5, was wiederum ggü. 5.3 auch ordentlich zugelegt hat), sich das ganze (semi-)vorkompiliert unter HipHop oder mit optimiertem nginx vorstellt. Auch Frontend-technisch ist heute extrem viel möglich, Binary-Image-Files können ohne wahrgenommenen Verlust extremst komprimiert werden (nehmt mal das erstbeste .png das auf eurem Desktop rumliegt und schickt es durch den optimizer auf tinypng.com, und das ist nur der Anfang!), Icons kommen als gezippte Pfade oder Sprites daher, und einen (fast) leeren Body auszuliefern und dann per JavaScript die Page zu bauen ist heute auch schon relativ üblich. Hier kann man locker 50%-90% Traffic und Requests und damit jede Menge CDN-Kosten einsparen.

Fazit: Das “Anfänger-Stack” mit PHP, MySQL und Apache hat definitiv das Zeug um High-End-Sites auszuliefern. Wenn man’s richtig macht. Aber das wissen wir alle ja eigentlich seit Facebook und Wikipedia sowieso.

stern.de-optimierung

 

[slideshare id=9663395&doc=prsentation2-111012142321-phpapp02]

apachededeutschgermanhigh-endLAMPoptimizationPHPvarnish
Share this

O’Reilly sells EVERY ebook for -50% right now!

A good chance to grab some IT books: O’Reilly sells every single book in their portfolio with a -50% discount

Awesome next-gen PS4 graphics in “The Order: 1886”

We are entering a very interesting time: The differences between cinematic movies and video games are getting lesser and lesser.

DigitalOcean coupon voucher 50

Only today: $50 coupon for DigitalOcean SSD VPS / hosting

Wow! The supernice SSD-cloud-server-provider DigitalOcean adds $50 (!) to new customers accounts ONLY TODAY (US-time-zones, so calculate if this is

php

PHP 5.6.0 RC1 is available

The first Release Candidate of PHP 5.6 is available here on php.net, as usual also for Windows systems. The RC

php uk conference

Slides & talks from PHP UK Conference 2014

The slides of most of PHP UK CONFERENCE 2014‘s talks are online, very interesting stuff, have a look. And a

php

“Belt” adds very clever everyday functions to PHP, comes with JavaScript naming styles and eventually solves the needle/haystack problem

This little projects is basically super-simple, but somehow really really clever and definitly a time-saver: Belt is a typical Composer-loaded

“Fuck you. Pay Me.” How to deal with clients, the professional way. An excellent talk with Mike Monteiro.

Excellent (and very useful) speech by Mike Monteiro about how to deal with clients, how to create a professional relation

O’Reilly’s Programming JavaScript Applications by Eric Elliott for free (Early Access release)

O’Reilly currently offers the entire book Programming JavaScript Applications by Eric Elliott for free (as an online-readable version) while its

css

How to center a div vertically and horizontally (modern methods, without fixed size!)

“How to center a div” (inside another div or inside the body itself) is one of the most discussed questions

hiphop php

[Link] How to set up HipHop, Nginx and Laravel in Ubuntu 12.04 LTS (in a Vagrant box)

This is probably the most useful tutorial in 2014 so far. An excellent post by Chris Fidao, explaining how to

1/4

Categories

Search

vagrant
A super-simple Vagrant LAMP stack bootstrap (installable with one command)
Frontend Ops Conf 2014 – Sarah Goff-Dupont: Git, Continuous Integration and Making It Pretty (31min video)
php mvc
Preview-release of (my) “php-mvc” project (a simple php mvc barebone)
hack-php
Wow! Facebook devs have rewritten and fixed PHP, releasing it as new language called “Hack” today
ilovepreloaders – A tumblr collection of preloader animations
Hacking ATMs – A conference talk about the current security state of Windows XP driven cash machines
redaktionelle-hochlastseiten
Hochlastseiten mit PHP, MySQL und Apache am Beispiel stern.de (deutscher Artikel)
Quick fix for 404 error in WordPress category / tag page
vagrant
How to setup a (or multiple) server/LAMP-stack inside a virtual machine for local development with Vagrant and PuPHPet
vagrant
How to copy Vagrant boxes (or duplicate them)
Disappointed by Watch Dogs’s graphics ? See how it looks with unlocked, hidden settings. Awesome!
ubuntu-14-04-lts lamp
How to install/setup a basic LAMP stack (Linux, Apache, MySQL, PHP) on Ubuntu 12.04 or Debian 7.0/7.1
steam sale coupon voucher
-30% to -90% on Steam and Origin
goodbye-lamp-going-hhvm-nosql-nginx-php
[RePost] Goodbye LAMP: Going Nginx, NoSQL, HHVM (41min conference talk with Arne Blankerts)
logo-internet-explorer
How to professionally test on old Internet Explorer versions

Tags

apache bash centos composer conference coupon CSS debian fonts framework git GitHub hack HHVM HipHop HTML HTML5 IDE JavaScript JS LAMP laravel linux mod_rewrite MVC MySQL Nginx optimization PHP PHP 5.5 PHP 5.6 phpmyadmin PHPStorm security server SSD Ubuntu UI UX vagrant video virtual machine voucher VPS wordpress
Side-Project: Wordle-Solver:
www.wordle-helper.info

Pages

  • Privacy Policy