Home / Companies / PlanetScale / Blog / Post Details
Content Deep Dive

Serverless Laravel applications with AWS Lambda and PlanetScale

Blog post from PlanetScale

Post Details
Company
Date Published
Author
Matthieu Napoli
Word Count
1,296
Language
English
Hacker News Points
-
Summary

In this article, the author creates a new Laravel application and deploys it to AWS Lambda using Bref, which simplifies configuring PHP on AWS Lambda. The author then connects to a PlanetScale MySQL database and performs load testing to demonstrate the benefits of serverless architecture, including instant autoscaling, redundant infrastructure, and pay-per-request billing. The article concludes with suggestions for further learning and improving performance, such as using Laravel Octane to keep the application in memory across requests and reuse SQL connections.