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 <18624049...@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. > > >