Let’s imagine you are developing an online store application using the Microservice architecture pattern . Most services need to persist data in some kind of database. For example, the Order Service stores information about orders and the Customer Service stores information about customers. Problem What’s the database architecture in a microservices application? Forces Services must be loosely coupled so that they can be developed, deployed and scaled independently Some business transactions must enforce invariants that span multiple services. For example, the Place Order use case must verify that a new Order will not exceed the customer’s credit limit. Other business transactions, must update data owned by multiple services. Some business transactions need to query data that is owned by multiple services. For example, the View Available Credit use must query the Customer to find the creditLimit and Orders to calcula...
Comments
Post a Comment