Hi I am working on some micro services for demo. I have created two services. One is user which holds userId, name, address. Second service is Product service. This holds product id, productname, productdescription. Now I want to develop third service which is basket service. Which will take userid from userservice and productid from product service. Now in third service(Basket Service) I want to get data of user and product service. For example, User will send user id and product id to basket service. Now basket service should get user details and product details from user service and product details. Now I want to call user service and product service from basket service. I have gone through the communication between the micro services and understood few mechanisms. I followed this.
- Synchronous HTTP requests
- Asynchronous like Rabit MQ
I am just trying to understand scenarios like above which mechanism will be best suited? Can someone help me in this?