v0.3 - Official PHP support on Lambda, better performances and AWS SAM #113
This pull request will contain all the changes planned for v0.3 to keep master (v0.2.*) stable in the meantime.
The future website for Bref 0.3: bref.sh
Summary of changes
Bref will provide a PHP runtime optimized for CLI scripts (workers, CLI tasks, simple PHP lambdas, etc.) as well as another PHP runtime optimized for HTTP applications (based on PHP-FPM).
It is very likely that Bref will switch from the "serverless framework" to using AWS SAM instead for deployment and configuration (see #99). On top of advanced integration to other AWS services, this brings very useful tools for local development based on Docker.
With v0.3 it will be even easier to integrate HTTP applications and support any framework. Performances will also dramatically increase thanks to research and benchmarks as well as new experimental modes to run PHP faster in some scenarios (more information to come).
Finally, Bref v0.3 will come with a completely rewritten and extensive documentation.
Check out the v0.3 Kanban board.
This is amazing! What's the long-term plan for building the runtime? Will
Also, will building the runtime be invoked as part of the first
About building runtimes: ideally you shouldn't have to worry about this, it just works (see the WIP instructions in the diff: https://github.com/mnapoli/bref/pull/113/files#diff-279a8ca151371a6a63058dc411985dd1R9). And locally it just works too, SAM is incredibly awesome for this. The only thing I'm worried with SAM when running locally is performances because you get a cold start every time. But you can also still run Symfony/Laravel the only way locally, it still works that way. We'll see as we use it more.
The goal here is that whether we deploy PHP code on small on large lambdas we don't have to mess with this option. Lambda's memory limit will cut the process anyway if it gets too large in memory.
This follows the existing standards in popular Linux distributions.