You can't decouple validation from the datastore if you want to be certain that all the validation happens and none is ever bypassed or outdated.
It bugs me how many systems have opt-in correctness.
It bugs me how many systems have opt-in correctness.
1. Most applications don't need 100% correctness. Few people are writing nuclear reactor control systems, or bank account management software
2. This model frees you to up to compute at the edge more.
Is there a chance that you consider something valid that eventually wasn't? Yes. But in a single actor-per interaction system (e.g. an single actor mutating something, multiple people seeing effects, etc.), typical to the web, this is OK.
People know about CAP theorem but hang onto the C with dear life. Let it go. It makes everything easier. Honest.