locked
Creating some queue/job management for running an executable? RRS feed

  • Question

  • User48651432 posted

    I have a third-party executable that cannot process concurrent requests. This EXE runs when a user visits the webform and clicks on a button.

    How can I manage several requests so that this executable doesn't crash when it tries to process more than one request at a time?

    Thanks.

    Sunday, March 14, 2010 5:51 PM

Answers

  • User-525215917 posted

    You can use MSMQ by example to place data from requests to queue. On your server you should have some simple windows service (or program executed by scheduler) that reads data from queue and runs this executable. If your executable is not able to run as more as one instance you just have to make your users wait like they were in supermarket. 

    If your executable produces some result that user has to see then your service or application must put this result somewhere where user can get it (database, server file system, etc).

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, March 14, 2010 8:23 PM