DEV Community

Discussion on: Building Better REST APIs

Collapse
 
ovcrymysyn profile image
Aλexander Zafirov • Edited

Thanks for the nice article, Mateus! I will definitely look more into headers as a way to communicate information to the consumers of my APIs.
One thing that I strongly want to point out is that there is no such thing as reusing a thread. A thread is started with a certain task and cannot be reused. Rather other threads can run and utilize the CPU cycles that would otherwise be wasted. An efficient idea of this is a ThreadPool.

Collapse
 
mattcanello profile image
Mateus Canello Ottoni

Perhaps I have expressed in a wrong way, but what I did have in mind while writing about the threads was actually the thread pool system. I apologize for the misunderstanding.