Become Master of Your Own Universe
@philsturgeonhttp://philsturgeon.co.uk/
#dibiconf07/10/2013
http://discoverystudentadventures.blogspot.co.uk/2011/11/10-mind-bending-facts-about-universe.html
Tuesday, October 8, 13
Kapture
PyroCMS
CodeIgniter
FuelPHP
PancakeApp
ignite100
PHP The Right Way
PHP Town Hall
PHP-FIG
@philsturgeon
Tuesday, October 8, 13
Tuesday, October 8, 13
DiscoverCustomers discover photo opportunities, either organically in the
Kapture feed, or by searching.
81%Customers who say posts from friends influenced their purchasing decisions
Tuesday, October 8, 13
Enjoy & ShareCustomers will instantly unlock a perk to use at the register or save for
later. And with Kapture gifts, they can share these perks with their closest friends.
Present this screen to the
cashierGIFT PERK
Tuesday, October 8, 13
API
nginx
PHP 5.5
PHP-FPM
FuelPHP for v2
Laravel 4 for v3 and v4
Elastic Load Balancer
Tuesday, October 8, 13
Admin
nginx
PHP 5.5
PHP-FPM
Laravel 4
Twitter Bootstrap
Elastic IP
Tuesday, October 8, 13
Merchant Panel
nginx
Python
Flask
AngularJS
Elastic IP
Tuesday, October 8, 13
Frontend
nginx
PHP 5.5
PHP-FPM
Laravel 4
Should be AngularJS too
Elastic Load Balancer
Tuesday, October 8, 13
Workers
python
supervisord
Proceduralish + PIPs
Tuesday, October 8, 13
Database
MySQL
Amazon RDS
Tuesday, October 8, 13
http://the-bestselection.blogspot.co.uk/2013/08/how-to-become-brogrammer-in-10-easy.htmlTuesday, October 8, 13
http://base327.wikia.com/wiki/File:How-To-Create-A-LEGO-Star-Wars-Clone-Army.jpg
DevOps
Tuesday, October 8, 13
http://geeksyndicate.co.uk/2010/11/25/tron-legacy-encom-is-planning-a-nokia-takeover/
Vagrant
Tuesday, October 8, 13
VeeWee
http://salsapie.blogspot.co.uk/2013/09/new-pbs-parents-crafts-for-kids-video.htmlTuesday, October 8, 13
Further Reading VeeWee
• Getting Started - https://github.com/jedi4ever/veewee#getting-started
• Build your own Vagrant Boxes with VeeWee - http://bit.ly/veewee
• From Veewee, to Vagrant, then Chef - http://www.thoughtlessbanter.com/blog/2013-04-27-from-vewee-to-vagrant-then-chef/
Tuesday, October 8, 13
Provisioning
http://www.avclub.com/articles/foxs-junior-masterchef-to-find-newer-younger-chefs,97622/
Tuesday, October 8, 13
Provisioning
http://www.avclub.com/articles/foxs-junior-masterchef-to-find-newer-younger-chefs,97622/
Chef
Tuesday, October 8, 13
Provisioning
http://www.avclub.com/articles/foxs-junior-masterchef-to-find-newer-younger-chefs,97622/
Chef
Ansible
Tuesday, October 8, 13
Provisioning
http://www.avclub.com/articles/foxs-junior-masterchef-to-find-newer-younger-chefs,97622/
Chef
Ansible
Puppet
Tuesday, October 8, 13
Provisioning
http://www.avclub.com/articles/foxs-junior-masterchef-to-find-newer-younger-chefs,97622/
Chef
Ansible
Puppet
Salt
Tuesday, October 8, 13
Provisioning
http://www.avclub.com/articles/foxs-junior-masterchef-to-find-newer-younger-chefs,97622/
Chef
Ansible
Puppet
Salt
Fabric
Tuesday, October 8, 13
Further Reading Provisioning
• Managing LAMP environments with Chef, Vagrant, and EC2 - http://bit.ly/grimeychef
• Vagrant, Docker and Ansible - http://devo.ps/blog/2013/09/25/vagrant-docker-and-ansible-wtf.html
• Distributed Architecture Faking - http://bit.ly/vagranthosts
Tuesday, October 8, 13
Further Reading Provisioning
• Chef Knife EC2 - https://github.com/opscode/knife-ec2
• Chef Data Bags - http://docs.opscode.com/essentials_data_bags.html
Tuesday, October 8, 13
Environments
Copyright 2010 Mars Institute
Tuesday, October 8, 13
Environments
Copyright 2010 Mars Institute
• Dev: All the roles
Tuesday, October 8, 13
Environments
Copyright 2010 Mars Institute
• Dev: All the roles• Testing: Most of the roles
Tuesday, October 8, 13
Environments
Copyright 2010 Mars Institute
• Dev: All the roles• Testing: Most of the roles• Staging: Specific Roles
Tuesday, October 8, 13
Environments
Copyright 2010 Mars Institute
• Dev: All the roles• Testing: Most of the roles• Staging: Specific Roles
• Production: Same as Staging
Tuesday, October 8, 13
http://upload.wikimedia.org/wikipedia/commons/c/cd/Valet_Ferrari.png
Background Jobs
Tuesday, October 8, 13
Logging
http://www.ardentreefarms.com/logging/
Tuesday, October 8, 13
Monitoring
http://upload.wikimedia.org/wikipedia/commons/0/0f/Kinemetrics_seismograph.jpg
Tuesday, October 8, 13
Further Reading Monitoring
• Logstash - http://logstash.net/docs
• Measure Anything, Measure Everything - http://bit.ly/16tXgPL
• Introducing Graphiti - http://bit.ly/1fdOSsA
• Stuff it, buy NewRelic - http://newrelic.com/
Tuesday, October 8, 13
@grmpyprogrammer
Tuesday, October 8, 13
Jenkins
Tuesday, October 8, 13
Further ReadingJenkins
• Template for Jenkins Jobs for PHP Projects - http://jenkins-php.org/
• From Zero to Jenkins - http://programmingarehard.com/2013/09/26/zero-to-jenkins.html
Tuesday, October 8, 13
http://onecharmingparty.com/2010/05/05/mad-scientist-party-first-5-experiments/
Experiment
Tuesday, October 8, 13
Questions?
Tuesday, October 8, 13
Thanks!
@philsturgeon
http://philsturgeon.co.uk/
https://github.com/philsturgeon
http://lanyrd.com/2013/dibi2013/scqxfx/
Tuesday, October 8, 13