简体   繁体   English

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

[英]is it possible to create a c# app to download a single file from multiple wcf servers?

I want to know if it is possible to create ac# 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? 我想知道是否可以创建ac#表单应用程序和wcf服务,该服务提供类似torrent的服务,通过为c#应用程序提供多个来源来平衡服务器上的负载?

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. 我们想为客户端提供一种方法,通过分配来自具有相同Web服务代码的不同服务器的源(如bittorrent样式)来加快wcf服务中的请求。

Am i looking at the wrong path here? 我在这里看错了路吗? Please guide me. 请指导我。

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 . 您可以使用基于硬件的LB设备或使用基于软件的解决方案(例如Windows的网络负载平衡)在多个承载WCF服务的服务器之间进行负载平衡

In order to make your WCF services work well in a load balancing environment, focus on using HTTP for your transport . 为了使您的WCF服务在负载平衡环境中正常运行,请集中精力使用HTTP进行传输 You CAN load-balance TCP if you want, but it's somewhat more involved due to socket pooling optimizations at the cilent and server. 您可以根据需要对TCP进行负载平衡,但由于在客户端和服务器上进行了套接字池优化,因此它的工作量更大。

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. 但是请注意,负载平衡没有像BitTorrent的,它使用一个复杂的,动态的,带宽和连接感知的多点对等网络块下载和上传协议。

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. 我肯定会建议从LB开始,然后再寻求其他更佳的解决方案,包括在规模的简单端使用缓存,在中间使用内容分发网络(CDN)。 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 ;) 在极端情况下,BitTorrent可能是您的选择,但这是许多其他问题的主题;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM