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 FaaS 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)
- Functional Concurrency in .NET with C# and F# (in London on 9th - 10th September 2019)
- Software Architecture for Developers Workshop with Robert Smallshire (in London on 9th - 10th September 2019)
- Infiniteconf 2019 - The conference on Big Data and AI (in London on 4th - 5th July 2019)
- Keynote by Kris Nova on The Power of Linux Virtualization with Cloud Native (in London on 19th June 2019)
- Applying Chaos Engineering to build Resilient Serverless Applications (in London on 9th July 2019)
- Securing microservices in a serverless world (SkillsCast recorded in June 2019)
- Solving 5 typical Issues in API development with Domain Driven Design (SkillsCast recorded in June 2019)