ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Valentin Kulichenko <valentin.kuliche...@gmail.com>
Subject Re: About thread problem of service execution in Ignite Service Grid
Date Mon, 13 Mar 2017 15:52:38 GMT
Why would you use a thread local in a service? What design you think is
reasonable?

-Val

On Mon, Mar 13, 2017 at 2:03 PM, 李玉珏@163 <18624049226@163.com> wrote:

> Hi,
>
> When in service grid service execution, if the local node deployment
> services, will directly call the local deployment service, otherwise it
> will find the service in the grid.
>
> The local service, and the caller will use the same thread, in this case,
> the two threads‘s state is different, that is to say, the same call, have
> different behavior in different scene, I think the design is not reasonable.
>
> For example, a thread local variable is defined, and according to the
> above description, the value of the same variable may be different for
> different scenarios.
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message