Click here to Skip to main content
15,885,979 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm looking for suggestions/guidance/examples on how to create a periodic polling process [an application] using the latest technique(s).

I have a web application that inserts an entry into a queue table based upon a Users action. The entry represents a request to do something. Once the entry is processed, it will be removed from the queue. Until processed, there can be more than 1 request in the queue.

I want to poll that queue table every 3 minutes, 24 by 7 and then initiate a 'process' to handle the request(s).

Should this periodic polling process [an application] be a console app, a WCF service or a regular web service? Should I use a multi-threading technique to process multiple requests that may be in the queue at a given 'poll' time (every 3 minutes)?

I've seen a few examples of polling when I Google, but they seem old and out-dated. Some use threads, others tasks, timers, etc.

Somewhat confused as what is the best approach. Any "best practice" suggestions/guidance/examples would be most

appreciated.

Regards....Dan
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900