Laravel Microservices for Beginners #1 - Internal Http Requests

Поділитися
Вставка
  • Опубліковано 20 сер 2024

КОМЕНТАРІ • 48

  • @NDDT
    @NDDT 2 роки тому +18

    Can you add a video on how to secure a Multi-Service-Architecture like that? How to add Authorization?

  • @brunoggdev6305
    @brunoggdev6305 8 місяців тому

    Man what a great tutorial, everything's super clear, everything awesome, great content man

  • @saadrao804
    @saadrao804 7 днів тому

    you did not add the resources that you used in this video.

  • @lewisalvin6590
    @lewisalvin6590 Рік тому +1

    audio quality 👌👌

  • @aressoft
    @aressoft 2 роки тому +2

    Hey dude you are awesome , super simple .. please keep up this contents

  • @mattskelton7471
    @mattskelton7471 2 роки тому +4

    Each posts triggers a request and subsequent database call? What happens if you want to display 100+ posts?

    • @ScalableScripts
      @ScalableScripts  2 роки тому +3

      As I said this is a series and you will get the solution in the next Laravel Microservices video.

  • @mahendranath2504
    @mahendranath2504 2 роки тому +1

    Thank you so much 👍😊🎉👏✌🙌

  • @sameral91
    @sameral91 Рік тому

    looping posts and making request for every post to get comments it effects on project performance even if you are using single database that contains posts and comments , so what if we use same princip for requesting another database through api !!!!

  • @eleazarfederio1718
    @eleazarfederio1718 2 роки тому

    This is what i'm looking for

  • @qwizzwizz
    @qwizzwizz Рік тому

    How are comments being stored ? post request to a different microservice?

  • @JhnBravo84
    @JhnBravo84 2 роки тому

    Nice 👍🏻 and it’s a very Simple

  • @ericknyoto3806
    @ericknyoto3806 2 роки тому +1

    If you want to use Laravel just for API, is it better to use Lumens? More lightweight. What do you think?

    • @ScalableScripts
      @ScalableScripts  2 роки тому +1

      Did that but Laravel always offers more features and the difference in speed is not that big. If you are concerned with speed then I would switch some Laravel Microservices with Golang

  • @radybmcs6516
    @radybmcs6516 2 роки тому

    \Http::get error : Underfined type Http
    Can you help me please?

  • @jarrodfodemski1018
    @jarrodfodemski1018 Рік тому +2

    This would work but seems grossly inefficient. Why not make a post method that sends an array of post_ids you want the comment for and use whereIn() instead of where() so you’re only making 1 HTTP request total instead of 1 per post? Edit: made it to the end and assume this is what you’re doing in part 2

  • @gurulabss
    @gurulabss 2 роки тому

    But why? This makes sense in the frontend. There should be composer level integration instead of just relying on https requests. I guess that’s my Laravel bias commenting..

  • @muhammadusman326
    @muhammadusman326 2 роки тому

    how to integrate these into frontend?

  • @mcjalejos
    @mcjalejos 2 роки тому +1

    nice video, I have a question when you ''connect' or attatch the comments to the post and you said thats not the best practices, what could be the best practices or that another layer??

    • @ScalableScripts
      @ScalableScripts  2 роки тому +4

      Wait the next video ;) There are multiple ways to solve this problem I will explain all of them

    • @mcjalejos
      @mcjalejos 2 роки тому

      @@ScalableScripts nice

  • @benr3678
    @benr3678 Рік тому

    So wait....now you end up with multiple apps with their own dependencies, which add up more maintenance cost to the entire project? From what i understand, this is created so companies can protect their codes by only giving a piece of it to each team rather than allowing entire projects to be cloned, am I correct?I can only think of it usage like this as a protection mechanism from the project owner and not at all as a way to make things function better as you could have simply created folders for the controllers and models with microservices names and have still everything under a single app.

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

      that's the whole point of microservices, to mot build a single app which does it all, the functionalities are fragmented and spread across multiple systems hence reducing the overall workload.

  • @UltimateXboxGaming
    @UltimateXboxGaming 2 роки тому

    How did you open this data source window to connect any database from visual studio?

  • @oumarmaiga2055
    @oumarmaiga2055 Рік тому

    nice

  • @demogyani2419
    @demogyani2419 Рік тому +2

    Very dangerous approch. Http call inside loop. And also in microservice closely related entities should be placed together. Product and product comment should br in same database.

    • @spicynoodle7419
      @spicynoodle7419 10 місяців тому

      Data access in services should be inverted. If service A really needs data from service B, then service B needs to publish an integration event with the data and service A needs to copy it locally.
      Making synchronous HTTP calls between services is not microservices. It's a distributed monolith from hell

  • @nitrorex2058
    @nitrorex2058 Рік тому

    good

  • @r3fre5h_
    @r3fre5h_ 2 роки тому

    What ide are you using? Great content!

    • @r3fre5h_
      @r3fre5h_ 2 роки тому

      I feel like it might be PHP storm

  • @kirayamato6128
    @kirayamato6128 2 роки тому

    Is that a realtime?

  • @oketafred
    @oketafred 2 роки тому

    Awesome content, When will part two of this video be released?

    • @ScalableScripts
      @ScalableScripts  2 роки тому +1

      In about a month I would say, I have other videos in the pipeline

    • @DanangCod
      @DanangCod 2 роки тому

      @@ScalableScripts how do u get to be this smart my guy😩

  • @EmersonCarvalho13
    @EmersonCarvalho13 2 роки тому

    Why not use $fillable instead of an empty $guarded property?

    • @qwizzwizz
      @qwizzwizz Рік тому +1

      what if i have 50 columns

    • @geco0ol
      @geco0ol Рік тому

      @@qwizzwizz then you'd have to review the design of your table, for sure

  • @chex0v
    @chex0v 2 роки тому +1

    how trivial ...

  • @JacksonKon
    @JacksonKon 10 місяців тому

    1

  • @ronitmishra8917
    @ronitmishra8917 2 роки тому

    C'mon dude begginers?

    • @ScalableScripts
      @ScalableScripts  2 роки тому +1

      I have one course more advanced in my channel if you haven't seen it. It is hard for some people to follow it so I created this one. Still this will be a Series and you will see a lot of features

    • @ronitmishra8917
      @ronitmishra8917 2 роки тому

      @@ScalableScripts Ah I didn't mean.. You obviously put out great content for everyone from noobs to pro.. I meant the thumbnail has a typo. BEGGINERS.. I thought my comment could help you update the typo before it starts getting lots of views.

    • @ScalableScripts
      @ScalableScripts  2 роки тому +2

      Ups, thank you for noticing I changed it :D