Laravel Octane & FrankenPHP 🧟
Вставка
- Опубліковано 28 лип 2024
- Laravel Octane has a new application server with FrankenPHP. FrankenPHP is a new server written in Go, which is blazingly fast.
In this video, we show you how to set it up. Let's do this together!
➡️ Docs: laravel.com/docs/master/octan...
➡️ Blog: blog.laravel.com/octane-frank...
➡️ FrankenPHP: frankenphp.dev/
00:00 Welcome
00:08 Install New App
00:30 Install Laravel Octane
01:10 Start Octane
01:20 Performance
03:01 Outro - Наука та технологія
That's crazy fast, even though it's localhost. The Laravel ecosystem is just amazing
would have been nice if you showed stats from the "default" implementation without octane.
yeah lol
I came here to say the same. And worst case he could just put the result of the default in the video description for future reference.
FrankenPHP looks amazing. Currently we use Octance & Swoole which have super charged our app up to 12 times in our production. We want to see the benchmark between them in the future.
Awesome. Please share them then too 🙌
i have started a project using that but we noticed that the Patch or put method are trowing sometime exceptions@@LaravelPHP
pin me pls if u make it benchmark
That's crazy fast.. of course it's also an unauthenticated session with no DB hits, would be interesting to see something a little more realworld, and comparison between normal lamp/lemp/lepp/etc and octane with frankenphp et al.
Has no idea about the Pest stress testing plugin. That's really cool! Not that benchmarks necessarily means a lot, but it would be cool to see a comparison between the different runners and without octane at all. Maybe something for the blog?
can i use this on shared hosting ?
With is "combo", can I have some real time application without websocket?
Im trying to run octan with valet path' app.test example '
php artisan octane:start --host=app.test
but whenever it's not effect, the stress test stay normal no changes
how to setup in staging environtment ?
I'm using WSL2, and get error WARN unable to get instance ID; storage clean stamps will be incomplete, how to solve it?
So, we no longer need to install apache2 or nginx on server ?
Hey, very nice video, I have a question not related to the video, what is the terminal app being used there and what font and size, it looks very crisp!
Thanks. The terminal is called Hyper. The font size is changed quite a lot depending on the video so I can't tall anymore.
How to serve http/2 http/3 ? I tried the frankenphp without octane and by default it serves http/3 from Caddy
Can we have your Phpstorm setup? it looks so clean
thank you for tutorial, me any question, how to configuration octane frankenphp for upload big file ?
I have seen soo many people talk about octane and have tried it locally before but my question is, is it for production or its only to speed up local development because i don't see that much of an advantage if its only for local development, i dont think i will be sending crazy number of requests on a local server
Octane is for production too. However as of right now you should use Swoole until FrankenPHP is out of beta.
@@Redheadtama1 oh ok thanks. I thought it was only local. I will check on it's use in production. Thanks. Do you know if it happens to work with docker?
@@discoverlanceYes you can use Octane with docker. There are an exemple in the official documentation using Laravel sail.
Laravel Sail is an exemple of docker environment for Laravel, you Can use any custom Dockerfile instead and use supervisord or other process manager to run octane
We implemented Octane Roadrunner using Forge for our API and were able to downgrade from a t2.xlarge to a t2.medium AWS instance. We have 15 Horizon workers running and have handled throughput of 2-5k UA-cam pub/sub notifications a minute into our system.
Do I need to run octane:start on prod or it's only necessary on local mode?
yes in production too, it's like the queue is always running in the background
I've tested in my localhost by comparing frankenphp, roadrunner and swoole.
but frankenphp is thelowest performance meanwhile swoole is got the best result.
am i missing something ?
In the video he never said that it is the fastest of all three. He said it is a new integration and that it is fast. That said, since it’s a new addition I would agree that I would expected that to be added because it was a faster solution that the previous two.
can you have a video on how we can deploy this on a normal Linux VPS server with an installed Apache?
I also needed to see that.
Why doesn't my laravel start up with those options to select?
You probably need to update the Laravel installer
this is an alternative for what exactly ?
It's an alternative to RoadRunner and Swoole.
It would be great to see a "deployment on vps" guide video.
In a vps it may be 2 or 3 times faster... at least I think
@@Trance_Code maybe even faster but beginner friendly guide is needed. There are not so much tutorials on FrankenPHP 😪
Finally we can debate about speed with the nodejs guys :D
In fact we have been able to do that for more than ten years with ReactPHP. But the focus of Laravel is not speed. It’s productivity.
Can we use in production ?
As long as the FrankenPHP integration is in Beta we do not recommend using it in production.
Where does the number of 1000 requests come from? 227 requests per second would be horrendously bad.
The plugin made ~200 requests/s to your app for 5 seconds. That's where the ~1000 requests come from. It is NOT about how many requests the server can handle. This would be a different test. Hope that clears it up.
@@LaravelPHP so what is the test about?
not saying "thank you Kévin Dunglas" is a shame !!! ;-((
Indeed! We won't forget the next time. Thanks for pointing out.
“… still in beta”
“Good to know”
*proceeds*
Sounds like my life 😆