title: ASP.NET 4.0- Background worker - best practice
body: <p>I've implemented a few different types of background workers running under ASP.NET but wondered what the recommended / best practice approach might be.</p>
  
  <p>In a data store (in this case a mongo db) I have a queue of actions I need to process.</p>
  
  <p>The queue will grow depending upon certain actions within the ASP.NET MVC app.</p>
  
  <p>I want to start a background thread / worker thread that continuously processes these queued items.</p>
  
  <p>Is it as simple as kicking off a background worker in the app's start event, or should it be done on a timer?</p>
  
  <p>thanks in advance</p>
  
  <p>sam</p>