Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Does timer in Web Service Global.asax block my Web Service from processing web-site requests?

Thread Tools

Does timer in Web Service Global.asax block my Web Service from processing web-site requests?

Leo Violette
Posts: n/a
My Web Service has a Global.asax.cs file. In my Global class, I have a
Timer member called PollingTimer.

In Application_Start, I construct the polling timer and have it run every 30
seconds. The reason I do this is because
I want to report the status of some server machines on my web-site. But, if
I query the machine every time the web-site
requests it, it would make the request take too long. So, I have this
polling timer make the request every 30 seconds,
which I then store in the ApplicationState and when the Web-Site requests
the information from my service, I just
retrieve it from ApplicationState and return it back to the web-site.

Feel free to comment if you think that is a bad way to solve the problem.

But, my question is this:
When my timer fires and queries a remote server for status, is that blocking
my Web Service from receiving and
processing requests from the Web Site? If so, then does that mean that
instead of a timer, I should use a separate thread?

Thanks for your input.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fo:Block can you check to see if a block contains any text by using the block id? morrell XML 1 10-10-2006 07:18 PM
page timer, or redirect timer Simon ASP .Net 1 11-04-2005 07:14 PM
System.Timers.Timer/System.Threading.Timer Not Firing At All on Dev Server ASP .Net 1 02-22-2005 09:41 PM
System.Timers.Timer vs. System.Threading.Timer Kelsang Wangchuk ASP .Net 0 07-31-2003 04:28 PM