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

Ask Your Question

WriteMultiple with space based remoting?

With a clustered proxy, we can use writeMultiple to save multiple objects with one call. This works nice because all the data in the array are stored in different buckets depending on which partition they are going to.

These features however aren't available while using the space based remoting architecture. Instead, we can annotate our remoting interface method with @ExecutorRemotingMethod and set broadcast to true. This feature however lacks the "bucket" feature. All the entries will be sent to all the partition. Later while in a partition and invoking writeMultiple, we get an exception saying one of the elements has been routed incorrectly.

Is there any way to get around this?

asked 2018-03-13 07:35:23 -0600

GS_User gravatar image

updated 2018-03-13 07:51:23 -0600

edit retag flag offensive close merge delete


@ExecutorRemotingMethod(broadcast = true) void saveEntries(@Routing("[*].getRoutingKey") SomeEntity[] batch)

Could be a nice feature.

GS_User gravatar image GS_User  ( 2018-03-14 05:09:37 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

Hi, Have a look at: https://docs.gigaspaces.com/xap/12.2/... Remote Routing Handler section, and Routing Annotation

Regards, Ester.

answered 2018-03-14 06:50:25 -0600

Ester gravatar image
edit flag offensive delete link more


Could you provide a simple example demonstrating usage? Is RemoteRoutingHandler.computeRouting invoked for each element in the array? I don't see how to use these along with broadcast = true and a list of objects.

GS_User gravatar image GS_User  ( 2018-03-19 13:38:13 -0600 )edit

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: 2018-03-13 07:35:23 -0600

Seen: 267 times

Last updated: Mar 14 '18