Monday, November 13, 2006

Web Service Optimization

 

Server Side :

Hardware improvement : Multiple processor, Big Memory, SCSI Driver

 

Client Side:

(1). Call methods asynchronously.

(2). XML compression :

See the followng instruction :

Compress the XML-traffic between the client and the server using the SOAPExtensions mechanism and any compression algorithm. You can use a ZIP-compression for you data. There are a lot of open-source compression libraries for C#. For example, you can use a free library called SharpZipLib to compress your web methods. Read this article and download the "CompressionExtension" project. Adding a compression to your webservice is very easy: include the downloaded project into your solution, reference it in your webservice, and mark your web methods with [CompressionExtension] in the proxy-class code. Also, add the [CompressionExtension] flag in the .asmx component. That's it.

(3).Preload all necessary assemblies at the very beginning.

(4). Use pre-authorization under only proper user accessing web service other than "anonymous"

(5). Edit IIS customer error message to minimize network traffic.

0 Comments:

Post a Comment

<< Home