NodeJS Microservices | Implementing a Microservice using RabbitMQ in NodeJS

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.ย. 2024
  • In this video, I talk about microservices and implement a very basic microservice using NodeJS and RabbitMQ.
    Github Repo: github.com/man...
    Don't forget to Subscribe!
    Share your ideas for my next video: request.manosr...
    Find pair-programming partners: www.mydevfrien...
    FOLLOW ME HERE:
    Website: manosriram.com
    Github: github.com/man...
    LinkedIn: / manosriram
    My Blog: blog.manosrira...
    Twitter: / _manosriram
    📻 Join the Discord Server: / discord

ความคิดเห็น • 53

  • @tranquillityEnthusiast
    @tranquillityEnthusiast 3 ปีที่แล้ว +6

    This channel should have million subscribers...

  • @swain7836
    @swain7836 2 ปีที่แล้ว +1

    it's basic but you explain it very well. Thanks

  • @adedejiibrahim7
    @adedejiibrahim7 3 ปีที่แล้ว +2

    God bless you for this video. Simple and straight to the point

    • @manosriram
      @manosriram  3 ปีที่แล้ว

      Thank you, Means a lot 🙂

  • @msainikitha
    @msainikitha ปีที่แล้ว

    i learn from your videos. Thanks 😊

    • @manosriram
      @manosriram  10 หลายเดือนก่อน

      Thanks a lot!

  • @FerShibli
    @FerShibli ปีที่แล้ว

    you're awesome, this was pretty straightforward

  • @ratnakiduniya8138
    @ratnakiduniya8138 ปีที่แล้ว

    Bro your explanation is really good...please make videos...make one series kind of thing if possible...

  • @ayyappa244
    @ayyappa244 3 ปีที่แล้ว +2

    Please share the git repo, so that it is easy for bingers. Nice explanation

    • @manosriram
      @manosriram  3 ปีที่แล้ว

      Its in the video description. You can take a look at it.

  • @pepecalixto2790
    @pepecalixto2790 2 ปีที่แล้ว

    Excellent channel! Straight to the point! Keep on going man!

  • @khawarqureshi8858
    @khawarqureshi8858 ปีที่แล้ว

    perfect. to the point. informative

  • @angzar
    @angzar ปีที่แล้ว

    nice basic explanation

  • @vishal.shetty
    @vishal.shetty 2 ปีที่แล้ว

    Wow! Amazing.

  • @guruprabakaran5168
    @guruprabakaran5168 2 ปีที่แล้ว +1

    It's really helpful. Could you please help me to achieve this approach in Python or Flask python?

  • @ferin_patel
    @ferin_patel 3 ปีที่แล้ว +2

    I have one question over here. Let's Assume my one service is located on different server and another service on another server. Then how i am going to connect them with RabbitMQ. In this example you simply used local-host for both services but in real situation this would not be the case. Please help me out here.

    • @phoehtaung
      @phoehtaung 3 ปีที่แล้ว +1

      I am thinking you would host the RabbitMQ on a cloudVM (e.g AWS EC2) or you could even use managed RabbitMQ service like CloudAMPQ

  • @igorbrasil8066
    @igorbrasil8066 ปีที่แล้ว

    excellent!!

  • @shaikhanuman8012
    @shaikhanuman8012 หลายเดือนก่อน

    Can i implement this logic in chat application ?

  • @tipsmooc
    @tipsmooc 3 ปีที่แล้ว

    Tks Bro. Please help me fix error: "Socket closed abruptly during opening handshak". I think the installation with docker seems to have a problem.

  • @prakashkumargupta5498
    @prakashkumargupta5498 ปีที่แล้ว

    how to insert data in mysql database using rabbitmq please tell me

  • @milon27
    @milon27 ปีที่แล้ว

    how to design database in microservice

  • @bushranikhat2326
    @bushranikhat2326 3 ปีที่แล้ว +1

    How to make connection between mongodb and rabbitmq.?
    Means ,I want to fetch data from mongodb and send it to rabbitmq ..

    • @manosriram
      @manosriram  3 ปีที่แล้ว +1

      Will make a video on it very soon.

  • @alessiorizzolo8709
    @alessiorizzolo8709 2 ปีที่แล้ว

    Is there a way to inform he publisher that a message has been successfully delivered to the consumer?

  • @moylababa8196
    @moylababa8196 2 ปีที่แล้ว

    why did you write app.get instead of app.post into service 1? since it's sending data, shouldn't it have been app.post ?

  • @mitulpatel6436
    @mitulpatel6436 3 ปีที่แล้ว

    Getting Socket closed abruptly during opening handshake error. Are we not mentioning rabbit mq credential while connecting?

    • @manosriram
      @manosriram  3 ปีที่แล้ว

      Is the rabbitmq docker container running in the background?

  • @maxinitin
    @maxinitin 3 ปีที่แล้ว

    How do you connect with rabbitmq cluster with mutliple nodes? how the connection string looks like then?

  • @manoharmano9434
    @manoharmano9434 3 ปีที่แล้ว

    docker command used in the tutorial shows as not recognized, can i know how to install docker in windows for rabbitmqq running

    • @manosriram
      @manosriram  3 ปีที่แล้ว

      You can download docker from www.docker.com/get-started

  • @mukeshkumar-gd2vk
    @mukeshkumar-gd2vk 3 ปีที่แล้ว

    Sir if service 1 is queing a message and service 2 has acknowledged it then how service 3 will get msg. Also provide help to run rabbitq on docker. Great video for understanding

    • @manosriram
      @manosriram  3 ปีที่แล้ว +1

      In that case, you can create consumer groups (which is a set of subscribers of a specific channel) and consume from that channel.
      By doing this, you will be notified of events to multiple services.

    • @mukeshkumar-gd2vk
      @mukeshkumar-gd2vk 3 ปีที่แล้ว +1

      @@manosriram thanks sir, one more question if service 1 is updating some data and has to sync same data on service2 but rabbitq is not working for some reason at that time then how to sync data across microservices.

    • @mukeshkumar-gd2vk
      @mukeshkumar-gd2vk 3 ปีที่แล้ว

      Sir kindly help. How to configure rabbit mq with database to use it in our production. What will be the cost.

  • @geek.with.a.camera
    @geek.with.a.camera 3 ปีที่แล้ว

    I have started learning RabbitMQ recently and going through their documentation and watching another tutorial video on youtube (using Java) I learnt that it uses Exchange and and is binded to queues through some routing key. But here I see it used totally different (directly interacting with queue without the need for exchange and routing key). Does it have a different implementation in Nodejs or am I missing something?

    • @nickihlljack7366
      @nickihlljack7366 3 ปีที่แล้ว +1

      No the implementation is the same..I believe this tutorial is simple to show just the idea behind microservices communication in Node using RabbitMQ..For a production implementation the Exchange , binding and routing keys are necessary for Publish/Subscribe

  • @tropikalGG
    @tropikalGG 2 ปีที่แล้ว

    so... good tutorial but how do you deploy this?

  • @ishasharma744
    @ishasharma744 2 ปีที่แล้ว

    installing docker is mandotary? or there is another command to do the same thing?

    • @manosriram
      @manosriram  2 ปีที่แล้ว

      you can install rabbitmq without docker also, but docker is the easiest way to start the rabbitmq server.
      You can download it here: www.rabbitmq.com/download.html

  • @chihabahmed5207
    @chihabahmed5207 3 ปีที่แล้ว

    excellent bro, can you make a quick to tutorial on vim and some keyboard shortcut that you use because it will help us immense .
    also, do you think its a good idea to start my project with a microservice as I am going to build a small social network and I am expecting, a messaging system, moderation system , login etc etc.
    I am following a tutorial in udemy on how to implement this using event driven / busses, just like rabitmq but not sure if If its a good idea to start my project in this manner because I would need to handle some moderation to my content and possible third party ai that would flag contents so later I could manually review them and reject or approve them.
    thanks

    • @manosriram
      @manosriram  3 ปีที่แล้ว +1

      Thank you.
      I already have a video on Vim, do check it out.
      Monolith or Microservice, I think it depends on your preference. If you're going to have a huge application or you don't want to risk downtime, it is better to go with microservices

    • @chihabahmed5207
      @chihabahmed5207 3 ปีที่แล้ว

      ​@@manosriram oh you have a video already? I will check your channel.

  • @StarDust_2077
    @StarDust_2077 3 ปีที่แล้ว

    Can this be done without docker?

    • @manosriram
      @manosriram  3 ปีที่แล้ว

      Yes, it can be done without docker too by installing it on your system.

  • @windwardhive7363
    @windwardhive7363 3 ปีที่แล้ว

    can you please share repo link for this video?

    • @manosriram
      @manosriram  3 ปีที่แล้ว

      Here it is: github.com/manosriram-youtube/node-microservice

    • @windwardhive7363
      @windwardhive7363 3 ปีที่แล้ว

      @@manosriram thanks

  • @chrishanthacosta4093
    @chrishanthacosta4093 3 ปีที่แล้ว +1

    hi, brother, every thing fine except elon musk, cause I think elon is not a role model or someone we need to have some honour of. he married 3 times. has forgotten basic human values like family, common good of humanity etc. As an archetypal american entrepreneur he focuses on profit and profit only. See how many poor people in his own country. he is not going to solve that problem but trying to setup a space business.
    Moreover he is getting support from american government for all his business ventures while americans preach to other countries stay away from private enterprise.. this is enough..

  • @SD-dv8zw
    @SD-dv8zw ปีที่แล้ว

    Dude you are at very begining level you have to study more. Try to make videos after doing lots of study. You seems very confused while making video.

    • @manosriram
      @manosriram  ปีที่แล้ว

      Sure brother, do have a look at my new videos.