Actor Continuation Passing:事件驱动架构的高效可扩展请求路由
Actor Continuation Passing: Efficient and Extensible Request Routing for Event-Driven Architectures
摘要:
用于处理对分段式事件驱动架构的应用程序请求的逻辑通常分布在源代码的不同部分。这使得改变和理解系统中的事件流变得复杂。本文介绍了一种方法,将请求处理逻辑从常规阶段功能中提取到一组请求脚本中。这些脚本通过将封装其请求当前执行状态的延续发送到本地处理的阶段以及后续延续的可选转发来分步执行。一种新的内部领域特定语言(DSL),旨在简化请求脚本的编写,并描述了它在scala actors库中的实现。评估结果表明,与使用至少3个顺序步骤的脚本的请求处理逻辑的单独阶段相比,使用演员延续的请求处理执行得差不多或更好。
英文摘要:
The logic for handling of application requests to a staged, event-driven architecture is often distributed over different portions of the source code. This complicates changing and understanding the flow of events in the system. The article presents an approach that extracts request handling logic from regular stage functionality into a set of request scripts. These scripts are executed step-wise by sending continuations that encapsulate their request's current execution state to stages for local processing and optional forwarding of follow-up continuations. A new internal domain specific language (DSL) that aims to simplify writing of request scripts is described along with its implementation for the scala actors library. Evaluation results indicate that request handling with actor continuations performs about equally or better compared to using separate stages for request handling logic for scripts of at least 3 sequential steps.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。