REST client message metadata that can be intercepted in ClientRequestFilter #46282
-
Hello, These clients can be of different types:
This metadata will be intercepted by a ClientRequestFilter to properly populate an HTTP header with the injected value. Can you suggest the best technical solution to properly implement this use case, considering the mix of REST client types we need to handle? We have already evaluated the following solutions:
Our concern with using ContextLocals is whether asynchronous clients might interfere with others executing in the same context as part of the same request processing. Do you have any precious comment to share in that front? Do you have any other options to suggest to implement this use case? Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
/cc @cescoffier (rest-client), @geoand (rest-client) |
Beta Was this translation helpful? Give feedback.
-
ContextLocal is the way to go - Quarkus uses them extensively in its codebase |
Beta Was this translation helpful? Give feedback.
ContextLocal is the way to go - Quarkus uses them extensively in its codebase