PlanetScale

Serverless Laravel applications with AWS Lambda and PlanetScale

May 3, 2023Matthieu Napoli
Serverless Laravel applications with AWS Lambda and PlanetScale
SummaryAI, from the source post

This post details the integration of PlanetScale with serverless Laravel applications running on AWS Lambda using Bref. It covers setting up the Laravel application, deploying it to Lambda, configuring the PlanetScale database connection (including SSL certificate handling), and running database migrations within Lambda. The post also demonstrates a load test to showcase Lambda's autoscaling capabilities and PlanetScale's performance under load. A key contribution is the optimization section, which introduces Laravel Octane and session persistence to significantly reduce latency by keeping the application in memory and reusing database connections across requests.

More from the Database Connection Management trail