Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sportsmediagb's avatar

Laravel Vapor - Database connection

Does anyone know if Laravel will create connections to any RDS instance out-with the handler - thus allowing Lambda to reuse connections?

I can't seem to find anything about this - my guess is that it doesn't but if someone with more insight could provide their feedback that would be appreciated.

0 likes
1 reply
tinfoilman's avatar

I don't understand what you mean by "out-with the handler" but I can tell you that I've been using Vapor for half year and I noticed that it seems to keep RDS connections alive.

When I look at the mySQL tool that I use, I can see that it always has around 50 connections in my use case, even when there's been no traffic on my site.

Please or to participate in this conversation.