When you call FunctionService.onServer, you can pass it a ClientCache or a
Pool. It will find a running server and execute on that. So you never pass
it an individual server name.

-Dan

On Mon, Sep 16, 2019 at 10:22 AM Michael Stolz <mst...@pivotal.io> wrote:

> If you execute onRegion withFilter and a single filter key it will only be
> executed on the server who would host that key.
>
> --
> Mike Stolz
> Principal Engineer, Pivotal Cloud Cache
> Mobile: +1-631-835-4771
>
>
>
> On Mon, Sep 16, 2019 at 12:49 PM aashish choudhary <
> aashish.choudha...@gmail.com> wrote:
>
>> We use onRegion call to make http request to external service inside
>> function. Because of that it gets executed on multiple servers. So
>> basically we will have to make nested call to another function using
>> onServer to avoid multiple calls? But what if that node is down?
>>
>> With best regards,
>> Ashish
>>
>> On Mon, Sep 16, 2019, 9:59 PM Dan Smith <dsm...@pivotal.io> wrote:
>>
>>> Hi Ashish,
>>>
>>> How are you executing your function? If you execute a function from the
>>> client with Function.onServer, it should only be executed on a single
>>> running server.
>>>
>>> -Dan
>>>
>>

Reply via email to