Slides for the lightning talk "A practical 10m intro to PHP on Heroku"
See the version with animated gif at http://yet.another.linux-nerd.com/blog/a-10-minutes-intro-to-heroku-php-hosting
6. Hi !
I am Olivier Garcia
I am here because I’ve been
through that before.
You can find me at:
@0livier
7. SOMETIMES, it’s better to
○ Delegate hardware & platform management
○ Focus on code & customers, not technical scaling
8. Platform As A Service
Run Web applications without building and
maintaining the infrastructure
9. PaaS
You’re given a repo
You push your code
e.g. Heroku, Azure
IaaS
You’re given a server
You install a Linux
e.g. OVH, AWS
Comparing /.+ as a Service/
SaaS
You’re given software
You use it
e.g. Gmail, Salesforce
11. Languages
○ PHP
○ JS
○ Go
○ Python
○ Java/Scale
○ Closure
and more !
Runs most of the OSS tech stack
DB
○ MySQL
○ PostgreSQL
○ MongoDB
○ Redis
○ Solr
○ Graphite
and more !
12. ○ Everything can be
done in CLI &
automated
Insanely easy to work with
○ Great documentation
○ Huge list of add-ons
13. Load balancing
Requests are load
balanced on all
nodes, no custom
rules can be made
When it’s is not the right solution
Custom components
It may take some
time/skills to add
special components
eg. mod_deflate for Apache
Size
Your app must hold
in 100MB
14. Caching
You may need
Varnish and a CDN
on top of your app
When it’s is not the right solution
No custom hardware
The only way to get
more RAM or CPU is
to buy new instances
Price
With a lot of traffic or
processing, the
hosting will get
expensive quickly
31. CREDITS
Special thanks to all the people who made and
released these awesome resources:
○ Various GIF from reactiongifs.com and gif.lol.cat
○ Presentation template by SlidesCarnival
○ Photographs by Unsplash