Skip to content
Tagged articles

Context Propagation

8 articles · Page 1 of 1
Architecture Pony
Architecture Pony
Nov 8, 2026 · Backend Development

Spring Cloud Gray Release: Beyond Gateway Routing to Full-Chain Context Propagation

This article analyzes three real-world gray release failures in Spring Cloud, revealing that successful gray release requires full-chain context propagation, traffic-proportion accuracy, and bidirectional data compatibility—not just gateway routing. It covers implementation details, LoadBalancer filter chains, fallback strategies, database migration patterns, and troubleshooting techniques.

Context PropagationDatabase MigrationGray Release
0 likes · 53 min read
Spring Cloud Gray Release: Beyond Gateway Routing to Full-Chain Context Propagation
Data Bricklaying Diary
Data Bricklaying Diary
Oct 14, 2026 · Backend Development

One Task, Multiple Traces: Connecting Agent Sessions, Tools & Async Execution

This article explains how to correlate multiple distributed traces for a single long-running agent task by distinguishing task, session, execution, action, attempt, and trace identifiers, propagating context across queues and pauses, instrumenting at the right layers, and handling missing trace segments without losing business continuity.

Agent ObservabilityContext PropagationDistributed Tracing
0 likes · 15 min read
One Task, Multiple Traces: Connecting Agent Sessions, Tools & Async Execution
Xiaolin Talks Programming
Xiaolin Talks Programming
Jun 16, 2026 · Backend Development

Spring Boot @Async in Production: From Default Pitfalls to Thread Pool Governance

This article details Spring Boot @Async production pitfalls including unbounded thread creation, context loss, swallowed exceptions, and OOM risks, then provides concrete solutions: explicit ThreadPoolTaskExecutor configuration with bounded queues, TaskDecorator for MDC/TraceId/SecurityContext propagation, global exception handling, CompletableFuture orchestration without blocking, and monitoring with dynamic tuning to prevent thread leaks and OOM.

CompletableFutureContext PropagationJava Concurrency
0 likes · 19 min read
Spring Boot @Async in Production: From Default Pitfalls to Thread Pool Governance
Code Ape Tech Column
Code Ape Tech Column
May 25, 2026 · Backend Development

Why Does TraceId Get Mixed Up Under High Concurrency Even Though the Parent Thread Passes It to Child Threads?

The article explains why InheritableThreadLocal fails to propagate TraceId correctly in high‑concurrency thread‑pool scenarios, demonstrates the mixing problem with concrete request examples, and presents both manual propagation and Alibaba's TransmittableThreadLocal as reliable solutions.

Context PropagationInheritableThreadLocalJava Concurrency
0 likes · 7 min read
Why Does TraceId Get Mixed Up Under High Concurrency Even Though the Parent Thread Passes It to Child Threads?
JavaGuide
JavaGuide
Feb 11, 2026 · Backend Development

Do ThreadLocal Values Fail in Asynchronous Scenarios? An Interviewer's Trick Question Explained

This article explains why ThreadLocal values are not automatically transferred in asynchronous or thread‑pool contexts, compares JDK's InheritableThreadLocal with Alibaba's TransmittableThreadLocal (TTL), and shows how TTL captures, replays, and restores context safely with code examples and diagrams.

Context PropagationInheritableThreadLocalJava Concurrency
0 likes · 13 min read
Do ThreadLocal Values Fail in Asynchronous Scenarios? An Interviewer's Trick Question Explained
Huolala Tech
Huolala Tech
Aug 13, 2025 · Backend Development

Why Do Inherited ThreadLocals Cause Task Failures in XXL‑Job?

An in‑depth analysis reveals that stale parameters stored in InheritableThreadLocal objects during thread‑pool reuse cause XXL‑Job tasks to process incorrect data, and provides debugging steps and best‑practice recommendations to prevent context pollution.

Context PropagationDebuggingInheritableThreadLocal
0 likes · 10 min read
Why Do Inherited ThreadLocals Cause Task Failures in XXL‑Job?
Taobao Frontend Technology
Taobao Frontend Technology
May 19, 2020 · Backend Development

Implicitly Passing Context in Node.js with AsyncHooks

This article explains how Node.js’s AsyncHooks API can be used to implicitly propagate request context across asynchronous calls, illustrates the mechanism with login flow diagrams, compares explicit context handling in frameworks like Express and Egg, and discusses performance and adoption considerations.

AsyncHooksBackendContext Propagation
0 likes · 8 min read
Implicitly Passing Context in Node.js with AsyncHooks
Bitu Technology
Bitu Technology
Dec 18, 2018 · Backend Development

Managing Request Context in Node.js with async_hooks without Monkey Patching

This article explains how to propagate request‑level context in a Node.js HTTP service by building a call‑tree with async_hooks, avoiding monkey‑patching, handling lifecycle quirks, preventing memory leaks, and using reference‑counted cleanup to ensure reliable context queries.

BackendContext PropagationMemory Leak
0 likes · 15 min read
Managing Request Context in Node.js with async_hooks without Monkey Patching