Adrian Hardy has been developing commercially with PHP since December 2002. He currently works at Magma Digital as the development team lead, providing insight and experience to help build world class, business-critical applications. He has previously spoken at PHPNW (both the conference and the user group) and enjoys tinkering with all things PHP whenever he gets the chance. He has recently started investigating the deployment possibilities presented by Raspberry PI, even though his hasn’t arrived yet; He stole his boss’ raspi instead.
Put LAMP on a diet : learn from the micro-computing revolution
As web programmers, we’ve been spoilt with the luxury of powerful servers as the cost of memory and processing power plummets. The advent of the micro-computer (e.g. the ubiquitous Raspberry PI) has meant that we’re now back to a constrained environment. To paraphrase a famous misquote; “256MB RAM ought to be enough for anybody”. This talk is about getting the overhead of your web stack down. For database and web services and the PHP binaries themselves, we’ll discuss the process of finding lightweight replacements for PHP’s usual entourage. Once the stack is trimmed down, we then need to refocus on our choice of frameworks and even approaches to writing memory and CPU efficient applications. Being sensitive to resource consumption shouldn’t be a novelty. While no-one wants to advocate premature optimisation, if you know what you can squeeze out of PHP’s stack in a memory constrained environment, you should be able to take those principles when approaching a problem more conventional hardware.