-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement Request: Customizable groupExecutorService in Resilience4J CircuitBreakerFactory #180
Comments
Would you be interested in submitting a PR for this? |
@ryanjbaxter Of course, Please read my code to ensure it can run in any scenario. #181 |
Customizable groupExecutorService #180
@ryanjbaxter |
@yong-kurly it was see 5fa638e |
Ah! Sorry. I'm looking forward 3.1.1 release! |
Just curious: May I know when the new version(3.1.x) will be released? I am waiting for this feature. 🙏 |
This week. |
Is your feature request related to a problem? Please describe.
When incorporating openfeign and circuitbreaker in a spring-boot project, our code submits tasks to the executorService for execution. The executorService is created using Executors.newCachedThreadPool(). We intend to customize this thread pool to propagate ThreadLocal information from the main thread to the child threads.
While the Resilience4JCircuitBreakerFactory#configureExecutorService method allows reconfiguration of the thread pool, the groupExecutorService is hard-coded in the code and lacks extensibility, making it challenging to fully implement the desired functionality.
Describe the solution you'd like
We propose making the groupExecutorService customizable or providing a mechanism for extension so that developers can seamlessly implement customizations to pass ThreadLocal information to the child threads.
Additional Information:
Code Reference: Resilience4JCircuitBreakerFactory#configureExecutorService
Current Limitation: Inability to customize groupExecutorService for complete functionality implementation.
Expected Outcome:
We request enhancements to the Resilience4J CircuitBreakerFactory to allow developers to easily customize the groupExecutorService or provide an extension mechanism to fulfill the requirement of passing ThreadLocal information to child threads.
Sample code:
The text was updated successfully, but these errors were encountered: