Using hangfire to send emails on a daily basis in a distributed environment
<p>I'm new with Hangfire and I want to know if this can be achievable with the tool:</p>

<p>I have to send emails on a daily basis to a list of people that I have in my SQL DB. The thing is my that my web app (although it only uses one DB), is deployed through Amazon with load balancers that might add servers (if needed).</p>

<p>I want the hangfire task to execute only once per day.</p>

<p>My first idea was to use Hangfire to register the recurrent task on my Application_Start method, but this will not work, right? 
How can I register my recurrent task in a way that, even when I have multiple servers running, the task gets executed only once? I've read in other posts that I could do some tricks with the DB: having a "table" that registers if the task is already executed or not, but I think that kind of solution will not scale if I must have, let's say, 10 tasks to complete per day.</p>

<p>Another way I'm thinking is to have a separate "app" for the hangfire execution, that only deploys in one server. Since my web app is using a dll to access the DB, I could do the same for this new "app" and to grant access to the db with the same dll, but I'll have to update my app every time I change the dll.</p>

<p>Any thoughts will be appreciated. Thanks!</p>