by jared314 · 11y ago · 0 comments
I still don't understand.
The transaction log, in datomic, can be queried as easily as you would query the rest of the data. The view exists on the client. Changes are already queued by the transactor. And, changes are pushed to the clients from the transactor.
In certain cases you can definitely put the events directly into the transactions. In our case, it's just not the right fit and I suspect that many others will find the same constraints apply.
Ok, so it was a technical issue. I assume you attempted to change the indexing.
The technical reasoning did not come through in the project page or your comments.
Was it because a CSR got a call from a pissed-of-customer and agreed to change it? Was it because a third-party system fucked up and decided give the customer a little more "x"?
This is where Domain-Driven-Design comes in and CQRS/Event Sourcing really shines. The net effect of those two events I just described may be exactly the same for MY domain, but if there are other systems that are listening for the domain's events they may come to radically different conclusions. In CQRS/ES you would actually record those two things as different events, semantically.
It really upsets me that people don't get this about CQRS/ES. Maybe I should just start spamming links to Greg Young's talks...
A Datomic transaction is also an entity, with associated facts about that transaction. You can add custom facts, such as your application's domain event, directly to the transaction entity to further describe the event/transaction. You can then query over the transactions as you would any other data. In CQRS/ES terms, it is an event store with snapshots on every event without the cost of duplicate data.
The technical issue appears to be that their event stream was of a high enough throughput that the indexing caused a space issue.
Also, how are you defining "high write volume"? Have you looked at metrics of how fast Datomic's serial transactor can be?
I agree Datomic is far more than a write log but in the context of this thread, the discussion was about write logs.