How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

is org.slf4j.MDC efficient? [closed]

calendar_today July 5, 2026 person haoz domain spring-boot

Is org.slf4j.MDC efficient to store traceId to track process flow? Should I use it in Spring Boot HandlerInterceptor implementationto safely handle hundreds of simultaneous client requests from preHandle to afterCompletion on the production instance? Shoud I use MDC.clear(); in afterCompletion method or MDC.remove(TRACE_ID_NAME);

open_in_new Read original post