[WCF] Resolve slow performance when concurrent access

Windows Communication Foundation (WCF) is a SOAP API services from Microsoft. Compare with ASP.net MVC, it can host as single application without rely on IIS and it is better to containerize backend application.

Due to default CLI settings, it will have button-neak on concurrent user call. By default, it only allow 16 concurrent call and 12 concurrent session. To release it, need to alter settings in app.config / web.config as below.

<serviceBehaviors> 
  <behavior name="serviceBehavior"> 
   <serviceThrottling maxConcurrentCalls="5000" maxConcurrentInstances="2147483647" maxConcurrentSessions="5000" />
  </behavior> 
</serviceBehaviors>

 

About C.H. Ling 262 Articles
a .net / Java developer from Hong Kong and currently located in United Kingdom. Thanks for Google because it solve many technical problems so I build this blog as return. Besides coding and trying advance technology, hiking and traveling is other favorite to me, so I will write down something what I see and what I feel during it. Happy reading!!!

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.