简体   繁体   English

使用WCF-如何传输数据并获得确认

[英]Using WCF - how to transfer data and get an acknowledgement

如何使用WCF从一台服务器到另一台服务器传输大量数据的同时获取确认消息

If you are considering synchronous communication, a valid response from the server will be acknowledgement of the message delivery, along with all its data. 如果您正在考虑同步通信,则来自服务器的有效响应将被确认为消息传递及其所有数据。

But when talking about large amount of data you should consider using Streaming so you will reduce memory overhead: 但是,在谈论大量数据时,您应该考虑使用Streaming,这样可以减少内存开销:

When you have a large amount of data to transfer, the streaming transfer mode in WCF is a feasible alternative to the default behavior of buffering and processing messages in memory in their entirety. 当您有大量数据要传输时,WCF中的流传输模式可以替代整个内存中缓冲和处理消息的默认行为的可行替代方案。

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

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