Skip to content

Efficient way to move an object between two distributed or near caches without re-serialization? #78

Answered by aseovic
javafanboy asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, with some caveats ;-)

  1. You would need to use low-level backing map APIs within an entry processor to get the associated entry from your history cache. It will be created if it doesn't exist, and enlisted into the current partition-level transaction.

  2. In order for the data affinity/key association to work, the history cache would have to be on the same service that your main cache is on, so it cannot be configured differently (at least with regard to service-level parameters, such as threads, partition counts, etc. It can have different cache-level parameters, such as expiry, high units, etc.)

  3. You would need a composite key containing both the original key and the version, with ke…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@javafanboy
Comment options

Answer selected by javafanboy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants