What are the Pitfalls of using a shared static WCF Proxy Client?

早过忘川 提交于 2019-12-04 14:58:57

Once the channel is in a faulted state it will stay that way. So yes, I think a static client would be problematic. I started off that way as well but ended up creating and opening a new channel for each call instead. There doesn't seem to be much of a performance trade-off.

For reference I'm doing about 30-60 requests of about 5K-30K per request per second on a quad core machine from another quad core machine. WCF has been holding up quite well so far.

I just discovered that calling Close() on the proxy will block when calls that are One Way operations executing [OperationContract(IsOneWay = true)]. This would change the flow as well.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!