Going Beyond LAMP - WordCamp Sheffield 2014
description
Transcript of Going Beyond LAMP - WordCamp Sheffield 2014
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
LAMPGoing Beyond... ...Then a bit further
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
LAMPLinux
ApacheMySQL
PHP
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
L[AMP]Linux
ApacheMySQL
PHP
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
WIMPWindows
IISMySQL
PHP
REALLY!!!
OMG You like Serious init!
CRAZY??
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
[AMP]“Use the best tool for the job...
...Not just the most popular”- almost certainly an engineer
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
[AMP]“You don’t dig latrines with a swiss army knife”
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
ANGINX HTTP and Proxy Server
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
AApache 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 (https://chrislea.com/)
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
MMaria DB & Percona Server
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
PHipHop Virtual Machine(HHVM)
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
P<?hhfunction yieldInfiniteInts(): Continuation<int> { $i = 0; while (true) { yield $i++; }}
$generator = yieldInfiniteInts();foreach ($generator as $value) { echo "$value\n";}
http://docs.hhvm.com/manual/en/hack.continuations.php
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
Key value storesMemcached and Redis (Redis Cloud)
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
Key : Value
Tim : Geeky
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
Queue ManagementBeanstalkd & Gearman
(Amazon SQS)
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk
1. WordPress sends job to queue2. Job Server (Beanstalk, Gearman) Holds in a queue3. Worker picks job from the queue and completes it
2 .
3 .1 .
QUEUE MANAGEMENT SYSTEM
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
Caching reverse proxiesVarnish
(CloudFront, CloudFlare)
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
PROXYCACHE
HTTP SERVER(ORIGIN)
PROXY CACHING
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
VARNISH NGINX(ORIGIN)
PROXY CACHING OVER SSL WITH VARNISH
NGINXSSL END POINT
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
Search EnginesSOLR & Elastic Search
(Bonsai, Swiftype)
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
Getting Started is Easy
Use a third party service
Cheap VPS costs <£5 a month - http://lowendbox.com/
Vagrant is free!
C O M P A N Y N A M E P R E S E N T A T I O N T I T L E 1 2 - 1 2 - 2 0 1 2TimNash.co.uk @tnash #beyondLAMP
The End!Thanks for listening and don’t forget to visit...
Slides: https://timnash.co.uk/wordcamp-sheffield2014/