PHP on Lambda with Custom Runtimes
summary
Shows how to run real PHP on AWS Lambda by building a custom runtime: compiled PHP on Amazon Linux 2 packaged as a Lambda layer or built into a container image, using the Lambda runtime API and optionally the runtime interface emulator. Demonstrates an actual service that takes email via SES -> S3 -> Lambda email round trip, randomly capitalizes the body and replies, and exposes the same handler over function URLs cheaper than API Gateway. Covers memory/CPU tradeoffs, cold vs warm starts, and that bref/serverless simplifies production.
AI-written summary · about
chapters (17)
- 0:00PHP on Lambda intro
- 1:06Why Lambda for PHP
- 3:19Lambda scaling and billing
- 9:25Lambda storage options
- 12:14Lambda performance limits
- 15:02Lambda billing costs
- 17:36Cold and warm starts
- 21:29Custom runtimes for PHP
- 25:45Runtime lifecycle
- 31:27PHP Lambda with Docker
- 36:08Event processing
- 38:16PHP Lambda demo
- 47:50API Gateway setup
- 51:12Lambda function URLs
- 52:39Deploy PHP via Docker
- 54:48Production PHP with Bref
- 56:33Q&A
related talks
56mRunning Your PHP Site on AWS Lambda
39mServerless PHP applications with Bref
01h 03mServerless PHP: how does it really work?
44mServerless PHP applications with Bref
52mPHP on serverless, how it works under the hood
49mPractical Experience Using AWS Lambda in High-Load PHP Applications
59mServerless PHP Applications
50mServerless PHP applications with Bref
