multithreading - which one to use windows services or threading -


we having web application build using asp.net 3.5 & sql server database quite big , used around 300 super users managing around 5000 staffs. implementing sms functionality application means users able send , receive sms. every 2 minute sms server of third party pinged check whether there new messages. sms hold in queue , send every time interval of 15 30 minutes.

i want checking , sending process run in background of application time, if user closes browser window. need advice on how do this?

will using thread achieve or need create windows service or there other options?


more information:

i want execute task in timer, happen if close browser window, task wont completed isn't so.

for example saving 10 records database in time interval of 5 minutes, means every 5 minutes when timer tick event fires, record inserted database.

how run task if close browser window?

i tried looking @ windows service how pass generic collection of data processing.

there no thread or service choice, service can (and is!) multi threaded, thread can start service.

there 3 basic choices can:-

somehow start thread running when user logs in -- poor choice want, cannot keep running once user session lost.

write fledged windows service starts on os startup , continues running unitl server shutdown. can make dependant on sqlserver service, starts after db available. "best" solution may overkill purposes. aslo need know services api write need respond correctly shutdown , status requests.

you can schedule task periodically using either windows schedular, or, preferably schedular built in sqlserver, think suitable option needs.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -