logoalt Hacker News

atom_arrangertoday at 6:39 PM1 replyview on HN

Can you elaborate on 4 a bit, are you saying to always use event sourcing, or something like it?


Replies

frollogastontoday at 6:41 PM

Yes, it's that. You do probably end up wanting to store some "latest" denorm tables at some point, but it takes surprisingly long to reach that point, and isn't hard when you get there.

There are disadvantages to this, but it's a safe default. The alternative is possibly losing important data, finding out later you want historical records of things that are stored in kludgy separate tables, getting into more advanced locking situations, and having more complex DB migrations. Which I've had to pull teams out of many times.

show 1 reply