News for hackers. Stuff that matters.
Re:An Opinionated Clojure CQRS/ES Using Onyx, Datomic, Dynam... by chadly on Thursday February 12, 2015 @01:19PM (#9040285)
The current relational database is too limiting. We're dropping all sorts of interesting data on the ground because we don't have suitable pigeonholes to put it into.

That is the best description of the problem event sourcing tries to solve that I have seen. Short and to the point.

Re:An Opinionated Clojure CQRS/ES Using Onyx, Datomic, Dynam... by dragonwriter on Thursday February 12, 2015 @02:26PM (#9040791)
> That is the best description of the problem event sourcing tries to solve that I have seen.

Huh. I always thought that the problem event sourcing was trying to solve was more that modeling complex interactive systems through their static state rather than modeling the interactions directly as the principal domain objects is invariably futile. While "we're dropping all sorts of interesting data on the ground" may be one manifestation of that, I think the more common manifestation is "we bear too high of an expense when adapting our information system to changes in business process".

Re:An Opinionated Clojure CQRS/ES Using Onyx, Datomic, Dynam... by solipsism on Thursday February 12, 2015 @02:29PM (#9040806)
modeling complex interactive systems through their static state rather than modeling the interactions directly as the principal domain objects is invariably futile

Now that actually makes sense to someone not already familiar with the context.

Re:An Opinionated Clojure CQRS/ES Using Onyx, Datomic, Dynam... by vosper on Thursday February 12, 2015 @03:30PM (#9041198)
I agree - that was the best explanation of CQRS I've seen.
Re:An Opinionated Clojure CQRS/ES Using Onyx, Datomic, Dynam... by socceroos on Thursday February 12, 2015 @07:56PM (#9042290)
CQRS != Event Sourcing. ;)
Re:An Opinionated Clojure CQRS/ES Using Onyx, Datomic, Dynam... by Terr_ on Thursday February 12, 2015 @02:21PM (#9040750)
I'd add: "All data-models have strengths and weaknesses. The event-log is weak on its own, but its strength is that it nurtures an ecosystem of other models for specific use-cases."
Re:An Opinionated Clojure CQRS/ES Using Onyx, Datomic, Dynam... by solipsism on Thursday February 12, 2015 @02:13PM (#9040691)
Maybe to someone who's already familiar with other, longer descriptions of the problem. I don't know what problem this is solving and that description doesn't do much for me.

Can someone either explain, or point to a fuller explanation, of the purported problem?

Re:An Opinionated Clojure CQRS/ES Using Onyx, Datomic, Dynam... by Terr_ on Thursday February 12, 2015 @02:28PM (#9040804)
There are some overlapping architectural ideas here, I find they build upwards like this:

CQRS: You have one "write" data-model which is specialized for transactions and applying business rules... and other "read" models that take care of things like dashboards, detailed information pages, searching, generating reports, etc.

Chronological events: A really handy way to propagate changes from the write-model into the various read-models.

Event-sourcing: This is "dogfooding" your own events. Instead of just emitting optional messages to other systems, you make them essential, and use them as the authoritative record for your own system's state. This adds certain kinds of flexibility that you may (or may not) need.

Re:An Opinionated Clojure CQRS/ES Using Onyx, Datomic, Dynam... by dj-wonk on Friday February 13, 2015 @10:53AM (#9044928)
If one describes CQRS as being mostly about a write (e.g. master data) + read (e.g. derived data) combination, how far could one get with a relational system with views and triggers?
Re:An Opinionated Clojure CQRS/ES Using Onyx, Datomic, Dynam... by Terr_ on Friday February 13, 2015 @01:37PM (#9046158)
Pretty far, I imagine, especially with things like materialized views... I'm just biased against putting more logic into the DB than strictly necessary, given the difficulty of versioning that logic and how the DB is often the bottleneck among multiple webservers.
Re:An Opinionated Clojure CQRS/ES Using Onyx, Datomic, Dynam... by jamii on Thursday February 12, 2015 @04:05PM (#9041384)
Re:An Opinionated Clojure CQRS/ES Using Onyx, Datomic, Dynam... by reubano on Friday February 13, 2015 @08:59AM (#9044293)
Very nice!Here's a good follow up on the inner workings of onyx. https://github.com/MichaelDrogalis/onyx/blob/0.5.x/doc/user-...
Re:An Opinionated Clojure CQRS/ES Using Onyx, Datomic, Dynam... by CmdrDats on Thursday February 12, 2015 @04:14PM (#9041419)
Thanks jamii, that's an excellent read - I forgot to add it to the Further Reading section! Will do that now :)
Re:An Opinionated Clojure CQRS/ES Using Onyx, Datomic, Dynam... by mrits on Thursday February 12, 2015 @01:54PM (#9040570)
I disagree. I mean sure, I put humans and radiation in the same pingeonhole, but thats more of a devops problem to work out.