Duplicate products databases


#1

Hello,

Why are there two product databases (one in the customers service and the other in the products service)? Is there a reason?

Like that, the data will be duplicated no?

It will be no better to keep only the database in the products services and in the API we do the concatenations of the data (customers and products) to build the carts list?

Thank you.


#2

Hi,
Let me paste an answer to the pretty much same question posted on GitHub.
In general, data duplication is fine, as it’s a way to increase the service resiliency and reduce the temporal coupling between distinct services.