是否可以创建 ac# 应用程序从多个 wcf 服务器下载单个文件?

发布于 2025-01-06 14:42:37 字数 192 浏览 3 评论 0原文

我想知道是否可以创建 c# 表单应用程序和 wcf 服务,该服务提供类似 torrent 的服务,通过为 c# 应用程序提供多个源来平衡服务器上的负载?

我们希望为客户端提供一种方法,通过使用相同的 Web 服务代码分配来自不同服务器的源来加速 wcf 服务中的请求,就像 BitTorrent 风格一样。

我在这里看错路了吗?请指导我。

I want to know if it is possible to create a c# forms app and a wcf service that provides a torrent-like service that balances load on the server by providing the c# app multiple sources?

We wanted to provide a way for clients to speed up requests in our wcf service by allocating sources from different servers with the same web service code just like a bittorrent style.

Am i looking at the wrong path here? Please guide me.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

┈┾☆殇 2025-01-13 14:42:37

您上面描述的是基本的负载平衡。您可以使用基于硬件的 LB 设备或使用基于软件的解决方案(例如 Windows 网络负载平衡

为了使您的 WCF 服务在负载均衡环境中良好运行,重点使用 HTTP为了您的交通。如果需要,您可以对 TCP 进行负载平衡,但由于客户端和服务器上的套接字池优化,它的参与程度会更高。

但是,请注意,负载平衡与 BitTorrent 完全不同,BitTorrent 使用复杂的、动态的、带宽和连接感知的多点对点块下载和上传协议。

我绝对建议从 LB 开始,然后再寻求其他可能更优化的解决方案,包括在规模的简单端使用缓存和在中间使用内容分发网络 (CDN)。 BitTorrent 可能是您的一个极端选择,但这也是许多其他问题的主题;)

What you describe above is basic load-balancing. You can load-balance across multiple servers each hosting your WCF services using either hardware-based LB devices or using software-based solutions like Windows' Network Load Balancing.

In order to make your WCF services work well in a load balancing environment, focus on using HTTP for your transport. You CAN load-balance TCP if you want, but it's somewhat more involved due to socket pooling optimizations at the cilent and server.

HOWEVER, note that Load Balancing is NOTHING like BitTorrent which uses a sophisticated, dynamic, bandwidth and connectivity-aware multi-peer-to-peer chunk downloading and uploading protocol.

I'd DEFINITELY recommend starting with LB before pursuing other, perhaps more optimal solutions including using caching at the simple end of the scale and content distribution networks (CDN's) in the middle. BitTorrent may be an option for you at the extreme end of the scale, but that's a subject for a raft of other questions ;)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文