3 ms·
Why do you believe capturing semantic events (update statements, delete statements, alter statements, etc...) is superior to capturing a log of the data changes
by ZenoArrow 11y ago
Why do you believe capturing semantic events (update statements, delete statements, alter statements, etc...) is superior to capturing a log of the data changes?
Whilst there is an element of compactness when it comes to capturing semantic events, the benefit of using a simpler mechanism like logs means that you don't need to use a full database engine to parse the data, and may end up offering better performance (for example, no need to calculate what a commit rollback entails on every node, just do it on the master node and let the other nodes read the logs to know what to update).
- boothead 11y agoI didn't explain properly. I meant that I think the things that should be stored are things like. CustomerCreated { stuff } CustomerMadeOrder { custId, stuff } ItemAddedToOrder { orderId, stuff } etc.. This is the event sourcing view of the world.