question regarding EntryProcessor

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

question regarding EntryProcessor

voipp
Hi all! When we invoke EntryProcessor with a given key would it be executed
on a separate node, where the key resides? What if there is no key mapping.
--

*Best Regards,*

*Kuznetsov Aleksey*
Reply | Threaded
Open this post in threaded view
|

Re: question regarding EntryProcessor

Valentin Kulichenko
Aleksey,

Entry processor is always executed on the primary node and (sometimes) on
backup nodes. The whole purpose of invoke() operation is to send the entry
processor to server nodes instead of transferring the data across network.

The mapping always exists. Even if there is no actual value in cache,
affinity function will return you correct set of nodes for a particular key.

-Val

On Tue, Mar 14, 2017 at 9:21 AM, ALEKSEY KUZNETSOV <[hidden email]
> wrote:

> Hi all! When we invoke EntryProcessor with a given key would it be executed
> on a separate node, where the key resides? What if there is no key mapping.
> --
>
> *Best Regards,*
>
> *Kuznetsov Aleksey*
>