Performance Tuning and Optimizing ASP.NET Applications

Web services are always called remotely and are typically invoked using a SOAP request. This architecture by design creates a process boundary that automatically degrades the responsiveness of the Web service. In addition, Web services and their consumers are forced to take the extra processing step of assembling and parsing SOAP requests . By their nature, Web services will not respond as fast as locally installed components , so it is extra important that you take steps to maximize the performance of your Web service. You can do so with a few simple design optimizations:

As a final thought, you may want to consider using .NET remoting as an alternative to Web services. .NET remoting is a technology for distributed programming that uses SOAP as one available protocol choice, in addition to binary remoting over TCP/IP. .NET remoting is a useful technology for passing binary objects across process boundaries, and it is usually much more efficient than Web services if you are generating complex objects and do not need to use SOAP. The .NET Framework provides efficient design patterns for .NET remoting solutions that provide sophisticated functionality with relatively little code. You can read more about .NET remoting in the .NET Framework Software Development Kit (SDK).

Категории