In March 2012, the Singapore PHP User Group was running a lab entitled “PHP In the Cloud”. I put this talk together for them on relatively short notice, but overall I think it turned out pretty well.
In the talk, I mention four things that you can do to help ensure that your app can scale horizontally in the cloud:
- Store your file uploads on an external file storage service such as Amazon S3.
- Do not keep your database on the localhost.
- Use an external memcache server or service for PHP session storage.
- Keep your VCS repo lean.