MongoDB (and also other databases that can be used) needs to be handled asynchronously to avoid interrupting the main flow of a service. The ThreadPool implementation provides a mechanism for managing a pool of work threads that can execute arbitrary tasks simultaneously.
Describe the scenario use case.
Every time a service would have to manage its database, it should use a ThreadPool instance to manage workers to handle database access asynchronously.
Describe the feature request.
MongoDB (and also other databases that can be used) needs to be handled asynchronously to avoid interrupting the main flow of a service. The ThreadPool implementation provides a mechanism for managing a pool of work threads that can execute arbitrary tasks simultaneously.
Describe the scenario use case.
Every time a service would have to manage its database, it should use a ThreadPool instance to manage workers to handle database access asynchronously.