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

标签 .net remoting

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

在保持服务器和客户端运行的情况下更改远程服务器的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/

相关文章:

c# - 经常使用的 Entity Framework 数据库上下文

c# - 仅为 WCF 服务上可用的服务契约(Contract)接口(interface)之一生成客户端

c# - 有什么方法可以知道 CreateProcessAsUser 的进程何时从 C# 退出?

c# - 任何 'quick wins' 都可以使 .NET 远程处理在一台机器上更快?

c# - 如何在服务结构中为服务远程调用设置超时

.net - Visual Studio 2019 .EDMX 从数据库更新模型不起作用

c# - 如何减轻在 C# 中初始化列表字典的痛苦?

c# - .NET Remoting,将对象传递给方法

c# - 如何返回能够在服务器上执行的对象?

wcf - NET Remoting 和 MarshalByRefObject 真的死了吗?