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)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Akka适合具有短暂网络覆盖的系统。正如 Viktor 在对该问题的评论中指出的那样,主管层次结构可用于处理未交付错误。有关更多详细信息,请参阅问题评论中的对话。
为了验证这一点,我对两台计算机进行了一些测试,并以物理方式打开和关闭了其中一台计算机的网络连接。正如预期的那样,挂起套接字没有问题,并且在连接(物理上)重新建立时传递了中断期间排队的消息。
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.