Thanks for feedback
> Hi,
> 1. It would good to put a fresh air into presentation layer.
> Javascript MVC frameworks are amazing (angularjs, knockout, backbone,
> ember).
>
> (right now o'm looking for a glue to join: JSON with hypermedia API + CQRS
Heh, because of gui possibility overflow we decided to go the
opposite: cut off presentation and focus on acceptance scenarios that
hit the server api
> 2. Eliminate casting in dispatch method of gate interface. That's easy:
> public <R extends Object> R dispatch(ResultTypeAware<R> cq);
ok
> 3. When i was studying the leaven i haven't found the solution to accomplish
> the rule "change one aggregate per transaction", this was a pain for me.
This rule is useful in context of scalability (and very specific
assumptions about scalability).
Technically its simple: just use events. But modeling problem this way
may be a challenge...
We could think about technical constraint that blocks changing more
than 1 aggregate and forces developer to use event.
But what about use cases when we just need to change few aggregates?
> Today, I'm a follower of a mutated rule "change one aggregate per
> commandhandler execution, you can change many aggregates per transaction but
> separate the change over the event"
So You must have synchronous events and TX "above" all this "process".
What about accidental complexity?
> I thing that's the most difficult part of DDD, the more examples in this
> area would be included in leaven the more popularity it would have be;)
Modeling in this manner may be extremely difficult. Question is: when
is it worth doing so?
> good luck!!
Thanks:)