Data integrity across the databases of different Microservices

Viewed 2681

Let's say I am using relational databases for my microservices. I have CustomersMService which has its own database with table Customer, then I have OrdersMService which also has its own database but with table Order and that table has column CustomerId. My question is how can I ensure data integrity between databases, that Orders table won't point to non-existent Customers?

1 Answers
Related