.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Is moving heavy processing off of my webserver to a separate service helpful?

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :ASP.Net


 I currently have some operations that require some very heavy processing...database calls, logic, etc..  Currently, this processing is being done on the webservers so a request may take a little while to complete.  I'm wondering if I were to take these processes off of the webservers and move them to another set of services if this would be helpful in any way?  Instead of having the webserver do the processing, the webserver would call (synchronously via wcf or soap) into another service to do it, then return the response.  What happens to the webserver during a synchronous call to another service? would it free up some processing power to allow the webserver to handle other requests in the mean time while it is waiting for the heavy process to complete?  Any info or additional thoughts would be greatly appreciated. 

Thanks in advance,

-Ryan van der Kooy

View Complete Post

More Related Resource Links

Moving part of the code/processing from Asp.net hosted in IIS to WCF-Windows Services will help to r

I have a web application with no user interface (GUI), this web application (asp.net) accepts some input from a program and doing some processing; In the Page Load event I am doing all processing and calling a WCF service, after receiving the response from WCF services the page get unload before writing the processing status/result to database) this asp.net application is hosted in IIS.   The WCF services is also hosted in the same machine in windows Services where IIS is hosted, I am concern about its performance of the application which is hosted in IIS.  Should I move some part of the code (processing) to another program say Create a new WCF Services and host it in Windows Services  so that the load on IIS will be reduce?  The new WCF Services will process some part of the code which IIS used to process, so helping IIS to reduce the load.       By moving some part of code from asp.net [processing] to another program hosted in WCF- Windows Services in same machine will able to reduce the load on IIS?   Please guide me.. Thanks Shaju

Moving To a new Webserver page stopped working - BC30561: 'TreeNode' is ambiguous



Since i migrated a page to a new webserver running Asp v4 the page throws up this error I'm guessing ASPv4 it doesn't like the asp.2 code not having much of a clue of ASP I need some help to figure out how to resolve this problem. thanks in advance


Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30561: 'TreeNode' is ambiguous, imported from the namespaces or types 'System.Web.UI.WebControls, Microsoft.Web.UI.WebControls'.

Private Sub populateTreeView(ByVal strDirectory As String, ByVal nodeParent As TreeNode)
Line 58:             Try
Line 59:                 Dim CurDir As New DirectoryInfo(strDirectory)

Moving Reporting Service database to a new server.


I have a reportserver database on a 2005 instance.  I've moved it and reportservertempdb to a 2008 server.  In the config tool > Database > Change Database,  I'm getting

"The database you have selected is not a report server database.  Please select a SQL Server database that contains report server specific tables and stored procedures and try again."

I have done exactly what is noted in this thread:  http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/f8be967e-2126-4b1d-bcbe-9903d5c6b66a

Thanks for any help.



Start Processing After Service Is Up


I have three different service endpoints all hosted in a single Windows Service - Product, Transaction, and Admin.  I need to initialize certain data (the product catalog for instance) before performing any operations on that data.  This data is managed in a ProductManager and is available to all services.  I'd like to start pre-loading the product catalog (may need to make some off box calls) before any calls to the service.  What is the pattern for doing this?  Basically, OnSerivceOpening go ahead and pre-load up the data, and then make the services available for consumption.  Thanks.

The action 'Move to node SQLN1' did not complete. An error occured moving the clustered service or


Hello All,

We have two nodes clustered 2008 SQL server running 5 instances (one default instance and the rest named instances). The default instance failed over to node 2 and now I cannot fail it back to node 1 and keep getting the following error when I try to move the instance I get the following error in Failover Cluster Managemen:

" The action 'Move to node SQLNV1' did not complete. An error occurred moving the clustered services or application 'SQL Server (MSSQLSERVER)'. the operation failed because either the specified cluster node is not the owner of the group, or the node is not possible owner of the group"

Thanks in advance!



Do I need to host a separate site for my WF4 service?



I have an ASP.NET MVC3 application. I now want to implement a WF4 service that this app can use for managing some of my business operations. I want to implement the WF as a service rather than building it directly into the ASP.NET app because I may -- in the future -- create an iPhone app that can consume the service.

My question is about hosting it. Currently my app is being hosted at a shared server. I'll be moving it to Azure very soon. I assume I'll have to set up another site for the WF4 service which would mean another hosting fee, correct?

Also, what will I have to do when I port my app to Azure?

Thanks, Sam

Windows Service Applications Tutorials

You can easily create services by creating an application that is installed as a service. For example, suppose you want to monitor performance counter data and react to threshold values. You could write a Windows Service application that listens to the performance counter data, deploy the application, and begin collecting and analyzing data.

WCF Tip: Using Properties in Service Contracts

you'll notice all of the Service Contracts are implemented with interfaces containing only methods. For the longest time I thought that's all that was supported, until I thought about it a little more. In C# land, properties are simply wrappers around a get method and set method, so why wouldn't we be able to use properties in a service contract? Well the answer is we can.

Realizing a Service-Oriented Architecture with .NET

This article is meant to be a practical discussion guide to building a .NET application in a service-oriented architecture. We will consider real-world goals, real-world obstacles, and experience-based solutions. I quickly concede the approaches discussed here are not exhaustive or infallible. This paper is focused on application development, not application integration. We will specifically consider architectural issues and component design issues.

The Potential of Web Services

Web Service for uploading documents into SharePoint

WS UploadService is a web service written for Microsoft Office SharePoint Server 2007 and Windows SharePoint Services 3.0 and is meant for uploading documents into SharePoint. I have just uploaded the zip file to GotDotNet.com so it will take some time before the zip file appears in the list of downloads. For the time being, you can download the zip file from the following location

Creating and Using an ASP.NET Web Service in Visual Web Developer

In addition to letting you create Web pages, Microsoft Visual Studio also lets you create Web services that use ASP.NET XML. Creating a Web service in Visual Studio is similar to creating a Web page. You can also use the Microsoft Visual Web Developer Web development tool to reference and use Web services that are in a Visual Web Developer solution, on your local computer or in a local or external UDDI directory. In this walkthrough, you will create the Web service in one solution and use it in another.

Tasks illustrated in this walkthrough include:

Creating a simple XML Web service in Visual Web Developer.

Creating a separate Web site that uses the Web service.

how to impose javascript event processing?


If I have some form control like textbox and I want the event handler to be located in the html instead of at the server side, how to do that? Of course I can copy paste javascript code in the aspx file. But is it possible to do that using some object oriented approach (ie programmatically in the code behind)?


URL rewriting with webserver in VS.NET2010



is it possible to have same URL rewriting behaviour in integrated webserver as in "real" IIS7?


WebDev.WebServer.exe has encounted a problem and needs to close when trying to view page in browser


Hi, whenever I load an aspx page in vwde2008, I get the message in the subject of this post.  After I click Ok on that, I get a dialog box, Unable to Connect to the ASP.Net development center.  What can I do to troubleshoot?

I am using Windows XP SP3, vwde2008 with SP1, on a HP desktop.  Also using Office 2003 if that is relevant at all.

Thanks, Justin

Insert Error not helpful



I am using VS2010

When I try to updated or insert a record in my User table I am getting an error that does not make sense to me and I cannot figure out what is wrong.

Also, when I try to insert a new record I get a validation error saying that the Id is required. However it is an identity field in the db so it should not be necessary to send it to the server.

Could you please shed some light?


An error has occurred.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Microsoft.Web.UI.WebControls.EntityOperationException: An error has occurred.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:

[EntityOperationException: An error has occurred.]
   Microsoft.Web.UI.WebControls.DomainDataSourceView.PerformCudOperation(ChangeSetEntry operation, Action`1 operationPerformingEvent, Action`1 operationPerformedEvent) +331
   Microsoft.Web.UI.WebControls.DomainDataSourceView.UpdateObject(Object oldEntity, O

AutoGenerateSelectButton="False" ignored when using Domain Service


Crosspost from RIA Services forum: http://forums.silverlight.net/forums/t/196466.aspx

I'm creating a Dynamic Data application in VS2010 and have recently switched to using a Domain Service to give greater control over the data presented to the client. I've noticed that the AutoGenerate<Action>Button attributes on my GridView are being ignored. The presence of the Edit and Delete buttons appear to be contingent on the existence of Update and Delete methods on the partial classes autogenerated in the Domain Service, but i'm not seeing how to control the generation of the Select button. Is there a way to control this from within the Domain Service class?

Designing a heavy page



What should be the approach while designing when you know that your page would take considerable time to load? e.g. if it has controls which are heavy & some which are lighter? Can we make use of any of the design patterns to solve this issue?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend