Тёмный

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

SpringDeveloper
Подписаться 200 тыс.
Просмотров 6 тыс.
50% 1

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.

Развлечения

Опубликовано:

 

15 май 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@Muescha
@Muescha Год назад
24:00 if you replay the code: you need to add: implementation 'io.micrometer:context-propagation:1.0.2' to the gradle file to get the ContextRegistry
@Muescha
@Muescha Год назад
34:00 if you replay the code: and the WebFilter is not invoked -> maybe you forget to reload the gradle setup when you comment out the spring boot starter web in the gradle file
@sfshtirlitz
@sfshtirlitz 8 месяцев назад
What about calling another microservice using webClient and not just reading the file? It would be great to see the same traceId on the other side of webClient call? And that's what would make it "distributed"...
@shubhamkesri6859
@shubhamkesri6859 5 месяцев назад
I am also looking to handle a similar kind of issue, did you find any resources for it ?
@rohanmiskin6955
@rohanmiskin6955 3 месяца назад
can you please share the github link for the above code
@ksoot
@ksoot Год назад
Thanks for the Demo. It looks good when you are making just one call at a time, but things may fall apart when u make multiple parallel call to API, the their trace id and span id gets mixed up. Need to confirm that
@jeet987
@jeet987 10 месяцев назад
Have you tried playing with this ? Even i suspect there could be mix up or MDC ctx getting lost , which i have seen with my webflux apps
@Muescha
@Muescha Год назад
could you add the link to the example code to the description?
@Muescha
@Muescha Год назад
i can not post a link into the comments, because then all my comments will be deleted.
@skkchoudhary
@skkchoudhary 8 месяцев назад
Can u plz share your example code or git location
@Piontek.k
@Piontek.k 6 месяцев назад
Wtf are those scratch noises?
@hareepjoshi
@hareepjoshi 8 месяцев назад
this was a complete waste of time.
Далее
Spring Tips: The Reactor Context
45:36
Просмотров 13 тыс.
Clowns abuse children#Short #Officer Rabbit #angel
00:51
Despicable Me Fart Blaster
00:51
Просмотров 6 млн
Correlated Logs in Spring Apps with Reactive Parts
22:55
Avoiding Reactor Meltdown
58:22
Просмотров 22 тыс.
Spring Tips: Spring Modulith
37:39
Просмотров 16 тыс.
Guide to "Reactive" for Spring MVC Developers
1:04:27
Просмотров 61 тыс.
From Imperative To Reactive Web Apps
1:12:32
Просмотров 14 тыс.
How to Avoid Common Mistakes When Using Reactor Netty
53:57
Spring Tips: Debugging Reactor Applications
53:28
Просмотров 20 тыс.
Reactive Relational Database Connectivity with Spring
58:10
Flight of the Flux: A Look at Reactor Execution Model
41:09
Пов: папа в семейном чате
0:13
Просмотров 1,1 млн