Running Symfony on AWS Lambda
summary
Sets up a real Symfony app on AWS Lambda using bref, API Gateway, CloudWatch, S3 and RDS, showing a working Symfony 4 REST API, a website with assets served from a CDN, and admin uploads using pre-signed S3 URLs. Moves sessions from local files to the database, precompiles cache in build hooks, and uses bref CLI to run remote console commands. Measured performance is ~20 ms slower than Node, memory up to 1 GB improves latency, and VPC cold starts can hit 11–13 seconds.
AI-written summary · about
chapters (30)
- 0:00Introduction
- 1:15Why run on Lambda
- 2:55Lambda PHP from scratch
- 3:51Breath
- 4:36CloudWatch
- 5:02Environments
- 5:32Hello World
- 12:41Database Connection
- 13:29Running Commands
- 15:50Making URLs prettier
- 16:01Admin system
- 16:25Scenes
- 17:51Service S3 Assets
- 18:36Package Assets
- 19:11Uploading Assets
- 19:38Admin Panel
- 20:08Migration
- 22:13Multipart form support
- 22:35Presign URLs
- 23:38Deleting files
- 25:22Recap
- 25:40Example Command
- 27:11Examples
- 28:01Setting up the app directory
- 28:41Running PHP on Lambda
- 29:29Profiling
- 30:18Performance
- 31:19Overview
- 31:41Competition
- 32:11Feedback
related talks
56mRunning Your PHP Site on AWS Lambda
39mServerless PHP applications with Bref
50mServerless PHP applications with Bref
01h 03mServerless PHP: how does it really work?
44mServerless PHP applications with Bref
02h 08mGoing serverless with PHP and Bref.sh
43mDeveloping APIs with Laravel and Serverless on AWS
58mAWS Lambda and Serverless Framework Deep dive
