Alexey Ragozin: Coherence 101 - EntryProcessor traffic amplification
Coherence 101 - EntryProcessor traffic amplification Oracle Coherence data grid has a powerful tool for inplace data manipulation - EntryProcessor . Using entry processor you can get reasonable atomicity guarantees without locks or transactions (and without drastic performance fees associated). One good example of entry processor would be built-in ConditionalPut processor, which will verify certain condition before overriding value. This, in turn, could be used for implementing optimistic locking and other patterns. ConditionalPut could accept only one value, but ConditionalPutAll processor is also available. ConditionalPutAll accepts a map of key/values. Using it, we can update multiple cache entries with single call to NamedCache API. But there is one caveat. We have placed values for all keys in single map instance inside of entry processor object. On the other side, in distributed cache keys are distributed across different processes.Read full article from Alexey Ragozin: Coherence 101 - EntryProcessor traffic amplification
No comments:
Post a Comment