title: How to perform server side DB polling in ASP.Net?
body: <p>I have an application running on angular.js, WebAPI, and mongodb. My goal is to replace client side polling, with signalr. Since mongodb doesn't fire events on changes, I still need to poll on the server side, and if I detect a change, broadcast it using a signalr hub.  </p>
  
  <p><strong>Is there a solid way to do that, without breaking the recurring task by IIS?</strong></p>
  
  <p>What have I tried:  </p>
  
  <ol>
  <li>Hangfire: Seems like the recommended solution, but currently supports only SQL Server and redis (not an option).</li>
  <li>HostingEnvironment.QueueBackgroundWorkItem: Might work, but I fear that it is not widely used, and I might miss some pitfalls.</li>
  <li>There's a way to kind of get events from mongo using "tailable cursor on capped collection" - not an option</li>
  </ol>