Friday, January 18, 2019

Custom Thread Pool for Schedule job in SpringBoot

By default, default thread pool is used for schedule job. Number of thread in this pool is small. If we have many scheduled tasks, they could be delayed. We need to declare a dedicated thread pool for scheduled tasks. Below is an example thread pool (pool size 8) in Spring Boot.

No comments :

Post a Comment