I Mastered Microservices Architecture in NodeJS and You Can Too!

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024
  • Nodejs Microservice tutorial, Through this video we will learn how to kick start with Nodejs Microservices with the help of a quick practical example. For demonstration purpose, I have picked a NodeJS monolithic application and split into microservices and showing how it is serving the frontend exactly same way like monolithic with added some flexibility.
    It is highly recommended to code along with me if you are comfortable so you can move your progress step by step.
    You can find the source code from the link below to compare your code.
    github.com/cod...
    My little contribution if help you to grow I will be very happy.
    Thank you.
    #nodejs #nodejsmicroservice #microservicesarchitecture #distributedsystems #nodejemosdeconectarnos

Комментарии • 55

  • @nobytes2
    @nobytes2 2 года назад +8

    Great tutorial! I feel like there should be a shared library between the microservices to avoid typing class models as literal objects.

  • @bikramgyawali7292
    @bikramgyawali7292 2 года назад +2

    Not only this other contents are also really amazing in this channel
    keep it up keep going .

  • @havefun5519
    @havefun5519 Год назад +1

    part1 is fine and easily to follow, part2 clean code is little bit hard to follow, will review again after all videos are watched. Thanks for the refactor videos step by step.

  • @tranquillityEnthusiast
    @tranquillityEnthusiast 2 года назад +4

    A lot to learn from this video.

  • @ahmednabil5005
    @ahmednabil5005 Год назад

    Thanks very much , I wish I land my first job to pay for your channel

  • @medAmineRg
    @medAmineRg 11 месяцев назад

    that was a great series thank you

  • @shaikhanuman8012
    @shaikhanuman8012 2 месяца назад

    Hi Jay, You storing orders and whislist in the user object, In the future, what if the product name is updated for a particular product id, how you can handle this situation. Could you please explain those scenarios? it would be great. Till now, your concepts are clear. Thanks

  • @favio9454
    @favio9454 2 года назад +2

    Great video. I understand that every microservice should have its own database isolated from another but how could we avoid hardcoding the properties in each db?

    • @codewithjay
      @codewithjay  2 года назад +3

      I believe we can do everything related to DB through migration. Decoupling and use of dynamic properties we will learn in coming episodes for sure. End of the day every microservice will have its own properties and responsible data only other than redundant one. Please refer to episode 5 for understand better this concept.
      Cheers!

  • @dushyantjaidka3345
    @dushyantjaidka3345 5 месяцев назад

    Awesome work thanks a lot

  • @HieuTran-hr9sn
    @HieuTran-hr9sn 7 месяцев назад

    Thank you for great turtorial. I have a question that: in 5:09, why didn't you delete the populate('withlist') when you have deleted the product model

    • @codewithjay
      @codewithjay  7 месяцев назад +1

      Yes I could have done that. I was more focused on the microservice representation rather focused on business logic.
      Cheers!

  • @tranquillityEnthusiast
    @tranquillityEnthusiast 2 года назад +2

    Great video,looking for new video.

  • @gor2em
    @gor2em Год назад

    thank you so much. you are amazing

  • @hoseinnajafi8525
    @hoseinnajafi8525 2 года назад

    very very Good and Usefull

  • @nghenhacchodobuon
    @nghenhacchodobuon Год назад

    great, you're master. Thank you

  • @justinchukwu362
    @justinchukwu362 Год назад

    Great tutorial! what application did you use for the diagram illustration (white board)?

    • @codewithjay
      @codewithjay  Год назад +1

      Thank you for appreciation!
      whimsical.com/
      Enjoy!

  • @belkhiriasadok7245
    @belkhiriasadok7245 5 месяцев назад

    Could you please provide a video that explains the monolithic part step by step? I don't understand it.

    • @codewithjay
      @codewithjay  5 месяцев назад +1

      Watch NodeJS Online Food Order series to understand Monolithic architecture.

  • @yutsacarm8021
    @yutsacarm8021 20 дней назад

    gold mine video

  • @orikanner4873
    @orikanner4873 Год назад

    Another amazing video! By the way, how are you populating objects that are not Mongoose Schema.Types.ObjectId?

    • @codewithjay
      @codewithjay  Год назад

      Apologies for late response!
      For individual schema it's not mandatory to have an ObjectId to populate data you can use search query to populate. In the most use cases we are using ObjectId references for relations or embedded schema for achieve the goal. But due to limitation of embedded schema it is suggested to keep schemas small and separated but always use reference ObjectId to establish relations. For populate related the data make sure at least you have correct reference id to use it's query parameters to populate deeper items.

  • @haonguyennhat5587
    @haonguyennhat5587 5 месяцев назад

    how to fix "undefined
    TypeError: Cannot read properties of undefined (reading 'split')"

  • @nguyentoanhnt
    @nguyentoanhnt Год назад +2

    Thanks!

  • @jilse7
    @jilse7 2 года назад

    Great Video man, tank you :D

  • @souravchaudhary2585
    @souravchaudhary2585 3 месяца назад

    my only question is, can we do the same thing using functions instead of classes?

    • @codewithjay
      @codewithjay  3 месяца назад

      Yes you can do that. You can follow this playlist where we have use functional programing for everything. ruclips.net/p/PLaLqLOj2bk9aaZZYoH7tMDj5obE7os45_
      Cheers!

    • @souravchaudhary2585
      @souravchaudhary2585 3 месяца назад

      Thank you so much Jay, you are awesome. I am learning so many things.

  • @sami7986
    @sami7986 2 года назад

    Thank you so much🙏🙏🙏🙏🙏🙏🙏

  • @shaikhanuman8012
    @shaikhanuman8012 2 месяца назад

    Thanks!

  • @hoseinnajafi8525
    @hoseinnajafi8525 2 года назад

    Thank you bro

  • @cheerladinnemouli2864
    @cheerladinnemouli2864 7 месяцев назад

    you're coding style id too different is this old style or new one?

    • @codewithjay
      @codewithjay  7 месяцев назад +1

      There are no old vs new. You can adapt the way to get it done. if you wish to learn more about the current coding standard follow our Kafka Microservice series.

    • @cheerladinnemouli2864
      @cheerladinnemouli2864 7 месяцев назад

      @@codewithjay thank you so much for your replay I'm a backend node.js developer i want get more knowledge in backend so is these series enough?

  • @poriaR
    @poriaR Год назад

    tnx man

  • @kaisian4940
    @kaisian4940 3 года назад

    is it possible to make the vscode font bigger? it is too small for me :'(

    • @codewithjay
      @codewithjay  3 года назад +2

      Certainly, I will make it lill bigger for coming episodes. Stay tuned to my channel for more interesting topics.

  • @milyghildiyal
    @milyghildiyal 2 года назад +1

    Can you share git do download the cde

    • @codewithjay
      @codewithjay  2 года назад

      github.com/codergogoi/nodejs_microservice

  • @habesha168
    @habesha168 2 года назад

    hello sur first thank you for your wonderful video but get an error for mongodb connection like listed error below sow would you help me Error ============
    MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.

    • @codewithjay
      @codewithjay  2 года назад

      Same here please try to console log the DB URL you are providing correctly or not?

    • @pankajjagtapp
      @pankajjagtapp Год назад

      You need to add npm run dev line which is mentioned in the video. Then close the exisiting terminal and run the command 'npm run dev'

  • @lapthanh3270
    @lapthanh3270 Год назад

    Can you send me the fontend code of this project? thanks you

  • @bikramgyawali7292
    @bikramgyawali7292 2 года назад

    Reach ++

  • @dimashomarbaev5882
    @dimashomarbaev5882 5 дней назад

    Hi, help me solve problem!
    PS G:\Tutorial\Grocery_Online_Shopping_App\online_shopping_monolithic> npm run dev
    > shopping_app_monolithic@1.0.0 dev
    > NODE_ENV=dev nodemon src/index.js
    'NODE_ENV' is not recognized as an internal or external command, operable program or batch file.

  • @habesha168
    @habesha168 2 года назад

    Error ============
    MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.

    • @codewithjay
      @codewithjay  2 года назад

      You need to use .env file for DB_URI. It is clear that mongodb connection is empty. Kindly check the source code and you will get the information there.

    • @pankajjagtapp
      @pankajjagtapp Год назад

      You need to add npm run dev line which is mentioned in the video. Then close the exisiting terminal and run the command 'npm run dev'

  • @chetanns9860
    @chetanns9860 Год назад

    Error ============
    MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.
    at NativeConnection.Connection.openUri

    • @codewithjay
      @codewithjay  Год назад

      Please check your local mongodb is running correctly or not. And make sure in the env you need to pass the mongodb url.

    • @pankajjagtapp
      @pankajjagtapp Год назад +1

      You need to add npm run dev line which is mentioned in the video. Then close the exisiting terminal and run the command 'npm run dev'