Message Queue or Scheduler

Posted by Walter White on Stack Overflow See other posts from Stack Overflow or by Walter White
Published on 2010-04-23T14:30:49Z Indexed on 2010/04/23 14:33 UTC
Read the original article Hit count: 479

Hi all,

I am currently using Quartz Scheduler for asynchronous tasks such as sending an email when an exception occurs, sending an email from the web interface, or periodically analyzing traffic.

Should I use a message queue for sending an email? Is it any more efficient or correct to do it that way? The scheduler approach works just fine.

If I use a queue and the email failed to send, is it possible for the queue to retry sending the email at a later time? The queue approach looks simpler than the scheduler for tasks that need to happen immediately, but for scheduler tasks, the scheduler still, unless there is more to the queue than I am aware of.

I have not yet used JMS, so this is what I have read.

Walter

© Stack Overflow or respective owner

Related posts about java

Related posts about quartz-scheduler