Thread and Task RRS feed

  • Question

  • Hi,

    My requirement is user can create max 60 job requests per day. Background task has to pick the job requests which is created and assign to a person(business logic involves here) who is eligible for that job. Let say if there are 5 job requests has created, background task has to pick all the 5 job requests and start all that in parallel.

    I'm using Visual Studio 2019, Framework 4.7

    I had think about the below options.

    1. Create a batch job, which triggers every 5 mins listen to the job request table and schedule it in windows task scheduler

    2. Create a windows service, this service listen to the job request table every 5 mins

    Based on the requirement above, which is the best way to achieve without concurrency issues. or is there any other way can achieve this.

    Also i'm confused should i use threading or tasks. please advise.

    kindly help to advise.


    Tuesday, November 5, 2019 2:53 AM

All replies