Akka适用于具有瞬态网络覆盖的系统吗? [英] Is Akka suitable for systems with transient network coverage?

查看:116
本文介绍了Akka适用于具有瞬态网络覆盖的系统吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Akka是否适合在预期节点进出wifi覆盖范围的系统中使用?必须考虑哪些方面(例如哪些传输协议是首选)?

Is Akka suitable to use in a system where nodes are expected to be moving in and out of wifi coverage? What aspects have to be considered (e.g. what transport protocols are preferred)?

推荐答案

Akka 适合用于具有瞬态网络覆盖的系统。如Viktor在问题的评论中指出的那样,Supervisor层次结构可用于处理未送达错误。有关详细信息,请参阅问题评论中的对话。

Akka is suitable for systems with transient network coverage. Supervisor hierarchies can be used to handle the non-delivery errors as Viktor has pointed out in the comments to the question. For more details see the conversation in the comments to the question.

要验证这一点,我已对两台计算机进行了一些测试,并将网络连接物理切换到其中一台计算机上和关闭。挂起套接字没有问题,并且在断开期间排队的消息在(物理上)重新建立连接时被传递,正如预期的那样。

To verify this I have done some testing with two computers and physically switched the network connection to one of them on and off. There were no problems with hanging sockets and messages that were queued during the outage were delivered when the connection was (physically) reestablished, just as expected.

这篇关于Akka适用于具有瞬态网络覆盖的系统吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆