Complicated Cloud LAMP Stack Availability Zone A Availability Zone B Availability Zone A Availability Zone B BAL BAL BAL BAL Varnish Varnish Varnish Varnish nginx nginx nginx nginx WEB WEB WEB WEB Memcache Memcache Memcache Memcache APACHE APACHE APACHE APACHE Drupal Drupal Drupal Drupal User User User User via via via via Files Git/SVN Files Git/SVN Files Git/SVN Files Git/SVN FSDB FSDB FSDB FSDB User Files User Files User Files User Files GlusterFS GlusterFS GlusterFS GlusterFS Multiregion Replication MySQL MySQL MySQL MySQL Site A Site A Site A Site A Site B Site B Sites C/D Sites C & D Acquia Confidential
Use a PaaS for your Startup PagodaBoxAppFog Acquia Cloud
PagodaBox Symfony Demo Create a free account on www.pagodabox.comDownload simple site at github.com/syrneus/phpinthecloud
PagodaBox Symfony Demo Name your new application and launch it
PagodaBox Symfony Demo Setup your SSH keys so you can easily git push changes
PagodaBox Symfony Demo Navigate to your code on the filesystem and push your website live!
Drawception – Symfony at Scale• Everything available as an API • Doctrine ORM• Twig template engine powered • Hosted on PagodaBox HTML / mobile / Facebook views
PHP – Lessons Learned• Use a framework• Don’t over engineer scalability• Use an ORM• Use UTC server time• Use a template language (even if it is PHP)• Plan for internationalization from the beginning• Use UTF-8 for your Databases• Version control APIs
Why use PHP for a Startup?• Trusted by some of the largest web companies in the world• Amazing pool of developer talent• PHP will not be your bottleneck in scalability• Don’t reinvent the wheel. Also use PHP/ Drupal for elements of your startup like the website/blog/community/etc.