<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d8211560\x26blogName\x3dTech+Tips,+Tricks+%26+Trivia\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://mvark.blogspot.com/search\x26blogLocale\x3den\x26v\x3d2\x26homepageUrl\x3dhttp://mvark.blogspot.com/\x26vt\x3d-5147029996388199615', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Tech Tips, Tricks & Trivia

by 'Anil' Radhakrishna
An architect's notes, experiments, discoveries and annotated bookmarks.

Search from over a hundred HOW TO articles, Tips and Tricks


Optimizing Web Services

Key points from the article "Top 5 Web Service Mistakes" paraphrased -

  • For maximum interoperability of .NET Web Services with non .NET clients, use standard XML Schema base types instead of .NET specific types.
  • Web services developed in .NET are deployed in ASP.NET and so they have access to all of the same great features of any ASP.Net web application like Output caching, application data caching, SessionState persistence (including out-of-process State Server and SQL Server) and client cookies. Significant performance benefits can be achieved by leveraging these state persistence features (with some caveats, however)
  • Consider aggregating smaller requests into a larger single request to improve performance while suitably handling the increased complexity.
  • Use web services to expose functionality and not data. For example, Google Search Web Service's usefulness is in its ability to give organized and relevant results rather than plain data.
  • Secure the data exchange and web service by validating the input to the web methods, protecting the data that is returned back to the client (for instance, using SSL to encrypt the data between the client and server) and auditing web service usage to prevent malicious access.
The checklist on Web Services Performance along with accompanying notes in the P&P guide "Improving .NET Application Performance and Scalability" contain valuable suggestions on building robust Web Services.

Labels: ,

Tweet this | Google+ it | Share on FB

« Home | Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »

»

Post a Comment