curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jordan Zimmerman <>
Subject Re: SharedValue, how does it work?
Date Wed, 01 Oct 2014 21:23:39 GMT
On October 1, 2014 at 4:18:52 PM, Scott Blum ( wrote:
4) Meanwhile user computes  A -> A'.

5) User calls sharedValue.trySetValue(A').  This succeeds because sharedValue thinks it's
up to date; it has no idea that the user is setting a value based on old data.
Well, I’d call that a user error. SharedValue is not an atomic value (you found that recipe
already). It’s meant to get updated in the background as a kind of cache. It can be thought
of as a cached node that has optimistic locking semantics for updating.


View raw message