EventSourcing: projection vs cache
A projection is used to create a highly performant read-model. It is eventually consistent. A cache is used when replaying all events to build up state is too slow. “It checks first in a cache and if the object is not present, it will check in the event store.” (https://hackernoon.com/1-year-of-event-sourcing-and-cqrs-fb9033ccd1c6) If the cache is present, it will grab the cache, apply the events since the caching to build up the current state....