title: Microservice database architecture for Ecommerce web app
body: <p>I am trying to create a ecommerce project just for sake of learning spring boot, and hibernate
  and I am thinking of a microservice pattern with six major services : 1.customer 2. Order 3.Product 
  4.Vendor 5. Payment 6.UI Service
  I am facing problem in deciding whether to put all tables in one database shared by all microservices which obviously makes the Db prone to inconsistency,or to go the standard way of creating separate DB's for all microservices.</p>
  
  <p>I am not able to figure out that if I go with the second choice of separate db of a microservice then how the Entries will be updated in Orders table and Customers table. On further findings I found <strong>Saga Pattern</strong>. </p>
  
  <p>Please provide some suggestions or any links to websites or material through which I can address the issue in an efficient way.
  Thanks!</p>