Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

Clustered vs Non-Cluster Proxy

Hello I have next SLA for deploying my application to the GigaSpace:

<os-sla:sla cluster-schema="partitioned-sync2backup"
            number-of-instances="2" number-of-backups="0"
<os-core:space id=“space" url="/./embeddedTest"/>

<os-core:giga-space id=“gigaSpaceClustered" space=“space" clustered="true"/>
<os-core:giga-space id=“gigaSpaceNonClustered" space=“space"/>

<bean id=“testClass” class=“com.TestClass”>
    <constructor-arg ref="dataGigaSpaceNonClustered"/>

I have 2 question: 1. If TestClass uses non-clustered proxy for access to its(embedded space for that Processing Unit) GigaSpace(for example - read data), serialization and deserialization will not? 2. If TestClass will be using clustered proxy for access to its GigaSpace(i.e. embedded space for that Processing Unit) - serialization and deserialization will still be?

asked 2013-12-15 01:36:28 -0500

ssherbakov gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

When using non-clustered proxy serialization will not happen. Non-primitive fields will be accessed by reference. Consider to clone the space object after reading it in case you might face race conditions or non-transactional implementation.When using a clustered proxy serialization will happen when accessing any space instance.Shay-------- Original message --------From: forum@ask.gigaspaces.org

answered 2013-12-15 08:42:56 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-12-15 01:36:28 -0500

Seen: 323 times

Last updated: Dec 15 '13