arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2010.16301cs.PL
收藏

基于CEP技术的Actor模型的高级连接模式

Advanced Join Patterns for the Actor Model based on CEP Techniques

Humberto Rodriguez Avila, Joeri De Koster, Wolfgang De Meuter

摘要:

基于Actor的程序设计语言为开发现代分布式反应式系统提供了许多基本功能。这些系统利用参与者模型的隔离属性来满足其性能和可伸缩性需求。不幸的是,模型依赖于隔离作为其最基本的属性,这要求程序员表达他们的参与者之间的复杂交互模式,这些模式要根据在隔离的参与者之间发送的消息的复杂组合来手动表达。询价:在过去的三十年里,已经引入了几种语言设计方案,以减少描述所述参与者的交互和协调所产生的复杂性。我们认为,这些建议都是令人满意的,以表达在现代反应式分布式系统中发现的演员之间的许多复杂的交互模式。方法:我们描述了七个灵巧家庭自动化方案(其中一个演员代表每一个灵巧家庭电器),以激励演员语言支持五个根本不同类型的消息同步模式,这是缺乏现代分布式演员为基础的语言。幸运的是,这五种类型的同步模式已经被复杂事件处理(CEP)社区广泛研究。我们的论文描述了如何将CEP模式优雅地添加到基于角色的程序设计语言中。知识:基于我们的研究结果,我们提出了一个扩展的单消息匹配范式的当代演员为基础的语言,以支持多消息匹配的思维方式提出的CEP语言。因此,我们的建议丰富了演员模型的方式声明性地描述复杂的消息组合,演员可以响应。接地:我们的基础上的在线民意调查在家庭自动化社区,激励了真正需要的CEP为基础的演员之间的同步运营商的文件中提出的问题陈述。此外,我们实现了一个DSL--称为Sparrow--支持上述运营商,我们从数量上(在可扩展性和减少程序员必须处理的问题方面)论证了DSL优于现有方法。重要性:这项工作的目的是提供一组同步操作符,帮助基于角色的语言来处理现代反应式分布式系统所需的复杂交互。据我们所知,我们的建议是第一个添加先进的CEP同步操作符-相对简单的基于单消息的匹配-大多数基于演员的语言的机制。

英文摘要:

Context: Actor-based programming languages offer many essential features for developing modern distributed reactive systems. These systems exploit the actor model's isolation property to fulfill their performance and scalability demands. Unfortunately, the reliance of the model on isolation as its most fundamental property requires programmers to express complex interaction patterns between their actors to be expressed manually in terms of complex combinations of messages sent between the isolated actors. Inquiry: In the last three decades, several language design proposals have been introduced to reduce the complexity that emerges from describing said interaction and coordination of actors. We argue that none of these proposals is satisfactory in order to express the many complex interaction patterns between actors found in modern reactive distributed systems. Approach: We describe seven smart home automation scenarios (in which an actor represents every smart home appliance) to motivate the support by actor languages for five radically different types of message synchronization patterns, which are lacking in modern distributed actor-based languages. Fortunately, these five types of synchronisation patterns have been studied extensively by the Complex Event Processing (CEP) community. Our paper describes how such CEP patterns are elegantly added to an actor-based programming language. Knowledge: Based on our findings, we propose an extension of the single-message matching paradigm of contemporary actor-based languages in order to support a multiple-message matching way of thinking in the same way as proposed by CEP languages. Our proposal thus enriches the actor-model by ways of declaratively describing complex message combinations to which an actor can respond. Grounding: We base the problem-statement of the paper on an online poll in the home automation community that has motivated the real need for the CEP-based synchronisation operators between actors proposed in the paper. Furthermore, we implemented a DSL -- called Sparrow -- that supports said operators and we argue quantitatively (in terms of LOC and in terms of a reduction of the concerns that have to be handled by programmers) that the DSL outperforms existing approaches. Importance: This work aims to provide a set of synchronization operators that help actor-based languages to handle the complex interaction required by modern reactive distributed systems. To the best of our knowledge, our proposal is the first one to add advanced CEP synchronization operators to the -- relatively simplistic single-message based matching -- mechanisms of most actor-based languages.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑