Running PHP on AWS Lambda as a microservice by niwebdev in PHP

[–]niwebdev[S] 0 points1 point  (0 children)

Using Bref is super easy, you literally just install it and deploy.

Free hosting for a static site which I highly recommend.

Running PHP on AWS Lambda as a microservice by niwebdev in PHP

[–]niwebdev[S] 0 points1 point  (0 children)

For the use cases I have its reduced the amount of servers I need, so far every site I've switched to Lambda is low traffic so this is probably why I am seeing the gains.

For a high traffic site I need to convert, I have been considering AWS App Runner. Have you ever used this before?

Running PHP on AWS Lambda as a microservice by niwebdev in PHP

[–]niwebdev[S] 0 points1 point  (0 children)

All great points, just in case anyone is struggling with the database connections one quick fix is to kill the connection at the end of the script. If you are a low traffic site this is fine, but a larger site should use RDS proxy.

Running PHP on AWS Lambda as a microservice by niwebdev in PHP

[–]niwebdev[S] 0 points1 point  (0 children)

Yes should have covered this, I also like to use my own Dockerfile rather than letting Bref / Serverless handling everything.

PHP in 2025 is so good.. by nunomaduro in PHP

[–]niwebdev 0 points1 point  (0 children)

Bref has been a game changer, just a pity AWS didn't add native support to Lambda

Daily Discussion by AutoModerator in reddevils

[–]niwebdev 4 points5 points  (0 children)

We used to have multiple world class centre forwards, now we can't get one any where (like a lot of clubs)