aws-lambda-swoole-runtime
bref
Our great sponsors
aws-lambda-swoole-runtime | bref | |
---|---|---|
2 | 25 | |
28 | 2,473 | |
- | 1.1% | |
0.0 | 9.0 | |
about 1 year ago | 4 days ago | |
PHP | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
aws-lambda-swoole-runtime
bref
- AWS Lambda Function URLs: Built-In HTTPS Endpoints for Lambda
- Modern PHP
-
Using Bref's LambaRuntime to Asynchronously Run Swoole Coroutines as Functions on AWS
Bref will provide us the abstraction to communicate with AWS Lambda runtime. We can just call it at our bootstrap file. The bootstrap file is where the lambada runtime will start the invocation:
Then we can already bring Bref to the playground:
-
PHP Cloud Functions on GCP
I haven't really used GCP, but I've run many production workloads in AWS using Bref, which I'd highly recommend.
-
How does Treblle scale on AWS without breaking the bank?
During my research on how to make PHP run on Lambda I stumbled upon Bref at that time which was supposed to make that happen. I spent probably a month trying to get Laravel or any kind of a PHP application running on Lambda using Bref but I simply couldn't do it. There was always something: it was super slow and janky, cold starts were killing me, there were bugs and issues...It wasn't something I wanted to bet at that time.
-
How to enable Gzip compression in Laravel while hosting on AWS Lambda
Gradually, I learned about bref, a package that made it easy to host your PHP application on serverless. I started working on this package, finding the documentation and tutorials online. I successfully hosted my Laravel application on Lambda.
-
What is your preferred deployment strategy?
GitHub actions deploying bref.sh (which uses serverless).
-
How PHP Opcache Works
You should have a look to Bref (https://bref.sh/)
-
How do you deploy your Laravel app?
I personally don't find the cost of Vapor worth it for what it provides, especially when https://bref.sh/ is serverless Laravel for free.
What are some alternatives?
serverless-offline - Emulate AWS λ and API Gateway locally when developing your Serverless project
docker-lambda - Docker images and test runners that replicate the live AWS Lambda environment
Laravel - The Laravel Framework.
PHP-DI - The dependency injection container for humans
serverless-stack - 💥 SST makes it easy to build serverless apps. Set breakpoints and test your functions locally. https://serverless-stack.com
Lumen - The Laravel Lumen Framework.
sidecar - Deploy and execute AWS Lambda functions from your Laravel application.
laravel-bridge - Package to use Laravel on AWS Lambda with Bref
OpenWhisk - Apache OpenWhisk is an open source serverless cloud platform
aws-sdk-js-v3 - Modularized AWS SDK for JavaScript.
Swoole - 🚀 Coroutine-based concurrency library for PHP