The microservice architecture has the database per service pattern, which means it has an independent database for every dependent or independent service:
- Dependent service: Our application would require a few external services (third- party services or components and so on) and/or internal services (these are our own services) to work or function as expected. For instance, Checkoutservice requires Customer service; also, Checkout service requires an external (third-party) service to verify a customer's identity (such as Aadhar card ID in the case of Indian customers). Here our Checkoutservice service is a dependent service, as it requires two (internal service and external service) services to function as expected. ...