|
|
|
|
|
by EdwardDiego
768 days ago
|
|
As opposed to event sourcing, which every time I've seen it in use, contains a bug ridden slow implementation of event sourcing. Seriously, event sourcing is hard to do right, maybe soft delete is the simpler approach, it depends on what you're doing. |
|
IMO, if entity might be resurrected/revived/“undeleted”, then it either cannot be killed/deleted, or more likely what you thought as “deletion” was something else (e.g. suspending, archiving, hiding, or putting into trash bin).
It’s better to model a lifecycle of such an entity as an FSM.
And yes, Event Sourcing might be harder in some respects, but it’s make things easier in others, as it makes soft-delete and tens of other design patterns redundant.