实现 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/