You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/src/pages/news/03-bref-3.0.mdx
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ import cloudXrayFiltersAnnotations from '../docs/monitoring/cloud-xray-filters-a
25
25
author="Matthieu Napoli"
26
26
authorGitHub="mnapoli" />
27
27
28
-
Bref 3.0 is here! Since Bref 2.0, we've grown from 10 billion to **40 billion Lambda executions** (aka requests) every month. The package has been installed more than **8 million times**, and we've crossed**4,000 commits** across all Bref repositories.
28
+
Bref 3.0 is here! Since Bref 2.0, we've grown from 10 billion to **40 billion Lambda executions** (aka requests) every month. The package has been installed more than **9 million times**, and we've reached**4,000 commits** across all Bref repositories.
29
29
30
30
Today, we celebrate these achievements and **the release of Bref 3.0** 🎉
31
31
@@ -58,7 +58,7 @@ For a complete list of changes and instructions, check out the [**v3 upgrade gui
58
58
59
59
## Faster Lambda cold starts
60
60
61
-
The Bref layers for AWS Lambda have been optimized and their size reduced. It leaves more room for your code and should improve cold start times.
61
+
The Bref layers for AWS Lambda have been optimized and their size reduced. This leaves more room for your code and should improve cold start times.
62
62
63
63
- PHP 8.4: 69MB → 53MB
64
64
- PHP 8.3: 65MB → 46MB
@@ -74,7 +74,7 @@ This was achieved through plenty of tests leading to these optimizations:
74
74
75
75
Bref 3.0 is built on **[Amazon Linux 2023](https://docs.aws.amazon.com/linux/al2023/ug/what-is-amazon-linux.html)** (AL2023), the latest version of Amazon's Linux distribution for AWS.
76
76
77
-
The previous Bref versions were built on **Amazon Linux 2** (AL2), which has been deprecated by AWS. AWS Lambda will continue to support AL2 for some time, but it's recommended to migrate to AL2023 as soon as possible.
77
+
The previous Bref versions were built on **Amazon Linux 2** (AL2), which is reaching end of life soon. AWS Lambda will continue to support AL2 for some time, but it's recommended to migrate to AL2023 as soon as possible.
78
78
79
79
This upgrade brings several benefits:
80
80
@@ -99,7 +99,7 @@ functions:
99
99
100
100
The **Redis extension** is now included in Bref layers by default. Redis is one of the most used extensions by Bref users for caching and session storage.
101
101
102
-
If you were using the Redis extension from [bref/extra-php-extensions](https://github.com/brefphp/extra-php-extensions), remove the layer from your `serverless.yml`:
102
+
If you were using the Redis extension from [`bref/extra-php-extensions`](https://github.com/brefphp/extra-php-extensions), remove the layer from your `serverless.yml`:
103
103
104
104
```diff filename="serverless.yml"
105
105
functions:
@@ -161,7 +161,7 @@ This format makes logs easier to read in CloudWatch and enables powerful filteri
161
161
162
162
**Exception handling is also greatly improved:** Previously, exception stack traces were split across multiple CloudWatch log records (one per line), making them difficult to read and browse. Now, the entire exception (including stack trace) is grouped in a single JSON object, making debugging much easier.
163
163
164
-
That new logging approach also allows reading all the logs of a single request, by filtering via the AWS request ID.
164
+
That new logging approach also lets you read all the logs of a single request, by filtering via the AWS request ID.
165
165
166
166
## Lambda request ID and trace ID
167
167
@@ -244,13 +244,13 @@ Combined with the [improved CloudWatch logs](#better-cloudwatch-logs) and the [L
244
244
245
245
## Community Serverless Framework
246
246
247
-
While not directly related to Bref v3, this is worth mentioning: the original [Serverless Framework](https://www.serverless.com/) is no longer fully open-source with its v4 and requires a paid license. Since most of the Bref community relies on the `serverless` CLI to deploy their applications, this was a problem.
247
+
While not directly related to Bref v3, this is worth mentioning: the original [Serverless Framework](https://www.serverless.com/) is no longer fully open-source with its v4 and requires a paid license. Since most of the Bref community relies on the `serverless` CLI to deploy their applications, this was a problem for many.
248
248
249
249
That's why we now maintain [**a community fork of Serverless Framework v3**](https://github.com/oss-serverless/serverless), which is fully open-source (MIT) and free to use without any limitations. The fork is stable, mature, and actively maintained by Bref maintainers and the community. It includes security fixes, dependency updates, and up-to-date support for new AWS Lambda runtimes.
250
250
251
251
On top of that, the CLI has been made lighter and faster by removing obsolete features like the Serverless Dashboard integration and Tencent Cloud support.
252
252
253
-
Migrating is straightforward since it's a drop-in replacement:
253
+
Migration is straightforward since it's a drop-in replacement:
254
254
255
255
```bash
256
256
npm remove serverless
@@ -267,7 +267,7 @@ No changes to your `serverless.yml` or project configuration are needed. The CLI
267
267
Also not part of Bref v3, but worth mentioning: two new packages were released in 2025 to help monitor PHP applications on AWS Lambda:
268
268
269
269
- [**Bref X-Ray**](https://bref.sh/xray): integrates AWS X-Ray with Bref for performance monitoring and distributed tracing. It tracks cold starts, database queries, HTTP calls, AWS SDK calls, and more. It supports both Laravel and Symfony.
270
-
- [**Bref Sentry**](https://bref.sh/sentry): extends Sentry for AWS Lambda, capturing errors outside of PHP-FPM (such as timeouts or oversized responses), adding exception tracking to event-driven handlers (SQS, EventBridge, S3…), and tracking cold starts and AWS SDK calls.
270
+
- [**Bref Sentry**](https://bref.sh/sentry): extends Sentry's capabilities for AWS Lambda, capturing errors outside of PHP-FPM (such as timeouts or oversized responses), adding exception tracking to event-driven handlers (SQS, EventBridge, S3…), and tracking cold starts and AWS SDK calls.
271
271
272
272
These are commercial packages (not part of the open-source project) that help fill the observability gap for serverless PHP.
0 commit comments