How to scale Laravel: beyond the basics (Advanced Laravel Scaling)

Поділитися
Вставка
  • Опубліковано 19 січ 2025

КОМЕНТАРІ • 103

  • @AbedAbugozah
    @AbedAbugozah 4 місяці тому +8

    Great man, finally i am watching someone talking about advanced optimization in Laravel

  • @samldev
    @samldev 6 місяців тому +5

    Great video! It’s awesome to hear real world problems that are solved compared to just examples of how these things could be used

  • @umahatokula9586
    @umahatokula9586 6 місяців тому +3

    I didn't learn a thing or two. I learned 5. Thanks buddy!

  • @mind.journey
    @mind.journey 6 місяців тому +1

    Great point about pre-computed json files. I'll definitely incorporate that into my own app

  • @ivanostojic1339
    @ivanostojic1339 6 місяців тому +4

    Great content, something new learned that's refreshing!

  • @Irnovi27
    @Irnovi27 6 місяців тому +2

    Precomputed JSON files on a CDN is pretty interesting. I will dive in

  • @codingwithfazley
    @codingwithfazley 6 місяців тому +4

    Really amazing video. Learned something new from this.

    • @sabatino-dev
      @sabatino-dev  6 місяців тому

      Thanks, glad you learned something!

  • @florianlutze9068
    @florianlutze9068 6 місяців тому

    Great video, I love the insights about your own app and the learnings!
    Keep it up😊

    • @sabatino-dev
      @sabatino-dev  6 місяців тому +1

      Thank you! Will do!

    • @florianlutze9068
      @florianlutze9068 6 місяців тому

      @@sabatino-dev I'd be curious about some insights on how you gained the first customers for your SaaS, maybe you could do a video about that in the future :)

    • @sabatino-dev
      @sabatino-dev  6 місяців тому +1

      Good idea, thanks for the suggestion!

  • @coolcha
    @coolcha 6 місяців тому

    This is such a good video with so many important points covered. Thank you for sharing.

  • @heyyedwin
    @heyyedwin 6 місяців тому

    This is amazing! keep up the good work!

    • @heyyedwin
      @heyyedwin 6 місяців тому

      This is real use case. This is very cool than others teaching only from their theories

    • @sabatino-dev
      @sabatino-dev  6 місяців тому +1

      I learn more by doing myself instead of just reading the theory, so I like to translate that into the videos 👏

    • @heyyedwin
      @heyyedwin 6 місяців тому

      @@sabatino-dev your content is gold, eventually the whole laravel community will be able to see this 🎉

  • @gamekonet
    @gamekonet 6 місяців тому

    Amazing tips as always, its the first time i hear about pre-computed json files in cdn, wonder how i can utilize it one day, Thank you and Best of luck!!

    • @sabatino-dev
      @sabatino-dev  6 місяців тому +1

      Thanks for the kind words!

  • @salarkafashan9367
    @salarkafashan9367 4 місяці тому

    Great video, please create more video with these type of topics

  • @amirshahzad5386
    @amirshahzad5386 2 місяці тому

    Thank u for such a great content as a Laravel developer i learn alot and also in next video can u explain how we can optimize yajra datatables efficiently

    • @sabatino-dev
      @sabatino-dev  2 місяці тому

      Good idea! Will note it down, thanks! :-)

  • @zoba82
    @zoba82 6 місяців тому

    Great and really smart tips, thank you!

  • @rosselliot8971
    @rosselliot8971 6 місяців тому

    Fantastic. More like this would be great.

  • @Khalyomede
    @Khalyomede 6 місяців тому

    Nice point about read/writes replica!

  • @kuthub1989
    @kuthub1989 6 місяців тому

    Excellent Explanation.

  • @hamburger--fries
    @hamburger--fries 3 місяці тому

    I love you!!!!!!!!!!! You are a GOD among men!

  • @popetgirl
    @popetgirl 6 місяців тому +3

    I really like the idea of Tables.json files, want know more about his how you are doing that.

    • @sabatino-dev
      @sabatino-dev  6 місяців тому +4

      Might make a separate video about this entire topic 🙏

  •  6 місяців тому

    Nice video, and nice UA Ox!

  • @fahadaldhafairi
    @fahadaldhafairi 5 місяців тому

    Could you make separate videos about each of below topics explain it in details with real world examples. please ?
    - Separate Ready and Write ( Insert, update & delete ) connection to database.
    - Batch inserts & updates.
    - Don't synchronous reports ( but report in queue so other tasks in app won't slow because of slow reports ).
    Also what do you think of using Laravel Octane with Swoole or FrankenPHP for scaling ?

    • @sabatino-dev
      @sabatino-dev  5 місяців тому

      I have some videos on my backlog for those topics 🙏 I rarely use Octane, but the way I’d use it is to optimise specific routes. For example, I have a /pingback route that is used by client machines to signal their status once every minute. I run this route with Octane because it gets used 600-800 times per minute. Using Octane, we can skip setting up the entire framework that many times, and thus making the route much faster

  • @fahadullah4248
    @fahadullah4248 6 місяців тому

    Great tips bro ❤

  • @shadyarbzharothman8689
    @shadyarbzharothman8689 6 місяців тому +1

    Great Video!

  • @nuradin666
    @nuradin666 6 місяців тому

    Great video my man

  • @HarshGupta-di6sx
    @HarshGupta-di6sx 6 місяців тому

    Awesome video was just curious what are you using for creating json files up to date

    • @sabatino-dev
      @sabatino-dev  6 місяців тому

      No specific libraries, we just have a TableResource and the output of that resource will be sent to S3 using the AWS SDK

  • @vpuente
    @vpuente 6 місяців тому

    Really good video, thanks!

  • @clifftonnjoroge9301
    @clifftonnjoroge9301 6 місяців тому +1

    Great video, thanks for the tips. Which tool are you sing to view the raw queries?

    • @sabatino-dev
      @sabatino-dev  6 місяців тому

      Thanks! It's barryvdh/laravel-debugbar

  • @gkiokan
    @gkiokan 2 місяці тому

    What about more processing power though octane?

    • @sabatino-dev
      @sabatino-dev  2 місяці тому +1

      Octane video will come soon, stay tuned 😎

  • @beysachpromax
    @beysachpromax 6 місяців тому

    great content keep it up 💯

  • @melekRebai
    @melekRebai 6 місяців тому

    Good informative video

  • @heyyedwin
    @heyyedwin 2 місяці тому

    with your current setup and load what is the specs of your RDS instance?

    • @sabatino-dev
      @sabatino-dev  2 місяці тому +1

      Main: db.m6g.2xlarge (Multi-AZ)
      Read-replica: db.m6g.large

    • @heyyedwin
      @heyyedwin 2 місяці тому

      @@sabatino-dev thank you, keep up the good work on delivering high quality contents 👏🏻

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

    What are your thoughts on relations & accessors on reports or pagination data?
    Eloquent with relation + accessors VS Query Builder with joins?
    Herd many times that laravel is fast and scaleable, but using Eloquent with rleations + accessors, very quickly becomes bottleneck. Very quickly
    At least when I tried, of course i found mistakes in how I managed it, but it was not intentional and obvious in start and was too late to notice. After a year of data the started collapsing in response time. from second to 10s of seconds

    • @sabatino-dev
      @sabatino-dev  Місяць тому

      I try to avoid accessors as it's often a source of N+1 queries. Other than that - I do think you can keep Eloquent queries performant, but you need to take special care.

  • @SEOng-gs7lj
    @SEOng-gs7lj 6 місяців тому

    which database do you use? any video on setting up a read replica?

    • @sabatino-dev
      @sabatino-dev  6 місяців тому +1

      We currently use AWS RDS, I might create a video on how to set up a read-replica!

    • @SEOng-gs7lj
      @SEOng-gs7lj 6 місяців тому

      @@sabatino-dev thanks an open sourced DB will be good too!

    • @junjungaming855
      @junjungaming855 6 місяців тому

      ​@@sabatino-devplease make a video about read replica

  • @HaseebRiasat-g9d
    @HaseebRiasat-g9d 6 місяців тому

    bro please come up with more content like this

  • @taslimsuman
    @taslimsuman 6 місяців тому

    Love it

  • @mind.journey
    @mind.journey 6 місяців тому

    How to manage a full-page cache when the page has also state? (e.g. a logged-in user shown in the header, or other user-specific info)

    • @sabatino-dev
      @sabatino-dev  6 місяців тому

      In many systems full-page cache applies to non-logged in users only, because of state as you pointed out. Alternatively, you could fetch state asynchronously using an API.

  • @samahnation
    @samahnation 6 місяців тому

    i need to learn more from this, do you have special paid consultations?

    • @sabatino-dev
      @sabatino-dev  6 місяців тому

      Currently no plans of doing that unfortunately, but that may change in the future. You can join the discord server where I'll do announcements of this type of stuff discord.gg/CPnUMM7s

  • @marius-mihailionte339
    @marius-mihailionte339 6 місяців тому

    Why do you need to use AWS DBMS service when you have AWS Aurora or AWS RDS Multi-AZ?
    And regarding precomputed files and CDN, your solution involves some client side processing, the app is not full server side from what i understand, involving a JS framework/library or some vanilla JS is required, meaning that Laravel is not part of this improvement.

    • @sabatino-dev
      @sabatino-dev  6 місяців тому

      Initially we hosted our database at Linode (no read-replica), so we had to use DBMS to migrate off of Linode.
      Regarding the precomputed files -> Laravel is in fact part of the solution, it validates the data, merges open orders on it, invalidates caches, marks orders as stale, sends events, ... - the app is in fact a Vue SPA, but Laravel does a lot of processing behind the scenes.

  • @gazorbpazorbian
    @gazorbpazorbian 6 місяців тому

    Why aren't you using the built-in Laravel cache system?

    • @sabatino-dev
      @sabatino-dev  6 місяців тому +1

      I do use it, but sometimes it’s not enough. I’m talking about handling hundreds (if not thousands) of requests per second in a (cost) efficient way.

    • @gazorbpazorbian
      @gazorbpazorbian 6 місяців тому

      @@sabatino-dev could you make a comparison between the two?

    • @sabatino-dev
      @sabatino-dev  6 місяців тому

      Good suggestion!

  • @gillesashley9314
    @gillesashley9314 6 місяців тому +4

    How I wish the entire backend ecosystem is just PHP and Laravel.

    • @sabatino-dev
      @sabatino-dev  6 місяців тому +1

      You and me both 😅

    • @shocchosolutions
      @shocchosolutions 6 місяців тому

      ​@@sabatino-devyou have 2 million user bro make a video how to search feature on that like e-commerce app

    • @noyou174
      @noyou174 15 днів тому

      What other frameworks u know

  • @mauricioarenales
    @mauricioarenales 6 місяців тому

    thanks baby

  • @He4vyD
    @He4vyD 6 місяців тому +1

    Your accent sounds Belgian, your name Italian and your face Indian. Did I get any of that right? 😊

    • @sabatino-dev
      @sabatino-dev  6 місяців тому +1

      Italian living in Belgium, so 2 out of 3 😂👏

    • @He4vyD
      @He4vyD 6 місяців тому

      After watching more of the video, and seeing the food ordering webapp, I’m pretty sure I got the Belgian part right 😅

  • @samahnation
    @samahnation 6 місяців тому

    @sabatino-dev can i have consultation, if so please get back to me because i really need your assistance?

    • @sabatino-dev
      @sabatino-dev  6 місяців тому +1

      Currently no plans of doing that unfortunately, but that may change in the future. You can join the discord server where I'll do announcements of this type of stuff discord.gg/CPnUMM7s

    • @samahnation
      @samahnation 6 місяців тому

      @@sabatino-dev thank you ma man!!

  • @bugszone6098
    @bugszone6098 2 місяці тому

    Great man, finally i am watching someone talking about advanced optimization in Laravel