4.6 Article

Ephemeral data handling in microservices with Tquery

期刊

PEERJ COMPUTER SCIENCE
卷 8, 期 -, 页码 -

出版社

PEERJ INC
DOI: 10.7717/peerj-cs.1037

关键词

Microservices; Jolie; Semi-structured data; Ephemeral data; Edge computing; Fog computing; Formal methods; Service-oriented computing; Query languages; e-Health

资金

  1. Villum Fonden [29518]
  2. Independent Research Fund Denmark [0135-00219]
  3. Horizon2020 [825619]

向作者/读者索取更多资源

This article presents Jolie/Tquery, the first query framework designed for ephemeral data handling in microservices. It combines the advantages of Jolie, a technology-agnostic, microservice-oriented programming language, and the MongoDB aggregation framework, one of the most widely-used query languages for semi-structured data in microservices. The article introduces the Tquery theory and explains how Jolie/Tquery was implemented following Tquery. It also showcases the application of Jolie/Tquery through a use case of a medical algorithm. Microbenchmarks are conducted to validate the performance advantage of Jolie/Tquery in the ephemeral case compared to using an external database like MongoDB.
The adoption of edge and fog systems, along with the introduction of privacy -preserving regulations, compel the usage of tools for expressing complex data queries in an ephemeral way. That is, queried data should not persist. Database engines partially address this need, as they provide domain-specific languages for querying data. Unfortunately, using a database in an ephemeral setting has inessential issues related to throughput bottlenecks, scalability, dependency management, and security (e.g., query injection). Moreover, databases can impose specific data structures and data formats, which can hinder the development of microservice architectures that integrate heterogeneous systems and handle semi-structured data. In this article, we present Jolie/Tquery, the first query framework designed for ephemeral data handling in microservices. Jolie/Tquery joins the benefits of a technology-agnostic, microservice-oriented programming language, Jolie, and of one of the most widely-used query languages for semi-structured data in microservices, the MongoDB aggregation framework. To make Jolie/Tquery reliable for the users, we follow a cleanroom software engineering process. First, we define Tquery, a theory for querying semi -structured data compatible with Jolie and inspired by a consistent variant of the key operators of the MongoDB aggregation framework. Then, we describe how we implemented Jolie/Tquery following Tquery and how the Jolie type system naturally captures the syntax of Tquery and helps to preserve its invariants. To both illustrate Tquery and Jolie/Tquery, we present the use case of a medical algorithm and build our way to a microservice that implements it using Jolie/Tquery. Finally, we report microbenchmarks that validate the expectation that, in the ephemeral case, using Jolie/Tquery outperforms using an external database (MongoDB, specifically).

作者

我是这篇论文的作者
点击您的名字以认领此论文并将其添加到您的个人资料中。

评论

主要评分

4.6
评分不足

次要评分

新颖性
-
重要性
-
科学严谨性
-
评价这篇论文

推荐

暂无数据
暂无数据