News for hackers. Stuff that matters.
Re:Beware anti patterns in event driven architecture by _3u10 on Saturday June 08, 2024 @07:29PM (#40620850)
Pretty much. Also all your projectors need to be deterministic.

eg. Your commands have to ALWAYS do the same thing else replaying the event log does not produce the same output and then you’re back to square one.

It’s usually easier / more useful to just use an audit table.

Re:Beware anti patterns in event driven architecture by blowski on Sunday June 09, 2024 @06:00AM (#40623277)
Yes, if version 1.3 of Command handler X was the active version when an event happened, then it needs to be replayed with that version, even if you’re now on v4.5.