NestJS Microservices with RabbitMQ | Messenger Clone [1]
Vložit
- čas přidán 27. 07. 2024
- In this video, we will learn about Microservices and RabbitMQ in NestJS both conceptually and also practically by creating the Facebook Messenger clone. We will also learn about and use Docker to easily setup our microservice architecture for the Facebook Messenger Clone.
--------------------------------------------------
Recommended Udemy courses
--------------------------------------------------
NestJS - Zero to Hero: tinyurl.com/3rxsz669
React - The Complete Guide: tinyurl.com/2t6v5yeu
Angular - The Complete Guide: tinyurl.com/4h5rmpsj
React Native - The Practical Guide: tinyurl.com/3wzmdzht
Docker Mastery (with Kubernetes + Swarm): tinyurl.com/yeymdnhn
NestJS API code: github.com/Jon-Peppinck/messe...
React Native code: github.com/Jon-Peppinck/faceb...
00:00-Introduction
00:28-Prerequisites
05:56-System_Design [RabbitMQ]
09:53-RabbitMQ_Fast_Version
11:36-RabbitMQ
12:40-Project setup
19:20-Docker compose and RMQ
37:25-Create RMQ Microservices - Jak na to + styl
Minimum prerequisites: Ability to create a CRUD application with NestJS and React. This is an intermediate to advanced project.
--------------------------------------------------
Recommended Udemy courses
--------------------------------------------------
NestJS - Zero to Hero: tinyurl.com/3rxsz669
React - The Complete Guide: tinyurl.com/2t6v5yeu
React Native - The Practical Guide: tinyurl.com/3wzmdzht
Docker Mastery (with Kubernetes + Swarm): tinyurl.com/yeymdnhn
Good Job, it was So useful for me.
Gold content from golden Man ! Keep going Sir!💪💪
More to come!. Thank you for your appreciation.😍😘
Congrats! This is very useful in this tutorial.
Glad it was helpful!
Hi jon, I like your tutorial on nestjs and I have learned a lot from your video. Thank you very much
Thanks so much for checking out this video. Glad you learnt a lot. There are more videos in the playlist if you are interested! Much appreciated!
Thanks, I learned a lot from this video!
Awesome, thanks for checking it out!
Hi bro, a really good tutorial was helpful, I'm waiting for the next part.
Glad you liked it!.. Next part coming soon.... Stay with me. Thank you.
Thank you man!!! the best video about this
Thanks so much!
You are the best, thanks!!!
Glad it helped!. You're Welcome.. Thanks.
Hi bro, really goo tutorial it was helpful, I'm waiting for the next part.
Thanks so much
Coming Soon. Subscribe so you get notification. Thank you. 😍
Thanks so much for the great content 👍👍🙌🙌👌👌😍😍, immediately subscribed and liked
Thanks so much for subscribing and liking the video. Really appreciate it. Enjoy!
Great Work Bro.... Appricited...
Thanks so much. Glad you like this new series!
Good content, like your explanation
Thanks so much!
Keep up the good work
Thanks, will do!
so a great video, thank U
You are welcome!
The Best. Thanks
You're welcome!. 😍
nice work
Thanks so much! Hope you like this new series!
Nice!!!
Thanks so much, enjoy!
so cool, thank u
Thanks for checking this video out as well. Cheers
superb bro…
Thank you so much 😀.. Keep Watching and share..
So good
Thanks so much!
Thanks so much
You're welcome!
thanks teacher
Very welcome. Thanks for watching!
thank you man
Glad it helped😍
Thank you
You're welcome
Genius...
Thank you... 😍
Hello.
Thanks a lot for this playlist.
I try to adapt this tutorial for Bunjs, and it's a nightmare.
Auth app does not connect to postgres.
Could you provide another tutorial for this part please ? 😊
Hello Jon, Nice tutorial I must say, but please is it possible for you to make a microservice video with an API gateway and rabbitMQ that handles auth for different other services, that protect endpoints that can be accessed only by authenticated users. Thanks
Thanks so much Francis! The main idea behind authentication in a microservices application is to have an Auth service and have a shared auth guard which calls the auth service such that we can protect all our endpoints. Please check out the latest videos on my channel as I have just recently covered authentication in microservices. Cheers!
@@JonPeppinck thank you and I will check that out.
Came in time
Glad to know.. Thank you.
amazing, could you please finish the playlist
Will do.
hello, i want to use a fanout exchange with nestjs and rabbitmq, how to achieve it? tysm.
where is part 2?
I can't find the second part of this course, but I can find the third and the others 😪😭
Hi there, you can find it by searching for the Facebook Messenger playlist on my channel. It has 18 videos in it.
Would doing this with redis as a message broker be similar?
Yeah, all the message brokers are pretty much the same. gRPC is a little different though
Hi, i get this error when trigung to start the auth:Error: Socket closed abruptly during opening handshake any help ??
I am facing an issue. When I emit an event from one service, first it receives the message successfully and the next message fails with error There is no matching event handler defined in the remote service. Do you happen to know about this error ?
I think I've seen this when there was a slight typo in the cmd between what is defined and what is consumed.
Got an error while running auth service:
[Nest] 19136 - 11/12/2022, 9:44:51 PM ERROR [Server] Error: Handshake terminated by server: 403 (ACCESS-REFUSED) with message "ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile."
[Nest] 19136 - 11/12/2022, 9:44:56 PM ERROR [Server] Connection to transport failed. Trying to reconnect...
Hi Danyal, I have now posted the code on GitHub. Try clone the Facebook Messenger project and see if that works.
Did you find solution?
Cool) Thanks! Excellent project and technology stack.
Thanks so much Taras. Love the CZcams emoji - matches the shirt. Will also explore TypeORM (and migrations) and React Query as part of the stack. Enjoy!
@@JonPeppinck 🔥🙂
not working for me, in console showing apps are running but getting not found for localhost:
Check the .env and Docker and Docker compose files. It sounds like the port isn't getting exposed as intended. You can also try clone the repo from GitHub if you are still running into this issue.
@@JonPeppinck also found git code and youtube videos not matching...
@@neerosity you may be looking at the latest version. I commit after each video so perhaps an earlier snapshot of the code would be the same as this first video.
i am unable to login to rabbitMQ dashboard although my username and password is correct
That is odd, and also hard to know what the cause of the problem is. Check the .env file - note there is a default user and also a regular user - in this video I made these values the same to avoid confusion - but if you changed the values you may want to check they are correct. If that doesn't work, perhaps try cloning the repo from GitHub and logging in with the same credentials as shown in the video.
@@JonPeppinck i am using mac, is there any special configuration for mac like installing through brew or something?
Great explaination, I missed a lot because of not knowing you before!
Thanks so much! Will have new videos every week for this new Facebook Messenger series! Please subscribe to stay up to date with the latest if you find it useful. Cheers!
@@JonPeppinck
I already subscribed and activated the notifications
I love the way you explain every line of your code, please continue
@@roauf- Thanks so much! Will do. Cheers!
Thanks, awesome video and channel - keep it up!
So, guys, i'm not new to docker but i had this problem, that .env was not being read for some reason. Whj
Turns out if you started container once, you might need to delete the volume that was created - and only then the env variables will be applied.
My volume setup if you wonder:
volumes:
- $HOME/volumes/rabbitmq:/var/lib/rabbitmq
Thanks so much. Will do. Thanks for sharing that - Next video I will dive deeper into Docker to set up the NestJS servers and PG database - and will go into detail about getting a good dev setup and volumes.
@Boris you are also using mac right so it login working for you?
@@ghazanusman1539 yep