Sabitlenmiş Tweet
Bref
302 posts

Bref
@brefphp
The serverless PHP framework ➯ https://t.co/X0LdkTZmw0
Katılım Aralık 2020
2 Takip Edilen1.3K Takipçiler
Bref retweetledi

I have a Laravel app running serverless with @brefphp and generating PDF via chrome on Lambda.
I added X-Ray to visualize it:
1 - the HTTP route (Laravel controller) invokes the pdf function synchronously and passes it a URL to render
2 - the "pdf-renderer" function starts chromium, opens the URL, exports it to PDF, and uploads it to S3
3 - the HTTP route returns a temporary signed URL to the S3 file
This specific scenario is synchronous (~1s) because the PDF is live generated.
When possible the PDF is generated asynchronously in a Laravel job.
With that approach I write PDF templates with blade, it renders exactly the same locally or in Lambda (easy to test), never have to worry about scaling, and pay per PDF generated (about 0.004 cents/PDF)

English
Bref retweetledi
Bref retweetledi
Bref retweetledi

New Bref documentation page: Cold Starts
bref.sh/docs/environme…
(should have done it years ago but better late than never)

English
Bref retweetledi
Bref retweetledi

Bref 3 is released 🎉
Since its creation, Bref has served 1.2 trillion requests and jobs!
▸ simpler & lighter runtimes
▸ PHP 8.5
▸ improved observability (logs & tracing)
▸ simpler Laravel onboarding
▸ postgres & redis built-in
and more ⤵
bref.sh/news/03-bref-3…
English
Bref retweetledi
Bref retweetledi
Bref retweetledi

New UI to configure private networks in bref.sh/cloud
credits to @nunowar for the page design

English
Bref retweetledi

I created the Serverless Visually Explained course 6 years ago.
It's now free!
If you want concrete JS and PHP examples, with live animations, and no-bullshit explanations on what serverless is, you can click and read.
serverless-visually-explained.com
English
Bref retweetledi

Bref retweetledi

Application diagrams are live in Bref Cloud ✨
They'll help understand how serverless applications run in AWS:
- CloudFront CDN
- S3 for assets
- PHP runs on Lambda
- SQS queues…
Metrics are live: requests, latency, scaling, errors…
beautiful design by @nunowar!




English
Bref retweetledi

Loved designing and implementing these Vue.js diagrams for @brefphp. Building them was the perfect way to dive deeper into the serverless world.

English
Bref retweetledi

NEXT MONDAY: PHP Portugal Meetup v16 🚨
📆 November 24, Lisbon, Portugal
💻 2 Talks by @matthieunapoli (creator of @brefphp) and TBH
🍕 Free snacks and drinks
🥇 Sponsors: @inscaleglobal and @laravelphp
REGISTER NOW: luma.com/d0fl0bwr
English
Bref retweetledi

I often get asked about the differences between serverless and containers/servers
I updated @brefphp docs to be much more upfront about what to expect to migrate to serverless.
Am I missing something? What's unclear?



English
Bref retweetledi

From a concept designed in @figma to a live implementation with @tailwindcss and @vuejs. Enjoying working with @matthieunapoli on this project for @brefphp 🌤️✨


English
Bref retweetledi
Bref retweetledi
Bref retweetledi

New post: Optimizing Laravel cold starts on AWS Lambda
I looked into pre-compiling opcache before deploying
mnapoli.fr/optimizing-lar…
English







