Tagged articles
Thread Isolation
14 articles · Page 1 of 1
This article explains how misplacing retry_count in LangGraph's user-level Store instead of thread-level State causes cross-task contamination, detailing the distinct lifecycles of State, Runtime Context, and Store with code examples and engineering checks.
Agent ArchitectureLangChainLangGraph
0 likes · 13 min read

ThreadLocal provides per‑thread variable storage to achieve thread isolation, improving concurrency performance, and is essential for safe data handling in Java, but improper use can cause memory leaks, data contamination, and other issues; this article explains its internal mechanism, common scenarios, pitfalls, and best‑practice guidelines with code examples.
Best PracticesConcurrencyJava
0 likes · 19 min read

This article explains Java's ThreadLocal class, covering its purpose for thread‑local storage, core methods such as get, set, and remove, ways to set initial values via subclassing or withInitial, usage of InheritableThreadLocal for parent‑child thread data propagation, and the underlying implementation details.
InheritableThreadLocalJavaThread Isolation
0 likes · 12 min read

This article examines the importance of resource isolation in distributed systems, covering thread, process, cluster, data‑read/write, static, and crawler isolation, and illustrates practical implementations with Netty, Dubbo, Tomcat, and Hystrix, including code snippets and configuration tips.
DubboNettyThread Isolation
0 likes · 13 min read

This article explains how isolating resources such as threads, processes, clusters, and data centers improves efficiency, prevents cascading failures, and enhances fault tolerance in distributed backend systems, providing practical examples with Netty, Dubbo, Tomcat, and Hystrix.
Thread Isolationcluster isolationmicroservices
0 likes · 13 min read

The article explains the importance of isolating resources such as CPU, network, and disk in distributed architectures, describes thread, process, cluster, data‑read/write, static, and crawler isolation methods, and provides concrete code examples and best‑practice recommendations for backend developers.
Thread Isolationdistributed systemsprocess isolation
0 likes · 13 min read

The article explains why resource isolation is essential for distributed architectures, describes common isolation methods such as thread, process, cluster, data, static and crawler isolation, and provides concrete examples and code snippets for Netty, Dubbo, Tomcat, and Hystrix to illustrate practical implementations.
DubboNettyThread Isolation
0 likes · 12 min read

This article explores the importance of resource isolation in distributed systems, detailing thread, process, cluster, data‑center, read/write, static, and crawler isolation techniques, with practical code examples from Netty, Dubbo, and Tomcat, and discusses trade‑offs such as thread‑pool versus semaphore isolation.
Thread Isolationbackend architecturedistributed systems
0 likes · 13 min read

This article explains why resource isolation is essential in distributed architectures and details various isolation techniques—including thread, process, cluster, data‑read/write, static, and crawler isolation—illustrated with Netty, Dubbo, and Tomcat examples, code snippets, and practical recommendations.
BackendThread Isolationdistributed systems
0 likes · 14 min read

This article explains the inner workings of Java's ThreadLocal, covering its storage mechanism, ThreadLocalMap structure, get/set/remove operations, thread isolation, potential memory leak pitfalls, and provides a practical demo program to illustrate proper usage.
JavaMemory LeakThread Isolation
0 likes · 11 min read

The article shares practical experience and best‑practice recommendations for using Netflix’s Hystrix fault‑tolerance framework, covering isolation strategy choice, thread‑pool sizing and timeouts, annotation ordering, exception handling, lightweight fallback design, key identifiers, configuration priority, and custom dynamic configuration integration via Archaius.
Circuit BreakerDynamic ConfigurationHystrix
0 likes · 21 min read

This article explores a Java dynamic scripting solution for platform-level systems, detailing its core implementation, handling of class name conflicts, lifecycle management, security sandboxing, thread isolation, caching strategies, and practical code examples for compilation and execution.
ClassLoaderDynamic ScriptingJava
0 likes · 16 min read

ThreadLocal provides thread‑confined variables in Java, eliminating race conditions without synchronization; this article explains its concept, demonstrates usage with code examples, analyzes the underlying ThreadLocalMap implementation, discusses hash calculations, potential memory‑leak pitfalls, and outlines common application scenarios.
ConcurrencyJavaMemory Leak
0 likes · 15 min read

This article explains how Netflix's Hystrix framework provides thread‑pool and semaphore isolation, circuit breaking, and fallback mechanisms to prevent cascading failures in distributed systems, offering practical code examples and deployment strategies for building resilient backend services.
Circuit BreakerHystrixThread Isolation
0 likes · 27 min read
