4 ms·
Yeah, microservices and event sourcing go hand in hand. Each microservice maintains its own database, with a model that is tailored to its own domain. This is
by aedron 8y ago
Yeah, microservices and event sourcing go hand in hand.
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.
- geezerjay 8y ago> 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.