A lightweight dynamic thread pool based on the configuration center, with built-in monitoring and alarm functions, integrated common middleware thread pool management, and can be implemented through SPI custom extensions
View the official website documentation and architectural design in detail
Introduce the dependencies of the corresponding configuration center, see the official website documentation for details
Configure the thread pool instance in the configuration center. For the configuration file, see the official website documentation.
Add the @EnableDynamicTp annotation to the startup class
Use @Resource or @Autowired for dependency injection, or obtain it through DtpRegistry.getExecutor("name")
You can use it after the above 4 steps. Doesn’t it feel super simple?
For more detailed usage examples, please refer to example
project and official website documentation.
See the official website documentation for more information, notifications and alarms
The current framework provides four monitoring data collection methods. The monitoring indicator collection type is configured through the collectorTypes attribute. The default is Micrometer.
Logging: Thread pool indicator data will be output to the specified log file in Json format.
Internal_logging: Thread pool indicator data will be output to the project log file in Json format.
Micrometer: adopts a monitoring facade and collects related Micrometer dependencies into the corresponding storage platform (such as Prometheus, InfluxDb...)
Endpoint: Expose the Endpoint endpoint, and you can obtain indicator data in real time through http.
See official website documentation for more information, monitoring
When you see this, please give the project a star . Your support is the driving force for us to move forward!
If you have any questions during use, or if you have any ideas or suggestions for the project, you can join the community to communicate and discuss with 1500+ group friends.
The WeChat group has reached 200 people. You can follow the WeChat official account and add my personal WeChat group (note: dynamic-tp).
For better development of the project, please register here and use registration
JNPF low-code development platform
Thanks to JetBrains for supporting open source projects