I have several different applications, mostly ASP.NET web apps, that generate pending email database records.
Every minute, I fire an executable with a windows task to clear out the pending email buffer.
My goal is to shorten this one-minute interval to one-second.
I intend to use a windows service.
Is there a better method than simply polling the pending-email database table every second?
While I’m sure MSSQL can handle a transaction every second for eternity, it does not feel like an ideal solution for an application that may only send 80 emails in a day.
Your implementation is 100% perfect. You can use windows service or you can use the windows scheduler to schedule the high frequency job.
If you are implementing the cache here. Unnecessary increasing the implementation which is not required. I would suggest you keep the implementation as is which means polling job with 1 second frequency.