nacos Implement HashedWheelTimer for much more accurate timer task enhancement

oogrdqng  于 2021-12-26  发布在  Java
关注(0)|答案(3)|浏览(314)

Feature enhancement Implement HashedWheelTimer for much more accurate timer task.

Issue Description

Type: feature request

Describe what happened (or what feature you want)

From the source codes in the nacos project, the timer task maby implemented by much more powerful HashedWheelTimer implement for more accurate timer.The reasons are as follow:

(1)If many timer task is managed by its own scheduler for its lifecycle, then it will waste resource of cpu and memory.

(2)Hashed Wheel Timer is a kind of scheduling timer thread resouce module, and it can schedule many task to one scheduler.The software can manager, trigger, and run the timer task, and can manage their lifecycle.

Describe what you expected to happen

Depend on the HashedWheelTimer implement ,we can define much more accurate timer task, and can define more accurate timer paramter, such as accurate to seconds.

How to reproduce it (as minimally and precisely as possible)

Tell us your environment

All the enviroment.

Anything else we need to know?

agyaoht7

agyaoht71#

I think I can implmement this enhancement feature.So this issue can assign to me! @chuntaojun@yanlinly

nvbavucw

nvbavucw3#

So, because of the HashWheelTimer adavantages' reason, we can optimize the original nacos timer task architecture, performance and powerful.

相关问题