Reactive and Imperative Context Propagation in Spring Applications by Dariusz Jędrzejczyk

May 10, 2023

Applications have relied on contextual data that is outside of core business logic for a long time to provide vital insight into what the application is doing. Traditionally, Java applications built on the ThreadLocal construct to aggregate meta and observability information. With the introduction of asynchrony to the processing, it became easy to lose the precious, contextual data. After providing the background behind current design and implementation of context support in Project Reactor, we’ll move to practical aspects that Spring application developers face. We’ll introduce a new Context Propagation library under Micrometer, which provides new and essential capabilities for bridging reactive and imperative programming styles. Reactor 3.5 has dedicated support for interacting with these concepts. Next, we’ll cover how Reactor uses Micrometer 1.10’s Observation feature to provide metrics, tracing, and logging and how library implementers can take advantage of these patterns.

Previous
Deep Dive with Java Records with Jason Young
Deep Dive with Java Records with Jason Young

Java Records (a language feature finalized in Java 16) give us a language level technique to work with ""ca...

Next Video
How to Measure Developer Productivity with Metrics and More
How to Measure Developer Productivity with Metrics and More

In this webinar, leaders from VMware, Garmin, Great American Insurance Group, and Kin + Carta will have a c...