<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 22 Feb 2012, at 09:46, Galder Zamarreņo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">I thought I had made myself clear enough with the wiki and explanation on the email. Let me try again:<br><br>Imagine a near cache scenario:<br><br>1. Client A interacts with a near cache (i.e. embedded Infinispan with a remote cache store) and stores V1 in key=k<br>2. Client B interacts with near cache and retrieves key=k. The req goes to server and returns V1<br>3. Client B goes and updates key=k to V2<br>4. Client A receives a notification for key=k that it has been updated and it decides to delete it from the near cache.<br>5. Client B receives a notification for key=k that it has been updated and it decides to delete it from the near cache.<span class="Apple-converted-space">&nbsp;</span><br><br>Step 5. is suboptiomal because the update originiates at Client B.<br><br>The idea of the "origin" is that the server could potentially be able to tell client B that the notification is the result of an operation that started 'locally' and so client B could read that and decide to not delete it from the near cache.<br><br>Client A when it receieves the notification it realises that the notification is not originated locally and can decide to delete the key from the near cache.</span></blockquote><br></div><div>Client A and Client B are two threads in the same VM as the embedded cache with a remote cache store?</div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><div>--</div><div>Manik Surtani</div><div><a href="mailto:manik@jboss.org">manik@jboss.org</a></div><div><a href="http://twitter.com/maniksurtani">twitter.com/maniksurtani</a></div><div><br></div><div>Lead, Infinispan</div><div><a href="http://www.infinispan.org">http://www.infinispan.org</a></div><div><br></div></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>