Re:CQRS and Event Sourcing Intro for Developers
by eithed on Wednesday May 22, 2019 @04:04PM
(#19984906)
Every state change needs to be reflected as event. Does your function need to save something to DB? Then your functionality should create event which will perform the DB save.
- Don't use the read side from the write side.
- Each aggregate should own its data (or more abstractly, the basics of DDD, bounded contexts[0]).
[0]: https://cqrs.nu/Faq