title: Spring Task Scheduler vs. Java's ScheduledExecutorService
body: <p>I have a requirement to create a task scheduler with 10 threads that we need to fire at the same time and each thread will come back with a status of complete or failed. Based on the result of the thread, we will make a db call and fetch the data from db. The application is already configured with Spring Framework. I understand that spring provides task scheduler, but not sure how to use it, spring newbie needs help. How about java's ScheduledExecutorService, can we use that? What advantage we will get one over the other? Is there a better alternative to Spring task scheduler and Java's ScheduledExecutorService?</p>