SlideShare a Scribd company logo
DEPLOY SOME
PHP APP 2015
FLAVOR
QUENTIN ADAM
@WAXZCE
2013
Quentin ADAM from the Clever Cloud
@waxzce on twitter – github- soundcloud – instagram ….
WHO AM I ?
MY DAY TO DAY WORK :
CLEVER CLOUD, MAKE YOUR
APP RUN ALL THE TIME
And learn a lot of things about your code, apps, and good/bad design…
KEEP YOUR APPS ONLINE. MADE WITH
NODE.JS, SCALA, JAVA, RUBY, PHP,
PYTHON, GO…
AND LEARN A LOT OF THINGS ABOUT
YOUR CODE, APPS, AND GOOD/BAD
DESIGN…
PHP AS PERSONAL HOME PAGE
DISPLAY CONTENT ON WILD WIDE WEB
THEN DISPLAY DYNAMIC CONTENT
THEN LINK TO DATABASE
USE MOD_PHP AND EVERYTHING IS
NOW ROOT
THE LAMP STACK IS BIRTH
AND SOME HOSTING PROVIDER CREATE
THE SHARED HOSTING CHEAPEST WAY
TO EXPOSE ON THE WEB
AND IT’S GREAT
THEN PEOPLE CREATE MORE AND
MORE COMPLEX APPLICATIONS
AND WE FACE PROBLEM ABOUT
HOSTING AND DEPLOYING
HOW TO
THINK THE
CODE?
PHP GREATNESS: MANAGE THE
REQUEST LIFE CYCLE
NO MUTABLE MADNESS INSIDE
VARIABLE AND RAM
BUT QUITE OFTEN MIGRATED TO THE
FILE SYSTEM
THE FILE SYSTEM
ACID
ACID
• Atomicity
• Consistency
• Isolation
• Durability
Powerful
data
management
• Transaction
• User
management
• One above one
BUT IT DESIGNS A BOTTLENECK
DO NOT USE THE FILE
SYSTEM AS A DATASTORE
File system are POSIX compliant
• POSIX is ACID
• POSIX is powerful but is a bottleneck
• File System is the nightmare of ops
• File System creates coupling (host provider/OS/language)
• SPOF-free multi tenant File System is a unicorn
STORE IN DATABASE, OR IN A DATASTORE LIKE
S3/RIAKCS DEDICATED TO FILE MANAGEMENT
SPLIT DATA AND
CODE
Data
• Databases
• Files
• Sessions
• Events
• …
Code
• Can be replicated
• Stateless
• Process
CONSIDER MORE
THINGS AS DATA
• User account
• Users data
• Files
• Sessions
• Events
DATA QUALIFICATION
CHOOSE
YOUR
DATASTORE
WISELY
YOU CAN SHOULD USE MANY DATASTORES
TRUST YOUR
MIDDLEWARE
USE AN EVENT BROKER
TO MODULARIZE YOUR
APP
USE YOUR EVENT BROKER AS ASYNC
MANAGER
USE AN EVENT BROKER
TO MODULARIZE YOUR
APP
• AMQP
• Celery
• 0MQ
• Redis
• JMS
• Even some http chunk or websocket
• Some case : hadoop, akka…
• …
CRON + FS IS NEITHER AN EVENT
QUEUE NOR A JOB SCHEDULER
USE ONLINE
DATABASE / BE
READY TO TEST
IN JUST A FEW
MINUTES
NO NEED TO TRASH YOUR COMPUTER
{P, DB, S} aaS
USE OPS FREE SOLUTION TO LEARN
AND START
LOGS
DO NOT USE THE FILE SYSTEM
AS A DATASTORE :
LOGS USE CASE
LOGS IN FILES
I HATE IT
CDN for example
MANAGE TO SERVE ASSETS FROM
SOMEWHERE ELSE
THIS IS NOT BUNCH OF SCRIPTS, THIS
IS APPLICATION
DO NOT GENERATE .PHP FILE AT RUN
FORGET ABOUT FTP, EMBRACE GIT
NEVER HOTFIX ON SERVER
USE BUILD SYSTEM,
COMPOSER FTW
COMPOSER IS THE LAST STANDING
MEN
AND NEVER
EDIT A
SINGLE FILE
FROM
VENDOR/ 0_0
BTW NPM/GRUNT/BROWSERIFY WORK
WELL FOR FRONT BUILD
DO NOT COMMIT AND SHIP DEPS
CAN YOU RUN WITHOUT WRITE PERM?
DEPLOY
THINK AT IT AS COMPILE TIME
BIANCA
HHVM
https://github.com/CleverCloud/demo-hhvm
HOW TO BUILD
http://fr.slideshare.net/quentinadam/use-docker-as-the-operation-system-builder-doker-conference
DOCKER AS AN OPERATING SYSTEM
BUILDER
UNIX - LINUX PERMISSION
THREAD AND RESOURCES
DO NOT CARE, RUN ALL ROOT
Partial isolation via vhost, weird hacks and setUid
USE MOD ITK
USE CHROOT AND SUEXEC
Do not cross the flux
FASTCGI – PHP-FPM
We don’t want to build history
ALWAYS BE AT A CLEAN STATE OF THE
SERVER/OS
Picking one instance or another doesn’t matter
STATELESSNESS IS THE KEY
USE ENV
WORK OF DEVELOPER HAS TO STOP AT
GIT PUSH
APPLICATIONS HAVE TO DEPLOY
AUTO INCREMENT
I’m @waxzce on twitter
I’m the CEO of
A PaaS provider, give it a try
;-)
THX FOR LISTENING
& QUESTIONS TIME

More Related Content

What's hot (16)

PDF
Docker Paris #28
Julien SIMON
 
PDF
Amazon ECS (March 2016)
Julien SIMON
 
PDF
How to copy multiple files from local to aws s3 bucket using aws cli
Katy Slemon
 
PDF
Deploying a simple Rails application with AWS Elastic Beanstalk
Julien SIMON
 
PDF
JUST EAT: Embracing DevOps
Peter Mounce
 
PPTX
Managing AWS infrastructure using CloudFormation
Anton Babenko
 
PPTX
Understand AWS OpsWorks - A DevOps Tool from AWS
devopsjourney
 
PDF
Installing WordPress on AWS
Manish Jain
 
PDF
Docker Paris #29
Julien SIMON
 
PPTX
AWS @designa
Javier Tomas Zon
 
PPTX
Deep Dive into AWS ECS and Spot Instances at Scale
Pahud Hsieh
 
PDF
Building serverless apps with Node.js
Julien SIMON
 
PDF
Expand Your ColdFusion App Power with AWS
ColdFusionConference
 
PDF
Amazon SWF and Gordon
Jonathan Weiss
 
PPTX
Your First multi tier Serverless Architecture on AWS
Jeshan Babooa
 
PDF
ECS and ECR deep dive
Shiva Narayanaswamy
 
Docker Paris #28
Julien SIMON
 
Amazon ECS (March 2016)
Julien SIMON
 
How to copy multiple files from local to aws s3 bucket using aws cli
Katy Slemon
 
Deploying a simple Rails application with AWS Elastic Beanstalk
Julien SIMON
 
JUST EAT: Embracing DevOps
Peter Mounce
 
Managing AWS infrastructure using CloudFormation
Anton Babenko
 
Understand AWS OpsWorks - A DevOps Tool from AWS
devopsjourney
 
Installing WordPress on AWS
Manish Jain
 
Docker Paris #29
Julien SIMON
 
AWS @designa
Javier Tomas Zon
 
Deep Dive into AWS ECS and Spot Instances at Scale
Pahud Hsieh
 
Building serverless apps with Node.js
Julien SIMON
 
Expand Your ColdFusion App Power with AWS
ColdFusionConference
 
Amazon SWF and Gordon
Jonathan Weiss
 
Your First multi tier Serverless Architecture on AWS
Jeshan Babooa
 
ECS and ECR deep dive
Shiva Narayanaswamy
 

Similar to PHP deploy 2015 flavor - talk from php tour 2015 luxembourg (20)

PPTX
PHP deployment, 2016 flavor - cakefest 2016
Quentin Adam
 
PPTX
How to scale your applications ? - #bzhcamp
Quentin Adam
 
PPTX
How to scale your app and win the cloud challenge
Quentin Adam
 
PPTX
From delivering plugins to delivering "as a Service" - Atlassian connect 2017
Quentin Adam
 
PPTX
Some advice from the guy who handle your applications uptime - scalaIO 2013
Quentin Adam
 
PDF
Where should I run my code? Serverless, Containers, Virtual Machines and more
Bret McGowen - NYC Google Developer Advocate
 
PDF
Containerizing legacy applications
Andrew Kirkpatrick
 
PDF
Scaling PHP apps
Matteo Moretti
 
PDF
Midwest php 2013 deploying php on paas- why & how
dotCloud
 
PPTX
The world of Docker and Kubernetes
vty
 
PDF
The Lazy Developer's Guide to Cloud Foundry - Holly Cummins
JAXLondon2014
 
PPTX
Understand immutable infrastructure, what? Why? how? - devops d day Marseill...
Quentin Adam
 
PDF
How Percolate uses CFEngine to Manage AWS Stateless Infrastructure
Percolate
 
PPTX
The end of server management : hosting have to become a commodity - #devoxxPL...
Quentin Adam
 
PDF
Cloud Best Practices
Eric Bottard
 
PPTX
Deploying Web Apps with PaaS and Docker Tools
Eddie Lau
 
PPTX
Intro Docker to Loire Atlantique
Julien Barbier
 
PDF
Managing Large Flask Applications On Google App Engine (GAE)
Emmanuel Olowosulu
 
PDF
Scaling with Symfony - PHP UK
Ricard Clau
 
ZIP
Introduction to Google App Engine
mdc11
 
PHP deployment, 2016 flavor - cakefest 2016
Quentin Adam
 
How to scale your applications ? - #bzhcamp
Quentin Adam
 
How to scale your app and win the cloud challenge
Quentin Adam
 
From delivering plugins to delivering "as a Service" - Atlassian connect 2017
Quentin Adam
 
Some advice from the guy who handle your applications uptime - scalaIO 2013
Quentin Adam
 
Where should I run my code? Serverless, Containers, Virtual Machines and more
Bret McGowen - NYC Google Developer Advocate
 
Containerizing legacy applications
Andrew Kirkpatrick
 
Scaling PHP apps
Matteo Moretti
 
Midwest php 2013 deploying php on paas- why & how
dotCloud
 
The world of Docker and Kubernetes
vty
 
The Lazy Developer's Guide to Cloud Foundry - Holly Cummins
JAXLondon2014
 
Understand immutable infrastructure, what? Why? how? - devops d day Marseill...
Quentin Adam
 
How Percolate uses CFEngine to Manage AWS Stateless Infrastructure
Percolate
 
The end of server management : hosting have to become a commodity - #devoxxPL...
Quentin Adam
 
Cloud Best Practices
Eric Bottard
 
Deploying Web Apps with PaaS and Docker Tools
Eddie Lau
 
Intro Docker to Loire Atlantique
Julien Barbier
 
Managing Large Flask Applications On Google App Engine (GAE)
Emmanuel Olowosulu
 
Scaling with Symfony - PHP UK
Ricard Clau
 
Introduction to Google App Engine
mdc11
 
Ad

More from Quentin Adam (20)

PPTX
Beyond Interoperability : Versatility as the future of Cloud services
Quentin Adam
 
PPTX
Lunaconf DIgital Market in Europe talk for Tech
Quentin Adam
 
PPTX
Opening Keynote : Domestic Digital market - Jug summercamp 2024
Quentin Adam
 
PPTX
Biscuit, the cryptotoken you can share safely with your ap is
Quentin Adam
 
PPTX
Keynot Cloud Expo Intel
Quentin Adam
 
PPTX
Pulsar 101 at devoxx
Quentin Adam
 
PPTX
Traversing hyper driven developpement to do great technical choices and make ...
Quentin Adam
 
PPTX
How to make people work together? - ending keynote - devfest du bout du monde...
Quentin Adam
 
PPTX
Remove centralization on Authorization - API Days Paris 2018 (announcement fo...
Quentin Adam
 
PPTX
PostgreSQL is the new NoSQL - at Devoxx 2018
Quentin Adam
 
PPTX
Hype driven architecture - keynote at devfest Toulouse 2018
Quentin Adam
 
PPTX
Real world code, why are you so ashamed? - RivieraDev 2018
Quentin Adam
 
PPTX
Monitorer l'inconnu, 1000 * 100 series par jour - talk avec @clementd à #devo...
Quentin Adam
 
PPTX
Comment les contrôleurs de gestion ont fuck up mon IT - Lean Kanban France 2017
Quentin Adam
 
PPTX
Monitoring the unknown, 1000*100 series a day - Big Data Vilnius 2017
Quentin Adam
 
PPTX
Problems you’ll face in the Microservices World: Configuration, Authenticatio...
Quentin Adam
 
PPTX
MONITORING THE UNKNOWN, 1000*100 SERIES A DAY - DEVOXX MOROCCO 2017
Quentin Adam
 
PPTX
Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D D...
Quentin Adam
 
PDF
What is Clever Cloud?
Quentin Adam
 
PPTX
Why all my software projects are late?
Quentin Adam
 
Beyond Interoperability : Versatility as the future of Cloud services
Quentin Adam
 
Lunaconf DIgital Market in Europe talk for Tech
Quentin Adam
 
Opening Keynote : Domestic Digital market - Jug summercamp 2024
Quentin Adam
 
Biscuit, the cryptotoken you can share safely with your ap is
Quentin Adam
 
Keynot Cloud Expo Intel
Quentin Adam
 
Pulsar 101 at devoxx
Quentin Adam
 
Traversing hyper driven developpement to do great technical choices and make ...
Quentin Adam
 
How to make people work together? - ending keynote - devfest du bout du monde...
Quentin Adam
 
Remove centralization on Authorization - API Days Paris 2018 (announcement fo...
Quentin Adam
 
PostgreSQL is the new NoSQL - at Devoxx 2018
Quentin Adam
 
Hype driven architecture - keynote at devfest Toulouse 2018
Quentin Adam
 
Real world code, why are you so ashamed? - RivieraDev 2018
Quentin Adam
 
Monitorer l'inconnu, 1000 * 100 series par jour - talk avec @clementd à #devo...
Quentin Adam
 
Comment les contrôleurs de gestion ont fuck up mon IT - Lean Kanban France 2017
Quentin Adam
 
Monitoring the unknown, 1000*100 series a day - Big Data Vilnius 2017
Quentin Adam
 
Problems you’ll face in the Microservices World: Configuration, Authenticatio...
Quentin Adam
 
MONITORING THE UNKNOWN, 1000*100 SERIES A DAY - DEVOXX MOROCCO 2017
Quentin Adam
 
Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D D...
Quentin Adam
 
What is Clever Cloud?
Quentin Adam
 
Why all my software projects are late?
Quentin Adam
 
Ad

Recently uploaded (20)

PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
July Patch Tuesday
Ivanti
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
July Patch Tuesday
Ivanti
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 

PHP deploy 2015 flavor - talk from php tour 2015 luxembourg