gpt4 book ai didi

scala - Akka的分布式 Actor

转载 作者:行者123 更新时间:2023-12-04 04:31:59 26 4
gpt4 key购买 nike

我对Akka还是相当陌生的,对于分布式编程来说,我还是一个新手。使用Akka的Mist组件,我创建了受监督的参与者,以异步处理HTTP请求。当前,所有内容都在具有本地参与者的一台物理计算机上运行。我不了解的是如何构建一个具有多个框的真正的容错系统。如Akka文档中所述:

Also, you (usually) need to know if one box is down and/or the service you are talking to on the other box is down. Here actor supervision/linking is a critical tool for not only monitoring the health of remote services, but to actually manage the service, do something about the problem if the actor or node is down. Such as restarting actors on the same node or on another node.



我该怎么做呢?我正在寻找一个示例或有关如何开始使我的应用程序分发的指针。我们小组中的其他服务在多个Tomcat实例之前使用Apache网关,因此Tomcat服务器停机的事件对用户是透明的。我正在将服务部署到Akka微内核,并且需要在多个物理设备上达到类似的高可用性水平。

我正在使用Akka 1.1.3。

最佳答案

远程监控仅适用于Akka 1.x系列的客户端管理的远程角色。

当前正在开发的Akka 2.0将支持透明集群,集群范围的监督和集群范围的生命周期监视。

关于scala - Akka的分布式 Actor ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7207521/

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