Hacker News new | ask | show | jobs
by deterministic 599 days ago
I design events following these rules:

1. You should be able to recreate the complete business state from the complete event sequence only. No reaching out to other servers/servies/DB’s to get data.

2. The events should be as small as possible. So only carry the minimum data needed to implement rule #1

That’s it. It works really well in practice.