@chamikakasun

Muditha Sumanathunga even though this is irrelevant to the article, I would like to give you some…

Muditha Sumanathunga even though this is irrelevant to the article, I would like to give you some points related to what you are asking here. According to your requirements, there are 4 operations in your API, such as;1. Indexing2. compaction3. sleep4. shutdownIn order to give a proper answer to your question, I would like to think this as a design problem. In Computer Science there are a few key design principles that you may want to...