How to tune WCF service for better performance with ServiceThttttling

I am new to WCF services.

We have a service that listens to MSMQ. maxConcurrentInstances and maxConcurrentSessions is set to 1 for the service. which causes many messages in the queue and messages to be delivered slowly.

What is the difference between the maxConcurrentInstances and maxConcurrentSessions attributes in the serviceThrottling element.

It currently takes 10 minutes to complete 120 messages, which are very slow.

What should be the ideal value to improve service performance.

Thanks at Advance

+5
source share
1 answer

maxConcurrentInstances: , concurrency .

maxConcurrentSessions: WCF .


, concurrency .

IF Instance context mode = Per session 
   THEN  Max number of requests processed in parallel = Min(maxConcurrentInstances, maxConcurrentSessions)

IF Instance context mode = Per call 
   THEN Max number of requests processed in parallel = maxConcurrentInstances

IF Instance context mode = Single 
   THEN Max number of requests processed in parallel = 1

, concurrency .

, concurrency.


: ?

  • : PerSession PerCall
  • : PerSession
  • : Single, concurrency.

( PerCall) ( PerSession). , 100, , . , . , , .

+4

All Articles