ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject RE: Is there a way to get original object reference from IgniteCache?
Date Tue, 22 Mar 2016 19:34:38 GMT

Ignite is a distributed system and the approach you're describing doesn't
make much sense for it. If the value is fetched from a remote node, you will
always get a copy. If you get the value locally, you can force Ignite to
return the stored instance by setting
CacheConfiguration.setCopyOnRead(false) property, but this should be used
only in read-only scenario. It's not safe to modify this instance, because
the serialized form will not be updated until you call cache.put(), so the
one that reads it will potentially get the old value. Additionally, it can
be concurrently serialized which can cause data corruption.

I understand that this is a big change, but looks like you will have to
revisit your architecture and make sure that you use Ignite API properly.

Makes sense?


View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Is-there-a-way-to-get-original-object-reference-from-IgniteCache-tp3611p3623.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message