Ever find yourself deploying your Symfony app to your EC2 boxes and wondering if you're using your resources wisely? You're almost certainly paying for CPU time you're not using, and scaling PHP applications on AWS can be tricky. Wouldn't it be great to pay only for the stuff you actually use, and if your site could scale instantly without needing to configure auto-scaling-groups, alarms, and rules? AWS Lambda gives us these features but has no native PHP support. With emerging tools a lot of the pain of getting running has been fixed for you; the hacks and workarounds are no longer necessary and we can finally deploy PHP applications on top of SaaS infrastructure. Today we'll go through the steps required to set up a real Symfony 4 service running on Lambda, served over HTTPS, and without launching a single EC2 instance or ELB. Finally we'll see if we can retro-fit to older Symfony applications, and think about how we might benchmark application performance.
YOU MAY ALSO LIKE:
- Write faster code with Blackfire.io - from beginner to boss (SkillsCast recorded in October 2016)
- Let’s Play with Cloud Code to Run Cloud Native Applications (in Online Event on 18th June 2020)
- Going Multicloud with Serverless (SkillsCast recorded in October 2019)
- Your Kernel and You - How cgroups make containers possible (SkillsCast recorded in October 2019)