DynamicTp – A Java Dynamic ThreadPool Framework for Runtime Configuration, Monitoring, and Alerting
DynamicTp is a Java‑based dynamic thread‑pool framework that extends ThreadPoolExecutor to enable runtime parameter tuning, real‑time monitoring, and multi‑channel alerting, addressing common pain points of thread‑pool configuration in microservice environments.
DynamicTp is a Java‑based dynamic thread‑pool framework that extends ThreadPoolExecutor to allow runtime parameter adjustment, real‑time monitoring, and alerting.
It solves three common pain points: difficulty determining optimal core parameters, the need to redeploy services after manual changes, and the lack of visibility into thread‑pool health.
Background : Most microservice projects use distributed configuration centers (Nacos, Apollo, Zookeeper, Consul, Etcd) that can push dynamic changes, making them ideal for dynamic thread‑pool tuning.
Key features include zero‑intrusion configuration via a configuration center, a lightweight SpringBoot starter, high extensibility through SPI, support for multiple alert channels (DingTalk, WeChat, Feishu, email), and integration with monitoring tools such as MicroMeter, Grafana, JsonLog, and custom Endpoint.
Architecture is divided into modules: adapter (third‑party component pools), common , core (dynamic adjustment, monitoring, alerts), example , extension (Redis flow‑control, mail, SkyWalking), logging , and starter .
The framework provides five functional modules: configuration change listening, internal thread‑pool management, third‑party component pool management, monitoring, and notification/alerting.
Supported configuration centers: Nacos , Apollo , Zookeeper , Consul , Etcd . Supported third‑party pools include Tomcat, Jetty, Undertow, Dubbo, RocketMQ, Hystrix, gRPC, etc.
Project repositories: https://gitee.com/dromara/dynamic-tp and https://github.com/dromara/dynamic-tp .
Architecture Digest
Focusing on Java backend development, covering application architecture from top-tier internet companies (high availability, high performance, high stability), big data, machine learning, Java architecture, and other popular fields.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.