Wenlong Dong's Blog

WCF/WF performance WCF for the web

Browse by Tags

Tagged Content List
  • Blog Post: Two bloggers for performance

    Dustin Metzgar and Sajay Antony , our performance developers, have all started up their blogs on MSDN, which is great news to developers who are interested in WCF/WF/AppFabric performance or other fun things covered by their blogs. Dustin has just started up his blog on MSDN. Dustin has great expertise...
  • Blog Post: WF 4 Performance Whitepaper Published

    We have just published the performance whitepaper for WF 4 at the following location: http://msdn.microsoft.com/en-us/library/gg281645.aspx We have done quite some component-level performance measurement for different activities and scenarios. Here is one snapshot that I would like to share with...
  • Blog Post: Why Does WCF Become Slow After Being Idle For 15 Seconds?

    Customers reported the following WCF performance issue recently: · A WCF service over TCP or Named Pipe idles for over 15 seconds and the first request after that becomes very slow. Why? This can be easily reproduced. Basically, if you send two consecutive requests to a WCF service over TCP or...
  • Blog Post: Why Are WCF Responses Slow and SetMinThreads Does Not Work?

    Customers reported the following WCF performance issue recently: · A WCF client sends 10 requests concurrently to a self-hosted WCF service on 10 different threads. The service operation is very simple and it simply sleeps for 1 second. But the latencies for the 10 requests on the client side were...
  • Blog Post: Crack Throttling: Debugging WCF TimeoutException for a Middle-Tier Application

    Recently I helped a customer with a few friends to debug a TimeoutException issue happened in their middle-tier which uses WCF proxies. The issue turned out to be simple but the experience was quite interesting and I would like to tell you how we proceeded with it. Problem The customer’s scenario...
  • Blog Post: WCF 4: Higher Default Throttling Settings for WCF Services

    It has been quite a while that I did not write anything. This is because I was fully focusing on WCF 4. Now that we have got most of the work done, it is good time to continue my writing. Starting from this blog entry, I will show you performance related changes in WCF 4. Please let me know what you...
  • Blog Post: Scale WCF Application Better with Asynchronous Programming

    WCF is a framework that is asynchronous inside out. Internally, asynchronous patterns are used to achieve non-blocking calls between different layers inside WCF. Externally WCF exposes the asynchronous patterns for both client and service programming. Why Asynchronous Pattern? From performance...
  • Blog Post: Why Only Two Concurrent Requests for WCF Load Testing?

    This is not a new topic in the world of traditional web service usage. But I was still asked by people who use WCF. So I think it would be valuable to post a blog entry here. One of our customers asked me the following question: “We are using WCF in our application on Windows 2008 Server. We found...
  • Blog Post: Orcas SP1 Improvement: Asynchronous WCF HTTP Module/Handler for IIS7 for Better Server Scalability

    Introduction As mentioned in my last blog entry , for IIS-hosted WCF services, WCF holds the worker thread coming from ASP.NET until the whole request is completed to avoid a Denial of Service (DOS) attack. I also mentioned that on Windows 2008 Server, IIS7 has introduced the following registry setting...
  • Blog Post: WCF Request Throttling and Server Scalability

    Two Threads per Request In .NET 3.0 and 3.5, there is a special behavior that you would observe for IIS-hosted WCF services. Whenever a request comes in, the system would use two threads to process the request: · One thread is the CLR ThreadPool thread which is the worker thread that comes from...
  • Blog Post: Why changing SendTimeout does not help for hosted WCF services?

    In .NET 3.0, you would handle two different timeouts: · Binding.SendTimeout This is the timeout that specifies how long the client can wait for the transport to complete data writing until throwing exception. It is client side setting. If the request would likely take longer than the default (1...
  • Blog Post: Profiling WCF/WF Applications with VS Performance Profiler

    There are tons of good articles and blogs out there regarding how to use Visual Studio Team System ( VSTS ) performance tools ( vsperfcmd.exe etc under "%ProgramFiles%\Microsoft Visual Studio 8\Team Tools\Performance Tools" if you have installed VSTS) to generate profiles for native and managed applications...
  • Blog Post: A Sample for WCF Client Proxy Pooling

    Introduction Ideally we should not need to pool WCF client proxies as I mentioned in my previous blog entry . From some customer feedback, however, I got to know that reusing proxies is not ideal because: · There may be some unknown contention cost when one proxy is used by multiple threads. ...
  • Blog Post: Performance Improvement for WCF Client Proxy Creation in .NET 3.5 and Best Practices

    Introduction In .NET 3.0 SP1, which will be shipped together with .NET 3.5, there is significant performance improvement in WCF client proxy creation. For BasicHttpBinding, the performance is close to that of ASMX proxy creation. ASMX Proxy vs WCF Proxy ASMX proxy is much simpler than WCF proxy...
  • Blog Post: Best Practice: Always open WCF client proxy explicitly when it is shared

    In order to provide symmetric programming model for the client-side as for the server-side, WCF leverages .NET Remoting transparent proxy technique so that the service contract interface can be used seamlessly as on the server-side. The svcutil.exe tool can generate WCF client proxy code for you. If...
  • Blog Post: How to use performance counters to diagnose performance of WCF applications

    There are many ways to diagnose the performance of WCF applications. Here is a simple one that uses performance counters to get some rough ideas. There are two categories of performance counters that you can use: · ASP.NET counters: http://msdn2.microsoft.com/en-us/library/fxk122b4(vs.71).aspx ...
  • Blog Post: Trade Benchmark: .NET 3.0 vs IBM WebSphere 6.1

    Microsoft designed WCF seriously with all major basics taken into account: performance, security, and robustness/stress. I am proud as being part of the team. You might have seen the data that Saurabh, our performance Program Manager, posted in his whitepaper . We have competed ourselves for many of...
  • Blog Post: Service Instances and Concurrent Execution

    Kenny has a very good blog entry on this topic. I want to add some more points to this from performance perspective. InstanceContextMode By default, the default value of InstanceContextMode for a WCF service is PerSession. This means different things for different bindings. For sessionful bindings...
  • Blog Post: WF Performance Test Sample: SimpleStateMachineWorkflow

    As promised, here I attach the sample code for the “SimpleStateMachineWorkflow” performance test. It is not the same one that is used for the whitepaper ( http://msdn2.microsoft.com/en-us/library/Aa973808.aspx ). But the testing logic is very close. If you find any significant disparity between the numbers...
  • Blog Post: WF Performance Test Sample: EmptyWorkflow

    As promised, here I attach the sample code for the “EmptyWorkflow” performance test. It is not the same one that is used for the whitepaper ( http://msdn2.microsoft.com/en-us/library/Aa973808.aspx ). But the testing logic is very close. If you find any significant disparity between the numbers that you...
  • Blog Post: Pointers to WCF and WF Performance Data

    Saurabh Gupta, our performance Program Manager, published a white paper a few months ago. It provides some performance comparisons between WCF and other existing .NET distributed computing technologies: http://msdn2.microsoft.com/en-us/library/bb310550.aspx The technologies compared are: ...
Page 1 of 1 (21 items)