I have 2 Micro Services one for Orders
and one for Customers
Exactly like below example
http://microservices.io/patterns/data/database-per-service.html
Which works without any problem.
I can list Customers
data and Orders
data based on input CustomerId
But now there is new requirement to develop a new screen
Which shows Orders
of input Date and show CustomerName
beside each Order
information
When going to implementation
I can fetch the list of Orders
of input Date
But to show the corresponding CustomerNames
based on a list of CustomerIds
I make a multiple API calls to Customer
microservice , each call send CustomerId
to get CustomerName
Which lead us to more latency
I know above solution is a bad one
So any ideas please?