🔥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.
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
Very knowledge full video and love you sir ❤️
Please secure all microservice and also apply security in api gateway
Very Good Video about microservices communication
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 ?
sir please make video to connect firebase with spring boot and perform tasks like send notification and send otp using firebase
Thanks for the session Durgesh, Really it's useful Because it contains integration part & also you used logger in User service... 🥰🥰😌😌
Durgesh bhai please make in this microserive series AWS configguration,DOCKER and kubernates and KAFKA or RABBITMQ series in this microservice
Thank you so much Durgesh!!!!!
Thank bhai
Sir when we get Single user then we get ratings
But How to get ratings when we fetch all users?
Thank you so much. I am learning a lot from you.
Buhat wait karwaya sir
Awesome content brother ❤️👍🙏
Bro thoda fast na vast rkhna course seekhne ko bhutt kuch hota apke lectures m
Great
Getting an error --
java: 'No enum constant javax.lang.model.element.Modifier.SEALED'
in IntelliJ IDEA, java 21 in ServiceRegistry when running RatingService
Excellent, Thanks
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.
i have created new video on RESTCLIENT
When did you dinfine rating object in user entity ? Do we need to create rating and hotel pojo classes ?
check User implementation vedio. No need to implement Hotel entity
According to me it shouldn't be in user service
Instead of creating bean and doing autowiring, can we create the RestTemplate object directly?
Nice SirG
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??
if we delete a user from the User entity then how data will be corrupted in hotel service.. how we deal with it?
Hi Durgesh Please give me link to download the Source Codes
JmsTemplate tutorial pls...
Why have we declared rating entity in the user service. Is this really how microservice works?
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.
Does anyone have code for the getAllUser() part?..I dont know how to link List to ArrayList and then return it in List format..?
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;
}
@@ahsanalimughal3701 thanks
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?
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.
inshort check user entity ther...u hav declared that rating
@@pankajseervi3550 should we declare the rating entity in the user service?
Shouldn't it be fetched from Rating Service
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.
Bhai GitHub ki link send kar do please
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
Small Typing mistake
@@jayvajani2873 @Service
Thanks @ Azzan Gulzar ...solved same day..