Why architecture matters here
Context fails on ThreadLocal leaks + missing propagation. Architecture matters because propagation + serialization + governance compose.
Advertisement
The architecture: every piece explained
The top strip is core. Context object. Propagation. Reactive integration. Virtual threads.
The middle row is durability + boundaries. Serialization. Cross-service. PII isolation. Test doubles.
The lower rows are ops. Governance. Metrics. Ops — evolution + versioning + audit.
Advertisement
End-to-end flow
End-to-end: request arrives; context built with user + tenant + trace. ScopedValue makes it available to entire call graph including virtual threads. Cross-service call packages baggage. PII fields typed to prevent logging. Serialize for durable state.