Cognitive Technology Team
Cognitive Technology Team
Jul 24, 2022 · Fundamentals

Introduction to ThreadLocal in Java

ThreadLocal provides thread confinement in Java, allowing each thread to hold its own independent variable, which is useful for scenarios such as database connection isolation, transaction storage, lock-free concurrency, implicit parameter passing across functions, and highlights common pitfalls like information loss in thread pools and OOM risks.

ConcurrencyImplicit ParametersJava
0 likes · 5 min read
Introduction to ThreadLocal in Java
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Feb 27, 2021 · Backend Development

Why Dubbo 2.7.x Can’t Return Implicit Parameters from Provider to Consumer

An in‑depth analysis reveals that Dubbo 2.7.x fails to propagate provider‑side implicit parameters back to the consumer because the new AsyncRpcResult/AppResponse architecture discards attachments, a change introduced for better async support, effectively making this behavior a bug in the 2.7 series.

AsyncRpcResultBackend DevelopmentDubbo
0 likes · 7 min read
Why Dubbo 2.7.x Can’t Return Implicit Parameters from Provider to Consumer