Sidecar supports equally Laravel 7 and 8 and needs PHP 7.2 or more recent.
Laravel Vapor introduced the electric power of serverless to Laravel. Utilizing Vapor, you can run your basic ol’ Laravel apps on a serverless platform and get remarkable pace, security, and reliability.
Or perhaps you want to run a one Ruby script devoid of configuring Ruby on your server. Or Java. Or even Powershell for some explanation?
You can use any of the runtimes supported by Lambda:
- Node.js 14
- Node.js 12
- Node.js 10
- Python 3.8
- Python 3.7
- Python 3.6
- Python 2.7
- Ruby 2.7
- Ruby 2.5
- Java 11
- Java 8
- Go 1.x
- .Web Main 3.1
- .Web Core 2.1
Sidecar arrives with a
sidecar:configure command that interactively walks you by location up the right permissions in AWS so that you really don’t have to mess about in the IAM UI.
At the time you have your credentials configured, producing your first Lambda calls for only two things:
- A PHP class
- The files you want to be deployed to Lambda
Let’s assume we are likely to use Node to deliver an image. Your purpose course could glimpse like this:
With your function configured, you can deploy and activate it with a simple command:
php artisan sidecar:deploy --activate
The earlier mentioned command creates your Lambda functionality on AWS and prepares it for use.
You can execute this purpose anywhere in your Laravel application only by contacting
execute on the course, passing any facts you want to the Lambda functionality.
$picture = GenerateImage::execute([ 'text' => 'This image was generated on Lambda!' ])
This post is a very temporary overview of what Sidecar can do. Sidecar also handles:
- Individual environments
- Async execution
- A number of, concurrent async execution
- Configurable memory, timeout, and runtime per function
- Independent deploy and activate steps for zero downtime or model drift
- Retrieving logs and timings for each execution
- Returning Lambda execution success specifically to the browser as Laravel responses
Make sure you note that this is a v0.1. launch. Challenges are remaining dealt with promptly, and features are staying added as they shift in the direction of a 1. release. Experience no cost to access out to the author instantly on Twitter at twitter.com/aarondfrancis.