gpt4 book ai didi

.net - .NET Remoting 如何处理 Remoting 服务器端的 IP 地址更改

转载 作者:行者123 更新时间:2023-12-05 01:24:33 27 4
gpt4 key购买 nike

先决条件 - 远程服务器和客户端均已设置,客户端能够通过客户端激活的业务对象在服务器端调用方法并从服务器端接收事件。

在保持服务器和客户端运行的情况下更改远程服务器的IP地址,客户端仍然可以执行上述任务。

这很棘手。

编辑:设置 channel 时删除了 bindTo

最佳答案

拜托,现在是 2010 年......已经让它成为 WCF 应用程序了。

要回答您的“性能”问题,请查看线程 Performance WCF vs .NET remoting

WCF与之前其他通信技术的全面比较HERE

通过使用 WCF,您可以避免一些令人头疼和令人头疼的情况。这是一个安全的赌注,让我向您保证,您不会后悔的。

引用 Saurabh Gupta(MS 的 WCF PM)的话:

When migrating distributed applications written with ASP.NET Web Services, WSE, .NET Enterprise Services and .NET Remoting to WCF, the performance is at least comparable to the other existing Microsoft distributed communication technologies. In most cases, the performance is significantly better for WCF over the other existing technologies. Another important characteristic of WCF is that the throughput performance is inherently scalable from a uni processor to quad processor.

To summarize the results, WCF is 25%—50% faster than ASP.NET Web Services, and approximately 25% faster than .NET Remoting. Comparison with .NET Enterprise Service is load dependant, as in one case WCF is nearly 100% faster but in another scenario it is nearly 25% slower. For WSE 2.0/3.0 implementations, migrating them to WCF will obviously provide the most significant performance gains of almost 4x.

关于.net - .NET Remoting 如何处理 Remoting 服务器端的 IP 地址更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4254801/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com