Click here to Skip to main content
15,918,976 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Background worker thread to process many request asynchronously Pin
Hamed Musavi20-Aug-10 6:28
Hamed Musavi20-Aug-10 6:28 
GeneralRe: Background worker thread to process many request asynchronously Pin
ely_bob23-Aug-10 2:30
professionalely_bob23-Aug-10 2:30 
AnswerRe: Background worker thread to process many request asynchronously Pin
T M Gray20-Aug-10 6:26
T M Gray20-Aug-10 6:26 
GeneralRe: Background worker thread to process many request asynchronously Pin
Hamed Musavi20-Aug-10 6:30
Hamed Musavi20-Aug-10 6:30 
AnswerCreate a Windows Service - FileSystemWatcher Pin
David Mujica20-Aug-10 6:32
David Mujica20-Aug-10 6:32 
GeneralRe: Create a Windows Service - FileSystemWatcher Pin
AllenRogerMarshall24-Aug-10 12:21
professionalAllenRogerMarshall24-Aug-10 12:21 
AnswerRe: Background worker thread to process many request asynchronously Pin
si2480323-Aug-10 0:09
si2480323-Aug-10 0:09 
GeneralRe: Background worker thread to process many request asynchronously [modified] Pin
Hamed Musavi23-Aug-10 1:08
Hamed Musavi23-Aug-10 1:08 
si24803 wrote:
using the singleton pattern


Honestly, I prefer to avoid any static thing as much as I can. Singleton in my opinion is just the same static functions + a constructor. The constructor adds benefits but using static functions in a multi-threaded world is tricky. Keeping track of all shared resources during application lifetime is hard indeed. Don’t get me wrong. I don’t say I totally avoid them but I will as much as I can.



si24803 wrote:
a permanently alive thread or threads that block when the queue is empty


That was my first question. Answers were great. While that fits very well in desktop applications, I’ve learned that it's not the best possible solution in a web application.

I think best possible solution was given by T M Gray; first ensure if it’s really needed. If so, then have a separate Win/Web Service to do background probably time-intensive jobs. Use an IPC mechanism (WCF netpipes maybe) or RPC or SOAP messages, in case of a WebService, to inform the Win/Web Service asynchronously that a new email is to be processed.

"I hope you live a life you're proud of. If you find that you're not, I hope you have the strength to start all over again."    
 - I wish I knew who is this quote from
 
modified on Monday, August 23, 2010 7:29 AM

Questionweb page popping out from iframe Pin
Hiren solanki20-Aug-10 4:06
Hiren solanki20-Aug-10 4:06 
AnswerRe: web page popping out from iframe Pin
R. Giskard Reventlov20-Aug-10 4:25
R. Giskard Reventlov20-Aug-10 4:25 
GeneralRe: web page popping out from iframe Pin
Hiren solanki20-Aug-10 16:57
Hiren solanki20-Aug-10 16:57 
GeneralRe: web page popping out from iframe Pin
Not Active20-Aug-10 17:19
mentorNot Active20-Aug-10 17:19 
GeneralRe: web page popping out from iframe Pin
Hiren solanki20-Aug-10 18:46
Hiren solanki20-Aug-10 18:46 
AnswerRe: web page popping out from iframe Pin
Eaverae22-Aug-10 20:51
Eaverae22-Aug-10 20:51 
QuestionInterface Pin
future383919-Aug-10 18:30
future383919-Aug-10 18:30 
AnswerRe: Interface PinPopular
Al-Farooque Shubho19-Aug-10 19:52
Al-Farooque Shubho19-Aug-10 19:52 
GeneralRe: Interface Pin
Ankur\m/19-Aug-10 20:10
professionalAnkur\m/19-Aug-10 20:10 
AnswerRe: Interface Pin
Ankur\m/19-Aug-10 19:55
professionalAnkur\m/19-Aug-10 19:55 
GeneralRe: Interface Pin
Al-Farooque Shubho19-Aug-10 20:41
Al-Farooque Shubho19-Aug-10 20:41 
GeneralRe: Interface Pin
Yusuf20-Aug-10 3:53
Yusuf20-Aug-10 3:53 
AnswerRe: Interface Pin
Eaverae23-Aug-10 0:49
Eaverae23-Aug-10 0:49 
QuestionUnable to connect to any of the specified MySQL hosts in asp.net2010 vista Pin
Piyush Vardhan Singh19-Aug-10 5:18
Piyush Vardhan Singh19-Aug-10 5:18 
AnswerRe: Unable to connect to any of the specified MySQL hosts in asp.net2010 vista Pin
Yusuf19-Aug-10 10:27
Yusuf19-Aug-10 10:27 
Questionimage display problem Pin
Dhyanga19-Aug-10 4:41
Dhyanga19-Aug-10 4:41 
AnswerRe: image display problem PinPopular
Al-Farooque Shubho19-Aug-10 5:41
Al-Farooque Shubho19-Aug-10 5:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.