#call 2 services
1 messages · Page 1 of 1 (latest)
what do you mean call internal?
are those two services located in a single application?
I mean , I have api-gateway like message broker , product services is one of service in micro, and category service , in products I want get all info category service to map with table in product filed
But I don't know how to call data between 2 services
I'm not sure if I follow 
with dependency injection you can call services from elsewhere, is that what you're looking for?
https://docs.nestjs.com/providers#dependency-injection
or do you want to call services that are located in another application via a microservice transport layer?
Yes i would like call services from another application via a microservices,
what transport layer do you use?
Rabbitmq
Table products services have 3 field name , description , categoryID from service A
Table category have 3 field id name description in servjce B
2 of theme is 2 services independent in microservices
I would like to call data from service B to A to mapping data return fe
But i don't know to call internal between 2 services
🥲🥲🥲
Example like this
I don't know call get all data order to mapping table in services products
Do you have any ideas??
that's the disadvantage you get with microservice architecture, you cannot paginate and at the same time join/map the data across microservices/domains
it's a complex design problem that can be solved but with greater cost
One of the challenges of the microservices architectures is that the data is managed by different services what makes difficult to do queries across multiple
Yes I read a lot article but don't say about relationship between 2 services
the best you can do is keep everything isolated and forget about aggregating the data on the backend
let the end-user (clients) decide what they want to see by sending multiple requests to the backend
Thank your support 🥹🥹🥹
Using CQRS to implement call between each service