NestJS Microservices with RabbitMQ | Messenger Clone [1]

Sdílet
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

Komentáře • 88

  • @JonPeppinck
    @JonPeppinck  Před 9 měsíci +3

    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

  • @SiavashSol
    @SiavashSol Před 9 měsíci

    Good Job, it was So useful for me.

  • @kirakira160
    @kirakira160 Před rokem

    Gold content from golden Man ! Keep going Sir!💪💪

    • @JonPeppinck
      @JonPeppinck  Před rokem

      More to come!. Thank you for your appreciation.😍😘

  • @denolitekbulut1502
    @denolitekbulut1502 Před rokem

    Congrats! This is very useful in this tutorial.

  • @salahadindinsafa7657
    @salahadindinsafa7657 Před rokem +2

    Hi jon, I like your tutorial on nestjs and I have learned a lot from your video. Thank you very much

    • @JonPeppinck
      @JonPeppinck  Před rokem

      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!

  • @user-lq2gv5ps1c
    @user-lq2gv5ps1c Před rokem +1

    Thanks, I learned a lot from this video!

  • @Deepmukherjee18
    @Deepmukherjee18 Před rokem +1

    Hi bro, a really good tutorial was helpful, I'm waiting for the next part.

    • @JonPeppinck
      @JonPeppinck  Před rokem

      Glad you liked it!.. Next part coming soon.... Stay with me. Thank you.

  • @tercioalmeida1643
    @tercioalmeida1643 Před rokem +1

    Thank you man!!! the best video about this

  • @vipyt8550
    @vipyt8550 Před rokem

    You are the best, thanks!!!

    • @JonPeppinck
      @JonPeppinck  Před rokem

      Glad it helped!. You're Welcome.. Thanks.

  • @leonardopatricio1
    @leonardopatricio1 Před rokem

    Hi bro, really goo tutorial it was helpful, I'm waiting for the next part.
    Thanks so much

    • @JonPeppinck
      @JonPeppinck  Před rokem

      Coming Soon. Subscribe so you get notification. Thank you. 😍

  • @mahendranath2504
    @mahendranath2504 Před rokem

    Thanks so much for the great content 👍👍🙌🙌👌👌😍😍, immediately subscribed and liked

    • @JonPeppinck
      @JonPeppinck  Před rokem

      Thanks so much for subscribing and liking the video. Really appreciate it. Enjoy!

  • @infocentral1192
    @infocentral1192 Před rokem +1

    Great Work Bro.... Appricited...

    • @JonPeppinck
      @JonPeppinck  Před rokem

      Thanks so much. Glad you like this new series!

  • @user-ob8nq5wj8w
    @user-ob8nq5wj8w Před 10 měsíci +1

    Good content, like your explanation

  • @mustafakemal1794
    @mustafakemal1794 Před rokem

    Keep up the good work

  • @emredagdeviren6812
    @emredagdeviren6812 Před rokem

    so a great video, thank U

  • @kingstars8904
    @kingstars8904 Před rokem

    The Best. Thanks

  • @mfion1
    @mfion1 Před rokem +1

    nice work

    • @JonPeppinck
      @JonPeppinck  Před rokem

      Thanks so much! Hope you like this new series!

  • @andresfcuellarc
    @andresfcuellarc Před rokem +1

    Nice!!!

  • @napokhan
    @napokhan Před rokem +1

    so cool, thank u

    • @JonPeppinck
      @JonPeppinck  Před rokem +1

      Thanks for checking this video out as well. Cheers

  • @atomyt3836
    @atomyt3836 Před rokem

    superb bro…

    • @JonPeppinck
      @JonPeppinck  Před rokem

      Thank you so much 😀.. Keep Watching and share..

  • @yayapanthong9334
    @yayapanthong9334 Před rokem +1

    So good

  • @alvinvesincaplartv9726

    Thanks so much

  • @anonymous-su8di
    @anonymous-su8di Před rokem +1

    thanks teacher

  • @djvarun2320
    @djvarun2320 Před rokem

    thank you man

  • @aspadecreations1399
    @aspadecreations1399 Před rokem

    Thank you

  • @technicallife5567
    @technicallife5567 Před rokem

    Genius...

  • @maximeaubry2613
    @maximeaubry2613 Před měsícem

    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 ? 😊

  • @francisabonyi7115
    @francisabonyi7115 Před rokem +7

    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

    • @JonPeppinck
      @JonPeppinck  Před rokem +8

      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!

    • @francisabonyi7115
      @francisabonyi7115 Před rokem

      @@JonPeppinck thank you and I will check that out.

  • @merveningunlugu6005
    @merveningunlugu6005 Před rokem

    Came in time

  • @mykun8737
    @mykun8737 Před rokem +1

    amazing, could you please finish the playlist

  • @daesk
    @daesk Před rokem

    hello, i want to use a fanout exchange with nestjs and rabbitmq, how to achieve it? tysm.

  • @dilanoviedo7832
    @dilanoviedo7832 Před 8 měsíci +1

    where is part 2?
    I can't find the second part of this course, but I can find the third and the others 😪😭

    • @JonPeppinck
      @JonPeppinck  Před 8 měsíci

      Hi there, you can find it by searching for the Facebook Messenger playlist on my channel. It has 18 videos in it.

  • @Dhsidhsusjs
    @Dhsidhsusjs Před rokem +1

    Would doing this with redis as a message broker be similar?

    • @JonPeppinck
      @JonPeppinck  Před rokem

      Yeah, all the message brokers are pretty much the same. gRPC is a little different though

  • @88informa
    @88informa Před 10 měsíci

    Hi, i get this error when trigung to start the auth:Error: Socket closed abruptly during opening handshake any help ??

  • @parasarora5869
    @parasarora5869 Před rokem

    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 ?

    • @JonPeppinck
      @JonPeppinck  Před rokem

      I think I've seen this when there was a slight typo in the cmd between what is defined and what is consumed.

  • @danny786fulify
    @danny786fulify Před rokem

    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...

    • @JonPeppinck
      @JonPeppinck  Před rokem

      Hi Danyal, I have now posted the code on GitHub. Try clone the Facebook Messenger project and see if that works.

    • @Merlinke91
      @Merlinke91 Před rokem

      Did you find solution?

  • @taras8068
    @taras8068 Před rokem +1

    Cool) Thanks! Excellent project and technology stack.

    • @JonPeppinck
      @JonPeppinck  Před rokem +1

      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!

    • @taras8068
      @taras8068 Před rokem

      @@JonPeppinck 🔥🙂

  • @neerosity
    @neerosity Před rokem

    not working for me, in console showing apps are running but getting not found for localhost:

    • @JonPeppinck
      @JonPeppinck  Před rokem +1

      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.

    • @neerosity
      @neerosity Před rokem

      @@JonPeppinck also found git code and youtube videos not matching...

    • @JonPeppinck
      @JonPeppinck  Před rokem

      @@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.

  • @ghazanusman1539
    @ghazanusman1539 Před rokem

    i am unable to login to rabbitMQ dashboard although my username and password is correct

    • @JonPeppinck
      @JonPeppinck  Před rokem

      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.

    • @ghazanusman1539
      @ghazanusman1539 Před rokem

      @@JonPeppinck i am using mac, is there any special configuration for mac like installing through brew or something?

  • @roauf-
    @roauf- Před rokem

    Great explaination, I missed a lot because of not knowing you before!

    • @JonPeppinck
      @JonPeppinck  Před rokem

      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!

    • @roauf-
      @roauf- Před rokem

      @@JonPeppinck
      I already subscribed and activated the notifications
      I love the way you explain every line of your code, please continue

    • @JonPeppinck
      @JonPeppinck  Před rokem

      @@roauf- Thanks so much! Will do. Cheers!

  • @L0wPressure
    @L0wPressure Před rokem +2

    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

    • @JonPeppinck
      @JonPeppinck  Před rokem +1

      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.

    • @ghazanusman1539
      @ghazanusman1539 Před rokem

      @Boris you are also using mac right so it login working for you?

    • @L0wPressure
      @L0wPressure Před rokem

      @@ghazanusman1539 yep