微服务中的短暂数据处理-技术报告
Ephemeral Data Handling in Microservices - Technical Report
摘要:
在软件系统的现代应用领域-如电子健康,物联网和边缘计算-数据以异构的树形数据格式编码,必须实时处理,并且必须是短暂的,即,而不是在系统中。虽然最好使用查询语言来表达复杂的数据处理逻辑,但它们的典型执行引擎(主应用程序外部的数据库)不适合短暂的数据处理场景。一个更好的选择是集成查询框架,它受益于现有的开发支持工具(例如,语法和类型检查器)并在应用程序存储器内执行。在本文中,我们提出了一个这样的框架,第一次,目标树形,面向文档的查询。我们形式化了MQuery的实例化,MQuery是广泛使用的MongoDB查询语言的一个可靠变体,我们用Jolie语言实现了它。Jolie程序是微服务,是现代软件系统的构建块。此外,由于Jolie支持本地树数据结构和异构数据编码的自动管理,我们可以提供一种统一的方式来使用MQuery语言支持的任何数据格式。我们提出了一个非平凡的用例,从电子健康,用它来具体评估我们的模型,并说明我们的形式主义。
英文摘要:
In modern application areas for software systems --- like eHealth, the Internet-of-Things, and Edge Computing --- data is encoded in heterogeneous, tree-shaped data-formats, it must be processed in real-time, and it must be ephemeral, i.e., not persist in the system. While it is preferable to use a query language to express complex data-handling logic, their typical execution engine, a database external from the main application, is unfit in scenarios of ephemeral data-handling. A better option is represented by integrated query frameworks, which benefit from existing development support tools (e.g., syntax and type checkers) and execute within the application memory. In this paper, we propose one such framework that, for the first time, targets tree-shaped, document-oriented queries. We formalise an instantiation of MQuery, a sound variant of the widely-used MongoDB query language, which we implemented in the Jolie language. Jolie programs are microservices, the building blocks of modern software systems. Moreover, since Jolie supports native tree data-structures and automatic management of heterogeneous data-encodings, we can provide a uniform way to use MQuery on any data-format supported by the language. We present a non-trivial use case from eHealth, use it to concretely evaluate our model, and to illustrate our formalism.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。