|
|
|
|
|
by CmdrDats
4139 days ago
|
|
Technically it could - but I felt Datomic is particularly strong as an aggregate view. Adding transactions that just have events attached to them isn't a particularly useful aggregate to query. Having the eventstore separate means that you can keep Datomic focussed at what it's really good at. When you find good aggregate views for your events, you can scan through old events and populate Datomic. This separation also means that you can make the events as rich and plentiful as you want without burdening Datomic with stuff that you don't have a good way to query anyhow. |
|
For example of I have a 'make_user_preferred' event, I just transact the database and then add any metadata I need to the Datomic transaction.
Datomic is Event Sourcing if you create a realized version of your database on every event. It is just smart about it and keeps diffs.