Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Job Queue within Website?

Job Queue within Website?

Scheduled Pinned Locked Moved ASP.NET
questionwindows-admindata-structurescareer
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nlarson11
    wrote on last edited by
    #1

    Hello, I have a need to create a spreadsheet upon demand (use triggered). Because of the volume of records, I cannot have the user wait and was thinking of creating a job queue. My question is if I create the queue within the website (separate running thread) and the last user logged off, does IIS shutdown the website even though a spreadsheet could be in the middle of being created or is it smart enough to realize a thread is "busy" doing something so stay running? If not, is the recommendation to create a windows service that would had the creation of these spreadsheets or? Thanks for your time, Nathan

    'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous

    A Richard DeemingR 2 Replies Last reply
    0
    • N nlarson11

      Hello, I have a need to create a spreadsheet upon demand (use triggered). Because of the volume of records, I cannot have the user wait and was thinking of creating a job queue. My question is if I create the queue within the website (separate running thread) and the last user logged off, does IIS shutdown the website even though a spreadsheet could be in the middle of being created or is it smart enough to realize a thread is "busy" doing something so stay running? If not, is the recommendation to create a windows service that would had the creation of these spreadsheets or? Thanks for your time, Nathan

      'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous

      A Offline
      A Offline
      Anurag Gandhi
      wrote on last edited by
      #2

      Hi, I would suggest to use middleware instead of relying on separate thread. Some of the suggested option in your case: 1. Message Queue: MSMQ, MS Service Bus or RabbitMQ OR 2. Add your Queue in persistent storage/Cache like Redis. It is reliable and will mostly process your queue even when your server restart. Hope this will help.

      Life is a computer program and everyone is the programmer of his own life.

      1 Reply Last reply
      0
      • N nlarson11

        Hello, I have a need to create a spreadsheet upon demand (use triggered). Because of the volume of records, I cannot have the user wait and was thinking of creating a job queue. My question is if I create the queue within the website (separate running thread) and the last user logged off, does IIS shutdown the website even though a spreadsheet could be in the middle of being created or is it smart enough to realize a thread is "busy" doing something so stay running? If not, is the recommendation to create a windows service that would had the creation of these spreadsheets or? Thanks for your time, Nathan

        'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous

        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #3

        Scott Hanselman posted a good list of the various options for scheduling background jobs in ASP.NET a while back: How to run Background Tasks in ASP.NET - Scott Hanselman[^]


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups