Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
eyads
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
eyads
2y ago
add_item is not an event, rather a command/ request that is yet to be validated. item_added is the event = a fact that was 'allowed to happen' by the system. Keeping commands in a persistent store is a matter of choice but n
2.
▲
by
eyads
2y ago
TLDR; You evaluate your preconditions and invariants before the event is published, using the current state of the aggregate. Here's how that looks like in a DDD world: * An aggregate is responsible for encapsulating business rules and