Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Best pratices for long(ish) running processes

Reply
Thread Tools

Best pratices for long(ish) running processes

 
 
BillAtWork
Guest
Posts: n/a
 
      10-12-2009
Hi,
I'm hoping to find best practices for implementing an asp.net process, for
many 1000's of users, that is mainly "waiting" for data from an external
service. Platform is c#, IIS, asp.net 3.5, sql server 2005. Note that
processing is mostly taken up waiting for the external web service - the
actual workload on our side is quite light.

The process that is called asynchronously from the browser for each user. It
may take around 10-40 seconds to complete. Note that the user's browser is
NOT tied up during this time and is not "waiting" for the results - they will
simply appear upon the user's next refresh of data.

Is IIS being "tied up" in any way while waiting for this external service? I
don't think this is about asynchronous calls since the only thing "waiting"
is IIS. The users are fine. I'm trying to ascertain what's going on when you
have 1000's of simultaneous processes, each waiting for something. Perhaps
it's not even an issue and it's just what IIS does for a living!

Thanks for any help!
 
Reply With Quote
 
 
 
 
Mr. Arnold
Guest
Posts: n/a
 
      10-12-2009

"BillAtWork" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> I'm hoping to find best practices for implementing an asp.net process, for
> many 1000's of users, that is mainly "waiting" for data from an external
> service. Platform is c#, IIS, asp.net 3.5, sql server 2005. Note that
> processing is mostly taken up waiting for the external web service - the
> actual workload on our side is quite light.
>
> The process that is called asynchronously from the browser for each user.
> It
> may take around 10-40 seconds to complete. Note that the user's browser is
> NOT tied up during this time and is not "waiting" for the results - they
> will
> simply appear upon the user's next refresh of data.
>
> Is IIS being "tied up" in any way while waiting for this external service?
> I
> don't think this is about asynchronous calls since the only thing
> "waiting"
> is IIS. The users are fine. I'm trying to ascertain what's going on when
> you
> have 1000's of simultaneous processes, each waiting for something. Perhaps
> it's not even an issue and it's just what IIS does for a living!
>
> Thanks for any help!
>


Yes, IIS is being affected by this due to the fact that the application the
Web service is using resources such as memory, threads and processing power
to service the long requests. This could be a problem for you if the Web
service and the ASP.NET UI front end applications are running on the same
server, in speed to service other Web request problems and possible memory
problems as well.

Long running requests should be off loaded to another server, whereas, the
Web service passes the requests off to another server taking the load of the
front-end Web server, if this is your situation.

This is one way to do it.

http://www.devx.com/asp/Article/21782/1954

Here is another way to do it by using SQL Server Service Broker. And I'll
tell you that you can queue up processes that have nothing to do with
database access.

http://msdn.microsoft.com/en-us/libr...8(SQL.90).aspx


Yet another way to do it is with Windows Workflow to take the load off the
front-end Web server passing the process off to another server in the
infrastructure.

http://blogs.msdn.com/kaevans/archiv...brequests.aspx









__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4501 (20091012) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




__________ Information from ESET NOD32 Antivirus, version of virus signature database 4501 (20091012) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



 
Reply With Quote
 
 
 
Reply

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
Best Pratices to Develop three tier Web Site Sam ASP .Net 1 12-02-2009 10:53 PM
AAA Best Pratices? Matt White Cisco 8 02-06-2006 02:44 PM
best pratices in Exception Handling philippe.barthelemy_GOOGLE@gadz.org Java 4 11-27-2004 10:05 PM
Best pratices ... advice -- client proxy from wsdl Trebek ASP .Net Web Services 2 04-30-2004 03:10 PM
How do I: Main thread spawn child threads, which child processes...control those child processes? Jeff Rodriguez C Programming 23 12-09-2003 11:06 PM



Advertisments