Laravel Octane: supercharge your Laravel applications

Поділитися
Вставка
  • Опубліковано 9 чер 2024
  • Want to sponsor the channel? Get in touch! aaronfrancis.com/sponsorships
    In this video I give you an overview of Laravel Octane, a package that can supercharge your Laravel applications. Subscribe for more videos about the Laravel ecosystem in the coming weeks and months!
    Laravel Octane docs: laravel.com/docs/11.x/octane.
    Octane for Vapor: blog.laravel.com/vapor-octane...
  • Фільми й анімація

КОМЕНТАРІ • 156

  • @Mikagaru444
    @Mikagaru444 Місяць тому +103

    You're one of the best tech content creators out there. I don't even write PHP but I still watch your videos.

    • @aarondfrancis
      @aarondfrancis  Місяць тому +7

      That makes me so happy. Thank you!

    • @Kane0123
      @Kane0123 Місяць тому +5

      I second this. Still got no interest in PHP but Aaron is always worth listening to - who knows when one of these gems of knowledge will pay off.

    • @aarondfrancis
      @aarondfrancis  Місяць тому +4

      Yall are too kind. I appreciate it!

    • @rafaelhernand3z
      @rafaelhernand3z Місяць тому

      Aaron++

    • @JagaSantagostino
      @JagaSantagostino Місяць тому

      Same here 😅

  • @GalaxyGazer929
    @GalaxyGazer929 Місяць тому +22

    1. Got recommended
    2. watched your video
    3. subscribed

  • @brunocmesquita
    @brunocmesquita Місяць тому +11

    I know you may hear this a lot, but I watch your content gracefully and am not a PHP developer. Great work! And by the way, I must say that the PHP community has many cool people.

  • @driden1987
    @driden1987 Місяць тому +41

    Aaron, I watched your planetscale MySql videos and I don't use MySql.
    Now I watch your Laravel videos and I think I only wrote a couple of php lines for Uni like 7 years ago.
    Looking forward to all your content!

    • @aarondfrancis
      @aarondfrancis  Місяць тому +4

      You're the best. Thank you for stopping by!

    • @GalaxyGazer929
      @GalaxyGazer929 Місяць тому

      ​@@aarondfrancis what are planetscale MySql videos? I'm unable to find them on your channel?

    • @Gornius
      @Gornius Місяць тому

      @@GalaxyGazer929 They're on planetscale's channel. He used to be a host there.

    • @nathanbrown2640
      @nathanbrown2640 Місяць тому

      ​@@GalaxyGazer929 Aaron did videos for PlanetScale's UA-cam channel - they are a company that host MySQL databases in the cloud for you. Aaron has a fantastic ability to explain a problem with both its motivation and beautiful solution. Genuinely found it so helpful for my own MySQL work, even though we don't use PlanetScale. Go look up their UA-cam channel for the vids. 😊

    • @kylclrk
      @kylclrk Місяць тому

      @@GalaxyGazer929 Aaron used to work for Planetscale, so he has a lot of videos over on their channel.

  • @johnrudolphdrexler
    @johnrudolphdrexler Місяць тому +30

    our boy is back

  • @umairsaeed5925
    @umairsaeed5925 Місяць тому +9

    dudeeeeee no wayyyy I was searching for laravel octane just 5 min before this video

  • @FarazSamapoor
    @FarazSamapoor Місяць тому

    It's always a treat watching your educational videos, Aaron. You guys rock!

  • @SimoneFolador
    @SimoneFolador Місяць тому +1

    Thanks Aaron! I watched this video with great pleasure. The way you introduce Octane, as well as other arguments, is as always so easy to understand. Well done

  • @cowgod77
    @cowgod77 Місяць тому

    So great to have your excellent videos back in my feed!

  • @TheArmanist
    @TheArmanist Місяць тому

    Very nice video, and great explanation, looking forward to see more videos about octane, especially the process of installing and configuring it on server

  • @languagelearningexperience6814
    @languagelearningexperience6814 Місяць тому +1

    So happy you're back!!! 🎉

  • @feelingfun5149
    @feelingfun5149 Місяць тому

    Finally - a concise and clear explanation!

  • @tom_zanna
    @tom_zanna Місяць тому

    I love your videos: well balanced between intuition and technicality

  • @tiagocouto9270
    @tiagocouto9270 Місяць тому +1

    it's because of you Mr Francis... now I'm here trying to understand why I've made the choice that I've made... re-learn laravel and watch mad max's high octanes. One person enters, a wiser one leaves

  • @bronsoncc
    @bronsoncc Місяць тому

    good to see you again! looking forward to more

  • @PhiloDev
    @PhiloDev Місяць тому

    That intro animation is on point! Amazing quality as always 😎

  • @himanshuahujaofficial7813
    @himanshuahujaofficial7813 Місяць тому

    As always great content, appreciate all the content you do. We all would love to see some series on databases from basis to becoming expert on databases.

  • @pmareke
    @pmareke Місяць тому

    Love it Aaron, congrats!

  • @DanelonNicolas
    @DanelonNicolas Місяць тому

    super nice! love the way to explain things :D I'll love to see the future of this playlist :D

  • @mikulcek
    @mikulcek Місяць тому

    Aaron, thank you for keeping it bright and consistent! Finally, a video that doesn't feel like a strobe light test.

    • @aarondfrancis
      @aarondfrancis  Місяць тому +1

      2024 is the year of light mode for me!

    • @mikulcek
      @mikulcek Місяць тому

      @aarondfrancis It's tedious to get dark mode right in the browser for simple examples. Matching the IDE theme to the browser background just seems smoother. Maybe I'm just nitpicking, though. Anyway, I love your phoenix moment-it's truly inspirational for all of us grinding away! Your attention to detail, even down to matching themes, showcases your resilience. Keep up the great work; there are many of us rooting for you!

  • @harvenius
    @harvenius Місяць тому

    *aaron fan club long applause* great video!

  • @Pbertrand_dev
    @Pbertrand_dev Місяць тому

    High quality video! thanks

  • @artisandev1097
    @artisandev1097 Місяць тому

    Wow! Thank you Aaron 🙏

  • @HamzaAlAzhar
    @HamzaAlAzhar Місяць тому

    Great content, Aaron!

  • @Radiosabines
    @Radiosabines Місяць тому

    Thank you for sharing Sir, i drink your words !

  • @wcrb15
    @wcrb15 Місяць тому

    It's so cool that Laravel has this now! Magento/Adobe Commerce just released their new application server that is based on OpenSwoole and has the same idea.

  • @fiskegalendbpk
    @fiskegalendbpk Місяць тому

    Been using octane on a project since August, and gotta say, it's surprisingly easy to get up and running. Haven't felt the performance yet but I imagine that'll come in handy once it goes live.
    Also, Octane tables with Swoole rocks!

  • @after_alec
    @after_alec Місяць тому +1

    Wake up babe, Aaron’s back

    • @aarondfrancis
      @aarondfrancis  Місяць тому +1

      "babe you gotta stop waking me up to tell me about your internet friends" - alec's partner (probably)

  • @MrZax-kl5si
    @MrZax-kl5si Місяць тому

    Love your content man

  • @vishaldinesh
    @vishaldinesh Місяць тому +1

    Hey Mr. Dunphy, glad to see you back ❤

  • @kirayamato6128
    @kirayamato6128 Місяць тому

    love you Aaron ❤️!

  • @nym49
    @nym49 Місяць тому

    First time I understood what this was doing 👍

  • @peteremad5228
    @peteremad5228 Місяць тому

    love your videos ♥

  • @DarylLegion
    @DarylLegion Місяць тому

    Aaron delivers.

  • @AirCode7
    @AirCode7 Місяць тому

    missed you dude❤

  • @theblckbird
    @theblckbird Місяць тому +1

    lol, the official Laravel Channel is currently doing the same kind of series
    But anyway, great video! Finally someone who explains this system :]

  • @johnkarani2477
    @johnkarani2477 Місяць тому

    This is awesome.

  • @ComfyCosi
    @ComfyCosi Місяць тому

    Honey, wake up, the new Aaron Francis content is here

  • @chrispian
    @chrispian Місяць тому

    Best explainer of Octane. You're a really good educator. I have a project that I'm working on that will benefit from this greatly. Best to do it now while it's just getting started. Also, sqlite when? ;)

    • @aarondfrancis
      @aarondfrancis  Місяць тому +2

      Soon 🤐🤐

    • @chrispian
      @chrispian Місяць тому

      @@aarondfrancis I had a feeling you were cooking something up. Looking forward to it. (not actually in a hurry ).🤣

  • @tanzimibthesam5861
    @tanzimibthesam5861 Місяць тому

    wow you are back though I expected a sqlite course. Keep going

  • @nm6x
    @nm6x Місяць тому

    I’ll follow you anywhere boss!

  • @JustinJackson
    @JustinJackson Місяць тому

    This is 🔥

  • @a2zcourse
    @a2zcourse Місяць тому

    thank you,

  • @jondoe79
    @jondoe79 Місяць тому

    Crash the thumbs up button guys, the man is back!

  • @hanzofuma
    @hanzofuma Місяць тому

    All this time, I was taught that php-fpm was made to resolve the issue of creating and killing the PHP process with every request.

  • @ttng_
    @ttng_ Місяць тому

    love it! never used php but this is pretty cool considering laravel is being bootstraped on-request

  • @chrisfidao6727
    @chrisfidao6727 Місяць тому +2

    Love Octane, especially in containers for reasons more related to logging than anything else 😂

    • @dadamssg87
      @dadamssg87 Місяць тому

      Hey Chris, how does octane in containers help with logging? Do you know if Log::withContext() works with octane?

    • @aarondfrancis
      @aarondfrancis  Місяць тому +1

      I had to watch your video on Nginx + php-fpm to make sure I understood it before I recorded this video

    • @dadamssg87
      @dadamssg87 Місяць тому

      Hey Chris, how does octane in containers help with logging? Do you know if Log::withContext() works with octane?

  • @armaandhanji2112
    @armaandhanji2112 Місяць тому

    Amazing content. By the way, I might have missed it but why did most of the requests fail on the wrk test for Octane again?

    • @aarondfrancis
      @aarondfrancis  Місяць тому

      I think they're just 500 errors from load!

  • @ahmad-murery
    @ahmad-murery Місяць тому

    I wonder how this may affect some of things we usually do in PHP like user authentication/authorization for example.
    also, what about memory optimization, It's always a tradeoff between make things faster and make it less resource hungry.
    One must think twice before using Octane or similar tech.
    Thanks Aaron!

  • @MundoTecChannel
    @MundoTecChannel Місяць тому

    i love you Aaron Francis

  • @Voltra_
    @Voltra_ 16 днів тому

    Does Octane and/or its driver provide synchronization mechanisms to properly mutate shared state?

  • @ahmedabdelaal6538
    @ahmedabdelaal6538 Місяць тому

    Laravel Is stateless , With Octane laravel became statefull
    Great explanation, Thanks you Aaron

    • @user-qm2uo6ht5l
      @user-qm2uo6ht5l Місяць тому

      and this is bad stateless is always better as prevent lots of bugs

    • @ahmedabdelaal6538
      @ahmedabdelaal6538 Місяць тому

      @@user-qm2uo6ht5l it’s about the use-case, we cannot say that in general a lot of frameworks like rails or node are statefull

  • @n3storm
    @n3storm Місяць тому +3

    with octane frankenphp (or any other) multinenancy (subdomain) becomes a nightmare, curiosly it doesn't happen with frankenphp+caddy.

    • @aarondfrancis
      @aarondfrancis  Місяць тому +2

      Ah interesting, I haven't tried that.

  • @gosnooky
    @gosnooky Місяць тому +1

    I've always wondered something about PHP - since it has to "boot" the application on each request, does it actually load all the PHP files that are included/required each time or does it cache them somehow with file watching so it recognizes changes to files? PHP seems to run so fast, but I/O operations are expensive.

    • @aarondfrancis
      @aarondfrancis  Місяць тому +1

      There is a thing called the OPcache that prevents IO thrashing www.php.net/manual/en/book.opcache.php

  • @DoctorSoulis
    @DoctorSoulis Місяць тому

    Lets gooooo!

  • @siyabdev
    @siyabdev Місяць тому +1

    What about using it in production? and BTW, what package/tool are you using for this `wrk` mock fake requests load stuff?

    • @aarondfrancis
      @aarondfrancis  Місяць тому +2

      Yup you can use it in production quite easily! Especially with Forge. You just need to make sure you reload your workers on deploy as mentioned (just like your queue workers)

  • @mityukov
    @mityukov Місяць тому

    Everyone's saying "you should approach writing your code differently with Octane" and I couldn't agree more... But how different exactly? Maybe, a screencast of turning some legacy app into an Octane-grade one with all the nuances explained? 😅

  • @techietoons
    @techietoons Місяць тому

    How to use it in production?. I am using VPS. I need to do php artisan octane:start, then what. How so i point my domain to this ?. Or do i still needs nginx/apache to catch the request and forward it ?.

  • @errores-me6yu
    @errores-me6yu Місяць тому +1

    barryvdh debugbar is very buggy with swoole, because it doesnt clear memory

  • @Leonhart_93
    @Leonhart_93 Місяць тому

    Everyone just shows the default localhost tutorial. I found that it's stupidly obscure to configure in a prod server environment. The default address and port doesn't seem to work, when it set to to https it doesn't like the certificates and so on. After many variations I still couldn't get it to work in prod.

  • @KleiverCarrasco
    @KleiverCarrasco Місяць тому

    Good video, I had a question, with octane, what PHP should be used? TS or NTS?

    • @aarondfrancis
      @aarondfrancis  Місяць тому

      Sorry I'm not sure what you mean TS or NTS

    • @KleiverCarrasco
      @KleiverCarrasco Місяць тому

      @@aarondfrancis oh, i mean php thread safe or non thread safe

  • @shad966
    @shad966 Місяць тому

    Thanks a lot Aaron. I just wanted to ask: "How do I host My Laravel app using Octane with FrankenPHP in a production Linux VPS server."

    • @aarondfrancis
      @aarondfrancis  Місяць тому

      I haven't ever worked with FrankenPHP so I'm not sure. I bet the docs are great

  • @richardberubedev
    @richardberubedev Місяць тому

    Me at 6:50 : Why is it not on by default ?
    Aaron at 7:00 : the question is going to be why would you not use Octane?
    Moral of the story, wait for the end before asking any question on Aaron videos 😂

  • @grenadeflicks
    @grenadeflicks Місяць тому

    Curious to know if you can run different octane applications on the same server. Has anyone tried that? Great video keep them coming

    • @aarondfrancis
      @aarondfrancis  Місяць тому

      That's interesting! I'm sure it's possible but I haven't tried it

    • @grenadeflicks
      @grenadeflicks Місяць тому

      Yeah I have a couple of bare metal servers with forge and I have a couple customers on each I am curious how octane would behave. Might need tweaking.

  • @justinclarketx
    @justinclarketx Місяць тому

    Love it! Is there a way we could support you directly? Like Patreon?

    • @aarondfrancis
      @aarondfrancis  Місяць тому

      You're kind to ask. Nope, just tell your friends!

  • @karanahlawat9106
    @karanahlawat9106 Місяць тому

    Totally unrelated, but what's that font in your terminal? It looks a bit narrower than your regular JetBrains Mono

    • @aarondfrancis
      @aarondfrancis  Місяць тому

      I think it is just jetbrains mono!

    • @karanahlawat9106
      @karanahlawat9106 Місяць тому

      @@aarondfrancis Fair, Macs just render fonts better 😄

  • @aogunnaike
    @aogunnaike Місяць тому +1

    Does that mean there's no need for redis for caching?

    • @aarondfrancis
      @aarondfrancis  Місяць тому +1

      Octane cache is strictly stored in memory and is cleared when you roll the worker, which you would on every deploy. So there are some tradeoffs!

  • @_whatistruth
    @_whatistruth Місяць тому +1

    "wrk" alternative for windows?

  • @shavras76
    @shavras76 Місяць тому

    Hi Aaron, how to run Octane in standalone ?

    • @aarondfrancis
      @aarondfrancis  Місяць тому

      Not sure I understand the question. Sorry!

  • @razvancomsa2276
    @razvancomsa2276 Місяць тому

    I'd really really like to use this but only for a new green field project ... There's a lot of hidden gotchas that I don't fully understand how it will impact the system and also a third party ecosystem. Octane breaks the default shared nothing architecture imo and it's a bit scary for me. I think the only way is to bite the bullet it and try to fix the issues as they appear in production ...

  • @KrishnaChaitanya-jm7eq
    @KrishnaChaitanya-jm7eq Місяць тому

    Now with octane, do we even need nginx?

    • @aarondfrancis
      @aarondfrancis  Місяць тому

      In production yeah, you'll want nginx for static assets I think

  • @ricko13
    @ricko13 Місяць тому

    hey Aaron you look like the adult version of George Little (from the Stuart Little movie)

  • @rogerochadev
    @rogerochadev Місяць тому

    great fucking video

  • @mikethetreeclimber7
    @mikethetreeclimber7 Місяць тому

    Just join the laravel core team already would ya!!

    • @aarondfrancis
      @aarondfrancis  Місяць тому

      Haha! I just started my own company 🙊

  • @AmeerHamza-cy6km
    @AmeerHamza-cy6km Місяць тому +2

    laravel octane is great until client asks you to put on shared hosting

  • @ThePandaGuitar
    @ThePandaGuitar Місяць тому

    I click like before I watch, and I don't even use PHP

  • @yezperdk
    @yezperdk Місяць тому

    Miss your PlanetScale videos! What happened?

    • @aarondfrancis
      @aarondfrancis  Місяць тому

      I got laid off!

    • @ahmad-murery
      @ahmad-murery Місяць тому

      @@aarondfrancis Better for you Aaron, keep going and never lookback

    • @yezperdk
      @yezperdk Місяць тому

      @@aarondfrancis Damn. Sorry to hear that. Best wishes!

  • @edhahaz
    @edhahaz Місяць тому

    Oh wow php was doing cold starts before it was cool

  • @deideideidei
    @deideideidei Місяць тому

    basically no real impact on low user apps like mine? sadge :((

    • @aarondfrancis
      @aarondfrancis  Місяць тому +2

      Do not be sadge! Rejoice that you're smart enough to not prematurely optimize. That puts you way ahead of your peers

    • @deideideidei
      @deideideidei Місяць тому

      @@aarondfrancis agree! love your content. gonna wait for more!

  • @CodingWithTaaxo
    @CodingWithTaaxo Місяць тому

    is Laravel a thing in 2024?

    • @aarondfrancis
      @aarondfrancis  Місяць тому

      You have no idea how much of a thing it is in 2024

  • @saeedvaziry
    @saeedvaziry Місяць тому

    But let's not forget that the real magic is being done by Swoole, RoadRunner and ...

  • @LenWoodward
    @LenWoodward Місяць тому

    first.

  • @zoiobnu
    @zoiobnu Місяць тому

    I code with python and C# and i'm here watching a video about Laravel, kkkkk

  • @kennedymwenda3357
    @kennedymwenda3357 Місяць тому

    Now you've made me not to learn Python FastAPI

  • @Healvia
    @Healvia Місяць тому

    6000 requests, very insane....

  • @linuxgeex
    @linuxgeex Місяць тому

    This series has way too much internal jargon. Thins are referred to using insider knowledge that new users will know nothing about. That's super unhelpful.

    • @aarondfrancis
      @aarondfrancis  Місяць тому +1

      This was the first video in the series. Thanks for the feedback

  • @maskedvillainai
    @maskedvillainai Місяць тому

    Video intro…until that scribble. 🤢

  • @rafaelhernand3z
    @rafaelhernand3z Місяць тому

    Miss the SQL content! I only followed Planetscale because of your great work! If you're not part of Planetscale I'll be Unsubscribing 😢