Hi all,

So, one thing that has always been bothering me a bit with respect to the IoTDB 
code-base, was the usage of the singleton pattern.
Even if it simplifies composition of a project, it comes with quite some severe 
disadvantages.

In my last PR I tried refactoring the usage of singletons to make components 
more unit-testable and I was quite happy with the results.

I wrote up my ideas as well as some facts from fellow Apache projects.

https://timechor.feishu.cn/docx/QLgZdJWgUoKBLSx1t3EcBJdRnud

Please have a look and comment here. I would really like to start the progress 
of refactoring IoTDB (At least with this approach it doesn’t have to be an 
all-or-nothing big-bang type of refactoring, but instead can happen over time).

Chris

Reply via email to