Hi,

In looking at potential simplifications of the UoW, I'm wondering whether it would be ok to limit the number of involved EntityStores to 1?

In DDD there is already the suggestion to limit nr of changed aggregates in a request to 1. I violate that sometimes, but in any case there will NEVER be entities from several EntityStores involved in the same UoW.

So, does anyone have a case with several EntityStores being involved in one UoW? If no, can we enforce that only one can be involved.

The reason is that the current commit handling is a bit complicated due to having to allow several EntityStores to be used. Not a single EntityStore supports this properly though, AFAIK. I would therefore prefer to make it a "1 phase commit", which would probably also make it easier to support the EventStore commit.

Any thoughts on this?

/Rickard

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to