[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
cache replication speed  XML
Forum Index -> Terracotta Platform
Author Message
plastical

neo

Joined: 07/01/2009 04:57:10
Messages: 1
Offline

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?

thanks!
amiller

ophanim

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
[WWW]
 
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team