Friday, 12 June 2015

Multiple Concurrency Mode in WCF

This post is continuation of post Concurrency Mode in WCF. Please visit following link before reading this post.
http://logicsmaze.blogspot.in/2015/06/concurrency-mode-in-wcf.html

Multiple Concurrency Mode in WCF :
With multiple concurrency mode an exclusive lock is not acquired by on the service instance. With multiple concurrency modem multiple threads are are allowed to access the service instance simultaneously and we get better  throughput.

Like single concurrency mode, multiple concurrency mode is not influenced by instance context mode and whether the binding supports session or not.

Concurrency mode can be set by using ConcurrencyMode attribute of [ServiceBehaviour]




Instance Context ModeConcurrency ModeIs Binding Support SessionWill Concurrency Call Processed
PerCallMultipleNoYes
PerCallMultipleYesYes
PerSessionMultipleNoYes
PerSessionMultipleYesYes
SingleMultipleNoYes
SingleMultipleYesYes

For detailed description about other concurrency mode please visit following posts.
Single-concurrency-mode-in-wcf
Multiple-concurrency-mode-in-wcf
Reentrant-concurrency-mode-in-wcf

Thanks :-)

No comments:

Post a Comment