lot of mature frameworks to use ◇ Have very large community ◇ PHP is still evolving and actively developed ◇ Catching up with modern programming features
programmers ◇ Most common use for first version of products ■ Still favorite for most startup to achieve fast iteration ◇ Single node web server, not scalable, not maintainable ◇ Tends to become large monolithic ■ At this point, it will be very hard to scale
A good product should combine a lot of tools. The right tool for the right job. ◇ Keep product scalably working large customers while rebuilding the next 1000x versions ◇ This is where putting PHP application to cloud makes sense ■ Scalable and Pay as you go
use PHP Lambda Layer from stackery https://github.com/stackery/php-lambda-layer ◇ Also available in other serverless framework, e.g. Serverless ◇ Warning: ■ Most PHP framework e.g. Laravel are using local file for caching, session management, and logging. ■ Need to move to outside service, e.g. Caching using Elasticcache, Session using DynamoDb, and Logging using Cloudwatch
code ◇ Event-based AWS resource integration ◇ Small services AWS Fargate ◇ Long running code ◇ Generic business logic ◇ Existing large codebase/service ◇ Larger and more customized library/dependencies