面向异构集群的TypeScript行为类型化状态机
Behaviorally Typed State Machines in TypeScript for Heterogeneous Swarms
AI总结:
针对异构集群系统设计推理难的问题,提出一组TypeScript库,将点对点工作流建模为状态机并通过Actyx中间件执行,还能基于集群协议验证实现正确性,保障最终一致性。
摘要:
异构集群系统是一种分布式系统,其中参与者可动态加入和退出,通信拓扑可随时变化,数据复制是异步且部分的,且不同节点上的本地智能体行为存在差异。这类系统的设计与推理难度很大,主要原因在于我们期望异构个体智能体的相互作用能产生特定类别的行为。尽管如此,工厂制造流程编排等任务关键型操作仍在使用这类系统,因为它们具备计算服务的极高可用性与弹性。\n本文提出了一组TypeScript库,可将点对点工作流建模为状态机,借助Actyx中间件执行这些工作流,并检查这些状态机的形态是否符合集群协议。集群协议描述了不同角色的状态机协作的理想化全局视图,它与产品经理在白板上绘制的图直接对应,这使得人们可以验证编码后的状态机是否正确实现了产品规范。格式良好的集群协议还能保证,即使没有进一步协调,符合协议的状态机也能在整体状态推进上达成最终一致性。该工具面向异构集群系统的业务逻辑开发人员,可帮助他们验证自身的协议与实现是否正确。\n工具仓库:https://github.com/Actyx/machines
英文摘要:
A heterogeneous swarm system is a distributed system where participants come and go, communication topology may change at any time, data replication is asynchronous and partial, and local agents behave differently between nodes. These systems are hard to design and reason about, mainly because we desire a particular class of behaviors to emerge from the interplay of heterogeneous individual agents. Nevertheless, mission-critical operations like manufacturing process orchestration in factories use such systems due to their uncompromising availability and resilience of computing services. This paper presents a set of TypeScript libraries to model peer-to-peer workflows as state machines, execute them using the Actyx middleware, and check the shape of these machines for conformance to a swarm protocol. The swarm protocol describes an idealized global view of the cooperation of machines of different roles. It directly corresponds to a diagram a product manager would sketch on a whiteboard; this allows for verifying that the coded state machines correctly implement the product specification. A well-formed swarm protocol also guarantees that conforming machines will achieve eventual consensus on the overall state progression even in the absence of further coordination. This tool is for developers of business logic for heterogeneous swarm systems, helping them verify that their protocols and implementations are correct. Tool repo: https://github.com/Actyx/machines
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。