Hands-On Enterprise Java Microservices with Eclipse MicroProfile
by Cesar Saavedra, Heiko W. Rupp, Jeff Mesnil, Pavol Loffay, Antoine Sabot-Durand, Scott Stark
Context Propagation
The goal of the MicroProfile Context Propagation specification is to propagate context across units of work that are thread-agnostic. In a reactive model, the execution of logic is split into units of work that are chained together to assemble a reactive pipeline. Each unit of work executes within a context, which is often unpredictable and depends on the particular reactive engine being used. Some units might run with the context of a thread awaiting completion, or the context of a previous unit that completed and triggered the dependent unit, or with no context at all. The MicroProfile Context Propagation specification makes it possible for thread context propagation to easily be done in a type-safe manner, keeping boilerplate ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access