Hi!
I'm new in terracotta and want to know more about an ussue that was not fully clear to me in the technical introduction.
1-ly: when we put object in cache (=some map in class) when does other nodes will see the changes? When they read this property from cache or in some other way?
2-ly: how does terracotta guaratees coherent changes among nodes?
Joined: 08/29/2007 09:05:48
Messages: 722
Location: St. Louis, MO
Offline
Terracotta will guarantee that other nodes see the change by the next time they ask for it. On the first change, a message is broadcast to other nodes that have the object and the second node will wait if necessary to apply the changes if you subsequently ask for it.
Changes to clustered state must be made under clustered locks, so we emulate similar guarantees to the Java Memory Model in this regard - when one thread locks to read, it's guaranteed to see changes written under a previous lock hold.
Alex Miller (Terracotta Engineer) - Want to post to the forums? Sign up here