Re: Help with affinityRun on collocated ignite queue

2021-05-05 Thread Ilya Kasnacheev
Hello!

I don't understand your question. A collocated queue is located on a single
node, but you still need a method to run code on that specific node, don't
you?

The benefit is presumably shorter round-trip times.

Regards,
-- 
Ilya Kasnacheev


вт, 4 мая 2021 г. в 18:50, ps594 :

> I am trying to understand the use case of  affinityRun / affinityCall
> <
> https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/IgniteQueue.html#affinityCall-org.apache.ignite.lang.IgniteCallable->
>
> methods of IgniteQueue interface. Even after delving into documentation I
> could not understand a good use case why would we want to run jobs on the
> collocated queue using affinityRun method of queue interface, since
> collocated queues are on the same node why can't I simply write my own
> lambda function. Specifically what benefits does the affinityRun offers for
> ignite queue (given affinityRun method is not supported for non-collocated
> queues)?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


Help with affinityRun on collocated ignite queue

2021-05-04 Thread ps594
I am trying to understand the use case of  affinityRun / affinityCall

  
methods of IgniteQueue interface. Even after delving into documentation I
could not understand a good use case why would we want to run jobs on the
collocated queue using affinityRun method of queue interface, since
collocated queues are on the same node why can't I simply write my own
lambda function. Specifically what benefits does the affinityRun offers for
ignite queue (given affinityRun method is not supported for non-collocated
queues)?



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/