What are the best libraries for performant scheduled tasks in Java?

0
9
Asked By BubblySoda42 On

I'm currently using a Java framework that features a built-in task scheduler based on ScheduledExecutorService. Given that we'll be handling a significant volume of task scheduling, I'm curious to know if there are any libraries that offer better performance or scalability. Just to clarify, these tasks fire once and need to be executed with timing in milliseconds (preferably as Unix timestamps) in the same order they're scheduled. They're not CPU-intensive and have a producer-like behavior.

1 Answer

Answered By TaskMaster99 On

Before diving into alternatives, it's essential to clarify the nature of these tasks. Are they compute-heavy, I/O-bound, or just simple operations? Understanding how far in advance you need to schedule them and whether they need to run on their own can significantly influence the choice. If you're mainly looking for that middle ground, starting with ScheduledExecutorService makes sense. Monitor its performance and only consider other options if you find it lacking.

QuickQuestioner123 -

Thanks for the input! I updated my post to specify that they're fire-once tasks. I'll keep your suggestions in mind.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.