wcf - 如何实现WCF代理池?

标签 wcf

实现 WCF 代理池的最佳实践是什么?设计时应注意哪些事项?

非常感谢任何朝这个方向的指示。

最佳答案

如果您想沿着这条路走下去,请从Performance Improvement for WCF Client Proxy Creation in .NET 3.5 and Best Practices开始:

  • You need to implement the right synchronization logic for managing the proxies.

  • You need to make sure the proxies are used equally. Sometimes, you may want to implement a round-robin pattern for the proxies.

  • You need to handle exceptions and retries for the pool.

  • The pool size needs to be limited and configurable.

  • You may need to be able to create proxies even if when no proxy is available from the pool.

关于wcf - 如何实现WCF代理池?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1434608/

相关文章:

c# - 找不到与具有绑定(bind) BasicHttpBinding 的端点的方案 https 匹配的基地址

c# - 如何关闭wcf客户端

asp.net-mvc - Azure Web 角色 - 混合 MVC 和 WCF - 最佳实践

c# - WCF 和 SSL 相互身份验证 403 - 禁止 : Access is denied

c# - 服务 OnShutDown() 期间的 WCF 调用

wcf - 如何从MVC4的 Controller 异步调用wcf服务

c# - 控制台托管的 WCF 服务不跟踪

wcf - 将 Ninject 与 WebServiceHost 一起使用的正确方法是什么

.net - 带有 HTTPS 的 WCF WSDL 位置地址

c# - 用于记录方法调用和异常的 WCF 服务属性