🔥Microservices Communication | How USER SERVICE Communicate to RATING SERVICE | Microservices Series

Поділитися
Вставка
  • Опубліковано 5 жов 2024
  • In this video we are going to learn how microservices communicate with each other. Microservices communications.
    Microservices Communication | How USER SERVICE Communicate to RATING SERVICE | Microservices Series
    Full Microservices Series:
    • Microservices Tutorial...
    Telegram Link for Doubt: t.me/learncode...
    Important Videos:
    ➡️React JS with Project : • 🔥 🔥 Complete React Js ...
    ➡️Learn JDBC in one video: • JDBC Crash Course in 1...
    ➡️Learn Python in One Video: • Learn Python in One Vi...
    ➡️Learn HTML in one video: • Jquery in one video in...
    ➡️Learn HTML form in one video: • Jquery in one video in...
    ➡️Learn JavaScript in one videos: • Learn JavaScript in O...
    ➡️Learn Form Validation using javascript and jquery: • Form Validation using ...
    ➡️Learn CSS in one video: • Jquery in one video in...
    ➡️Jquery in one video: • Jquery in one video in...
    Kotlin is one video: • Kotlin | Learn Kotlin ...
    ➡️Complete Python Project - UA-cam downloader in one video: • Jquery in one video in...
    Important Playlist:
    ➡️Spring Boot Tutorial with Project : • Spring Boot Tutorial i...
    ➡️Spring MVC Tutorial: • Spring MVC Tutorial St...
    ➡️Complete Spring Framework Tutorial: • Spring Framework Tutor...
    ➡️Hibernate Tutorials: • Hibernate Tutorial for...
    ➡️E-Commerce Project using Java: • E-Commerce Project usi...
    ➡️AWS Free Java Hosting Playlist: • AWS Hosting Tutorial |...
    ➡️Hibernate Tutorial Playlist: • Hibernate Tutorial for...
    ➡️Learn Technology in One Vides: • Learn in one video : C...
    ➡️Programming Tips for Programmers: • Coding Tips and Discus...
    ➡️Complete Python for Beginners: • Complete Python Tutori...
    ➡️Important Python Projects: • Python Projects in Hindi
    ➡️Complete Servlet & JSP : • Servlet and Jsp (Serve...
    ➡️Complete JDBC ( Java Database Connectivity) : • JDBC(Java Database Con...
    ➡️Complete Java Project : TechBlog: • Full Java Advance Pro...
    ➡️Java Swing Projects: • Java Projects for begi...
    ➡️Java Core Concepts: • Java Core Tutorial
    ➡️Kya aap Jante hai Series: • kya app jante hai : s...
    Important Links:
    👉Official Website (Source Code): learncodewithd...
    👉Telegram Discussion Group: t.me/learncode...
    👉Follow me on Instagram: / durgesh_k_t
    👉Follow on Facebook / learncodewithdurgesh
    Disclaimer:
    All videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.

КОМЕНТАРІ • 46

  • @rahuljain-zw8vx
    @rahuljain-zw8vx Рік тому +9

    Most important interview ques for 5-6 yrs dev. Was not getting good content anywhere and I knew from u will get it 😉
    Bro also make video to communicate using broker

  • @raghutechnicalno.1187
    @raghutechnicalno.1187 Рік тому +5

    Very knowledge full video and love you sir ❤️

  • @manojbhale6081
    @manojbhale6081 Рік тому +6

    Please secure all microservice and also apply security in api gateway

  • @shashanksharma7747
    @shashanksharma7747 8 днів тому

    Very Good Video about microservices communication

  • @_syed.saud_
    @_syed.saud_ Рік тому +4

    Sir mujhe interview dena hy recently to aap bta skte hy ki ye wali series kb end hogi aur kitne videos aayenge iske issi ka project mention krunga interview me ?

  • @Taranpreet_singho
    @Taranpreet_singho 3 місяці тому +1

    sir please make video to connect firebase with spring boot and perform tasks like send notification and send otp using firebase

  • @vishalgaikwad873
    @vishalgaikwad873 Рік тому +3

    Thanks for the session Durgesh, Really it's useful Because it contains integration part & also you used logger in User service... 🥰🥰😌😌

  • @sourabhVlogs
    @sourabhVlogs Рік тому +1

    Durgesh bhai please make in this microserive series AWS configguration,DOCKER and kubernates and KAFKA or RABBITMQ series in this microservice

  • @govindnagargoje6526
    @govindnagargoje6526 Рік тому +1

    Thank you so much Durgesh!!!!!

  • @rahulgorad2903
    @rahulgorad2903 Рік тому +3

    Thank bhai

  • @psinha5110
    @psinha5110 Рік тому +2

    Sir when we get Single user then we get ratings
    But How to get ratings when we fetch all users?

  • @saurabhchavan116
    @saurabhchavan116 Рік тому

    Thank you so much. I am learning a lot from you.

  • @bishamkhatri6956
    @bishamkhatri6956 Рік тому +3

    Buhat wait karwaya sir

  • @jiaurrahman1136
    @jiaurrahman1136 Рік тому +2

    Awesome content brother ❤️👍🙏

  • @foddiebyage9696
    @foddiebyage9696 Рік тому +3

    Bro thoda fast na vast rkhna course seekhne ko bhutt kuch hota apke lectures m

  • @rishiraj2548
    @rishiraj2548 Рік тому +2

    Great

  • @FarazulHaque-u5n
    @FarazulHaque-u5n 6 місяців тому +1

    Getting an error --
    java: 'No enum constant javax.lang.model.element.Modifier.SEALED'
    in IntelliJ IDEA, java 21 in ServiceRegistry when running RatingService

  • @Kamlesh-Bobde
    @Kamlesh-Bobde 8 місяців тому

    Excellent, Thanks

  • @ambarishkapil8004
    @ambarishkapil8004 Рік тому

    Durgesh bhaiya, RestTemplate antiquated ho chuka h, woh Spring 4 mein use krte the, Spring 5 mein WebClient use krte hain..aur aab toh Spring 6 bhi aa gya hain, waha pe RestClient use krte hain.

  • @nesel3820
    @nesel3820 Рік тому +1

    When did you dinfine rating object in user entity ? Do we need to create rating and hotel pojo classes ?

    • @mtex448
      @mtex448 Рік тому

      check User implementation vedio. No need to implement Hotel entity

    • @gurnoorsingh2954
      @gurnoorsingh2954 Рік тому

      According to me it shouldn't be in user service

  • @ayushchandel3404
    @ayushchandel3404 10 місяців тому

    Instead of creating bean and doing autowiring, can we create the RestTemplate object directly?

  • @sujitkate1781
    @sujitkate1781 Рік тому

    Nice SirG

  • @saiRakshya
    @saiRakshya 10 місяців тому

    I am calling from microservice 1 api in microservice 2 I am getting response but in microservice I have handled exception in microservice 1 but while called in microservice 2 exception handling not working, why??

  • @kushagraofficial5347
    @kushagraofficial5347 Рік тому

    if we delete a user from the User entity then how data will be corrupted in hotel service.. how we deal with it?

  • @Achutanandapanigrahi
    @Achutanandapanigrahi Рік тому

    Hi Durgesh Please give me link to download the Source Codes

  • @ferio2828
    @ferio2828 10 місяців тому

    JmsTemplate tutorial pls...

  • @gurnoorsingh2954
    @gurnoorsingh2954 Рік тому

    Why have we declared rating entity in the user service. Is this really how microservice works?

    • @sumanthkarmarkar1760
      @sumanthkarmarkar1760 Рік тому

      Rating class which is declared in userService is not exaclty an Entity class, but its a DTO class, which is just used to define the structure of actual Rating entity, In microservices, its not recommended to directly refer to entities from another service because to maintain loose coupling, hence replica of that entity class(DTO class) is created.

  • @anshlyk
    @anshlyk Рік тому

    Does anyone have code for the getAllUser() part?..I dont know how to link List to ArrayList and then return it in List format..?

    • @ahsanalimughal3701
      @ahsanalimughal3701 Рік тому +1

      public List getAllUsers() {
      List users=this.userRepository.findAll();
      users.forEach(user -> {
      ArrayList ratings=restTemplate.getForObject("localhost:8083/ratings/users/"+user.getUserId(), ArrayList.class);
      user.setRatings(ratings);
      });
      return users;
      }

    • @ayushmer407
      @ayushmer407 4 місяці тому

      @@ahsanalimughal3701 thanks

  • @pranjalsharma5611
    @pranjalsharma5611 Рік тому

    when we are getting the object using restTemplate then how are the values getting mapped to the Rating class which we have made in userservice even when i removed the member variables from there it was still fetching the rating how?

    • @pankajseervi3550
      @pankajseervi3550 Рік тому

      If you see the object created type is ArrayList< Rating> ratingsofUser which is same declared in entity of UserService. So the value which comes automatically it will get mapped.

    • @pankajseervi3550
      @pankajseervi3550 Рік тому

      inshort check user entity ther...u hav declared that rating

    • @gurnoorsingh2954
      @gurnoorsingh2954 Рік тому

      ​@@pankajseervi3550 should we declare the rating entity in the user service?
      Shouldn't it be fetched from Rating Service

  • @ayushs_2k4
    @ayushs_2k4 11 днів тому +1

    5:58 sir, how to secure this /users/{userId} endpoint such that only our micro-services can call it, it can-not be called directly, sometimes we have to get some sensitive data from like authentication microservice in other microservices, but we also do not want to expose that specific endpoint to the rest of the world, it should only be accessible to some of our micro-services. I am stuck at this problem on my personal project. please tell a solution.

  • @vikashmishra4739
    @vikashmishra4739 Рік тому +2

    Bhai GitHub ki link send kar do please

  • @jayvajani2873
    @jayvajani2873 Рік тому

    ERROR:
    Field logger in com.lcwd.user.service.Services.UserServiceImpl required a bean of type 'org.slf4j.Logger' that could not be found. Please help