Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call a method at a certain time

I am developing an application that has a small feature of sending some SMS messages and Emails using some external web services.

These messages can be scheduled to be sent right now or in the future on a certain date at a certain time. They can also be scheduled to be sent every day/week/month.

How can I design my system to "know" when to call the sending method (without polling)?

like image 298
Tomer Avatar asked Jul 10 '26 18:07

Tomer


2 Answers

You can use Quartz.net for task schedule. http://quartznet.sourceforge.net/

You can use this with windows service.

like image 151
Anand Avatar answered Jul 12 '26 08:07

Anand


Or you have to use a kind of "External Scheduler" - which means - to use external polling, or to implement scheduler by yourself. I think that there's no any decisions without any polling at all...

like image 21
Oleg Dok Avatar answered Jul 12 '26 09:07

Oleg Dok



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!