2 ms·
Account balance is a bad example, because it cannot be solved using event sourcing. A key to event sourcing is eventual consistency. The account balance cannot
by beiller 8y ago
Account balance is a bad example, because it cannot be solved using event sourcing. A key to event sourcing is eventual consistency. The account balance cannot be eventually consistent, otherwise it will allow double-spending. It has to be immediately consistent.
- UK-Al05 8y agoNot if the event sourcing aggregate rehydrates on the request to spend, and sends failure or success back.