On 2010-10-23 18.18, Stanislav Muhametsin wrote:
Came to think about it, I think the query-option might be thread-unsafe.
Is the following situation possible?
<snip>

Correct, there's no way to guarantee that what you described doesn't happen, unless you want a singleton somewhere that both have to serialize on. So naturally, if you go distributed it gets even worse.

Requiring global uniqueness is a constraint that should be REALLY REALLY well thought-through (i.e. does the business really need it) before doing, because of the inherent difficulty in ensuring it.

/Rickard

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

Reply via email to