I am new to WCF. I have a WCF where many application using this service. And my requirement is, WCF service should handle multiple request at the same time. I know that this can be acheived by using [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)]
.
But I want to know what are the pros and cons of implementing Multiple option, as my service deals with payment processing. And I guess default ConcurrencyMode
is Single
. Can anyone please guide me by your suggestions?
As far as I surfed, everyone suggesting if we use ConcurrencyMode.Multiple
, we are responsible for providing the necessary synchronization/thread safety. I am bit confused, what kind of issues may occur and what are the steps needed to overcome when using ConcurrencyMode.Multiple
and InstanceContextMode.PerCall
?