Replies: 13 comments 31 replies
-
Formats logs to JSONSets
Very interesting, I'm curious if it makes logs harder to read for new users? Do you have any experience to share with this, and the reasoning behind the feature? |
Beta Was this translation helpful? Give feedback.
-
Configure Laravel Mix URLSet the
Do we want this: yes Which behavior is preferable? How is |
Beta Was this translation helpful? Give feedback.
-
Configure the default filesystem from local to S3Replace the
Do we want this: ? I'm wondering about the consequences of automatically reconfiguring this -> any negative consequence to expect? Users would be surprised maybe? Also they need to create the S3 bucket, should we create it automatically in the template |
Beta Was this translation helpful? Give feedback.
-
Maintenance mode
Do we want this: yes However I wonder if we can't use Laravel's native maintenance mode handlers? That would avoid having to implement anything, including the 503 responses. Any reason not to? |
Beta Was this translation helpful? Give feedback.
-
Serve static assets from Lambda
Do we want this: ? I'm not sure that feature makes sense since assets are supposed to be served from S3. Any reason for this? |
Beta Was this translation helpful? Give feedback.
-
Auto-create
|
Beta Was this translation helpful? Give feedback.
-
PHP-FPM support
Do we want this: I'd say yes. I think that this is very important users run Laravel in a standard (i.e. "FPM") environment by default. Octane is cool, but has an impact on how the application runs, and doesn't work with all apps. The CacheWerk bridge offers running without Octane, but that requires using the function layer. I don't think it's a good fit: first, the app doesn't run in an FPM environment (e.g. My conclusion is that we need to use the FPM runtime by default, but I'm interested to hear what you think. |
Beta Was this translation helpful? Give feedback.
-
CLI handler
I think we can simplify the CacheWerk approach by executing Why? It would look more "classic" Laravel (the console function runs WDYT? |
Beta Was this translation helpful? Give feedback.
-
Automatically load secrets from SSM
Do we want this: ? Related discussion: cachewerk/bref-laravel-bridge#8 The |
Beta Was this translation helpful? Give feedback.
-
Automatically add
|
Beta Was this translation helpful? Give feedback.
-
Laravel enables it via a file. Could use that, but then you have to deploy to enable/disable it. I find this approach much more sleek.
It does not work out of the box, but it's supported. All that is needed is a call to the directory helper in the index.php, and setting Ideally, there would be something in bref that we can register a "middleware" to, that runs on every cold start before the entry point is invoked. |
Beta Was this translation helpful? Give feedback.
-
Full Laravel Queue feature supportFor example: configure retries and delays in Laravel Queues instead of SQS, store failed messages where?
Do we want this: yes I'm not sure if all features are implement yet and what's missing (excluding the issues already open). Any idea? |
Beta Was this translation helpful? Give feedback.
-
Hi @tillkruss. I have just been attempting to try out the v2 branch on a fresh laravel project to experiment. Following the instruction on README for octane doesn't seem to be working. Could there another step I have missed?
|
Beta Was this translation helpful? Give feedback.
-
Hi!
We've been discussing with @tillkruss and @georgeboot the possibility of replacing this Laravel bridge (current repo) with https://github.com/cachewerk/bref-laravel-bridge.
Indeed, the Cachewerk bridge provides more features and solves some design issues that I'd love to correct. One of these is the SQS integration: this bridge adapts Laravel to use SQS the AWS-way. I am now convinced we need to adapt SQS to be used the Laravel-way (use Laravel Queues features like failed messages, retries, etc.).
However the 2 bridges are very different, so I'll try listing the differences, and see what we want to do about each of those. That will help us set expectations and move forward.
I'll update this top description as we discuss here and in Slack (#laravel channel). Feel free to open 1 thread below per topic.
Configure logs to stderr
Replace the
stack
log driver withstderr
.Do we want this: yes
Formats logs to JSON
Sets
logging.channels.stderr.formatter
to JSON.Do we want this: ?
Move the compiled views directory to /tmp
And auto-create the directory if it doesn't exist.
Do we want this: yes
Configure Laravel Mix URL
Set the
app.mix_url
config option.MIX_ASSET_URL
)app.asset_url
)Do we want this: yes, but which approach?
Configure HTTP proxies
Set the
trustedproxy.proxies
config option.Do we want this: yes
Configure the session driver
Replace the
session.driver
option fromfile
tocookie
.Do we want this: yes
Move the cache storage directory to /tmp
Set the
cache.stores.file.path
to/tmp
.Do we want this: yes
Configure the default filesystem from local to S3
Replace the
filesystems.default
option fromlocal
tos3
.Do we want this: ?
Configure AWS credentials (from env vars) for DynamoDB, SQS, and S3
Do we want this: yes
That's awesome!
Maintenance mode
Do we want this: yes
Serve static assets from Lambda
Do we want this: ?
Auto-create
serverless.yml
Do we want this: ?
PHP-FPM support
function
layer)Do we want this: ?
Octane support
Do we want this: yes
CLI handler
artisan
php/runtime.php
with custom codeDocumentation for "Persistent database sessions"
Do we want this: yes
Automatically load secrets from SSM
Do we want this: ?
Automatically cache config on cold start
Do we want this: yes
That is a brilliant feature!
Automatically add
X-Request-ID
to logsDo we want this: ?
Configure the scheduler to run in Lambda
The scheduler is configured to run in serverless.yml by default.
Do we want this: yes
Full Laravel Queue feature support
For example: configure retries and delays in Laravel Queues instead of SQS, store failed messages where?
Do we want this: yes
Beta Was this translation helpful? Give feedback.
All reactions