News for hackers. Stuff that matters.
Re:Is a shared database in microservices actually an anti-pa... by aedron on Monday February 25, 2019 @07:07AM (#19245035)
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.

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.