Hacker News new | ask | show | jobs
by jpatte 4146 days ago
This is where the distinction between commands and events is important. "AddToCard" is a command (which might fail), while "AddedToCart" is an event that will result from processing only if the command passed validation. You should store events, not commands.