c# - Single WCF channel performance vs multiple channels -
I have an application that repeatedly re-uses the same WCF channel, through a physical object Keep references. I wonder whether this is a good anticipation or should I open an X channel and call all the services instead of using one channel on round robin these channels?
Do these services get calls only if you only use 1 channel or the same thing when I will use X channels?
You must use a single channel factory for all requests to create different channels for each request Should never be used again Do not reuse the channels They are not expensive to make and threads are not secure What is expensive to make is the chain factory This thread is safe and can be reused Of course, if the channel Factory fault situation Then switch to get you may reopen it.
Comments
Post a Comment