Re:Is a shared database in microservices actually an anti-pa...
by geezerjay on Monday February 25, 2019 @02:51PM
(#19248772)
> Each microservice maintains its own database, with a model that is tailored to its own domain. This is called a projection
In DDD land this is referred to as bounded context.
Each microservice maintains its own database, with a model that is tailored to its own domain. This is called a projection, to illustrate that it is really the service's own view on the world, often with redundancy of data.
The service sources just the events it needs, and stores only the data it needs, to maintain this projection. It handles domain object lifecycle events in the way that makes sense for that particular service.