Laravel Microservices Full Course | Event Driven Architecture with RabbitMQ
Вставка
- Опубліковано 14 лип 2024
- 👉 Check our website: scalablescripts.com
Laravel Microservices: Breaking a Monolith to Microservices: scalablescripts.com/p/laravel...
Source Code: github.com/scalablescripts/la...
Learn how to create a simple Event-Driven Architecture app with Laravel and RabbitMQ.
00:00:00 Project Introduction
00:03:42 Connect Laravel and Mysql with Docker
00:16:04 Migrations, Seeders and Factories
00:26:07 Products Rest API CRUD
00:38:20 Main App Setup
00:45:19 RabbitMQ
00:53:26 Data Consistency Between Microservices
01:04:26 Internal Http Requests
01:15:11 Queue Service
#laravel #microservices #rabbitmq
Thank you for this tutorial. It was really easy to follow and more concise than exist out there.
Thank you so much!!! Is a perfect explanation about API CRUD in laravel, Jobs and Event Driven Patterns
Best regards from Colombia !!!
What an awesome tutorial. Great work...keep it up
Absolutely fantastic. I follow this tutorial and success to the end chapter.
Thank you!
a beautiful and well-explained topic on rabbitMQ using laravel. hatsup sir...
1:59 lets see an example for example :D Made my day.
Thanks you sir. Learned a lot. Love from India
Reminder that you can use this video with other videos:
VueJS and Laravel Microservices: ua-cam.com/play/PLlameCF3cMEtkRtjMoJ58yp_rHLufd9RB.html
React and Laravel Microservices: ua-cam.com/play/PLlameCF3cMEtKse3dsI219ILOS6oqYic6.html
Angular and Laravel Microservices: ua-cam.com/play/PLlameCF3cMEvEHatPcE5xHO6C0aIXPusX.html
Thank you so much for the teaching. It took me a long time to find an explanation as good and simple as yours, congratulations for the great work!
Best regards from Brazil guys!
boa mano
só nos programming
Amazing topics.
Thank you!
This is an amazing tutorial,, Thank you!!
so helpful tutorial. thank you.
great, thanks a lot!
Thank you for this video. I was just looking for this to add this in my project
Thank you very much cheers!
Thank you for this tutorial.
thanks man... clear and very good😉 content
Unique tutorial sir
Thank you, it helped me a lot
This is awesome thank you so much for the effort and work that you put to create these videos.
I bought your course after seeing this video and until now I am really enjoying the content. Great work
Good idea
thanks
It looks pretty awesome.. I really need it and I will try it.. Just a question: why aren´t you using a relationship between User and Product ?? I think you can use a relationship for the User's Products and another for Product's Users Likes... Best regards from Costa Rica guys
good man!
Nice instruction, thank You for review!
But I see that we need dublicate jobs with the same name in both application (((
Also I'm not undestand why You don't use Events and Linteners. It has similar realization.
increase player speed to 1.25 for better understanding :)
Thank you so much for the teaching. I followed all the steps, but no matter what changes I make to the files they are not applied to the container image, what could I be missing?
Thanks a lot,
Really good explanation 🙏🙏
I wonder if Laravel sail would be easier?
Or if i use two separate projects hosted locally using Laragon, which provides .test domain foreach one.
Hello. Thanks for the tutorial. Can I ask which database manager do you use?
Thank you so for this tutorial.
I have a concern about the way you run the queue work in a separate container. Can't there be a better way to run it in same container?
Thanks for your time, I've learned a lot, I really appreciate!
At first glance it looks like two apps have their own purpose and responsibilities, but they still coupled pretty tight, and taking into account that two separate teams could work on each app, I don't see them be tested pretty good, especially update/create methods. Ok you can use DTO for that and write unit tests for DTO, but there's no guaranty that DTO from app1 and app2 will be equally maintained since they don't share unit tests and could be rewritten by one team or another.
That could lead to the same problem as a monolith code, once your project grows and you have 10+ microservices, changing one will impact on all others because they are coupled quite a lot.
I think DDD design is better in this way, and microservices could be used with some other example with much less coupling with other apps.
Any links you have of videos that teach it this way? So Laravel microservices with closer to DDD architecture? Thanks!
Great tutorial!
But, how to authorize each API?
when trying to install rabbitmq package, it says [RuntimeException]
git was not found in your PATH, skipping source download although git installed on my machine and I use it normally outside docker containers. how to solve this please?
Os: Windows pro 10
Thank you for the useful stuff, could you tell us what would be the problem if we do not use RabittMQ?
We can maintain internal API call from main to admin by hitting an API endpoint normally.
Thanks again!
Rabbitmq provides asynchronous events, in a microservices architecture you have to keep them separate, and these events help data consistency in databases
Sir, plz suggest advaned Microservice and networking application in laravel reactjs top 5 course.
Could you explain, please, why we're using bindMethod in EventServiceProvider?
To listen to RabbitMQ events, that is at least the method that I found.
what about the failed jobs handling or corrupted data inconsistency , how can i make sure every service has the same data as others, if one of my service goes down for a minute how can i prevent data inconsistency when it get up.
Using the online third party RabbitMQ instance is just for demo purposes, or does this mean it can't work with the RabbitMQ running in a docker container?
Hi Sir. Thank you very much for this video. I have a question and sorry for my possible ignorance on this matter : " Is the product being saved on both apps or only in admin?". I believe it should only be in one database right?
exactly this is my qustion why saved product on both ?
if you use docker, why not run rabbit in docker ?
perche creare 2 applicazioni gemelle con 2mysql image? sucsami ma non l'ho capita
What database GUI are you using at 15:12? Thank you!
PHPStorm
@@ScalableScripts thank you sir! I enjoy this video. More power!
how can i get ui source code .Could you please send me link
I cloned your project and deleted the bindMethod functions you added in the EventServiceProvider and it still works fine so these bindings are useless
Awesome tutorial thx , but i didn't understand this line
\App::bindMethod(ProductLiked::class. '@handle', fn($job) => $job->handle());
what does it do exactly ?
It is a listener.
@@milosmilosevic1695 ya but it is not really doing anything
Really good tutorial ... how I can get the Code
Here is the code: github.com/scalablescripts/laravel-microservices
In complex applications there would be tons of code. Developing would be horrible. If there is one new feature you have to ensure that all your other services should handle the event.
half of video passed… still waiting when we get to microservices😂
Microservices with django and rect
Unfortunately, this approach will not work if you have some microservices in a different language or framework. Those queues hardly depend on PHP (because they serialize class and then unserialize it on the other side)
i have sent u an email.
Defining "jobs" on both sides is not really how event driven design works no?
I think it is more logical to assign a listener on the other side, isn't it?
so fuc***g complicated tutorial,he fast move a text editor and viewers didn't no name the file😂😂😂