• 文献检索
  • 文档翻译
  • 深度研究
  • 学术资讯
  • Suppr Zotero 插件Zotero 插件
  • 邀请有礼
  • 套餐&价格
  • 历史记录
应用&插件
Suppr Zotero 插件Zotero 插件浏览器插件Mac 客户端Windows 客户端微信小程序
定价
高级版会员购买积分包购买API积分包
服务
文献检索文档翻译深度研究API 文档MCP 服务
关于我们
关于 Suppr公司介绍联系我们用户协议隐私条款
关注我们

Suppr 超能文献

核心技术专利:CN118964589B侵权必究
粤ICP备2023148730 号-1Suppr @ 2026

文献检索

告别复杂PubMed语法,用中文像聊天一样搜索,搜遍4000万医学文献。AI智能推荐,让科研检索更轻松。

立即免费搜索

文件翻译

保留排版,准确专业,支持PDF/Word/PPT等文件格式,支持 12+语言互译。

免费翻译文档

深度研究

AI帮你快速写综述,25分钟生成高质量综述,智能提取关键信息,辅助科研写作。

立即免费体验

使用Tquery在微服务中处理临时数据。

Ephemeral data handling in microservices with Tquery.

作者信息

Giallorenzo Saverio, Montesi Fabrizio, Safina Larisa, Zingaro Stefano Pio

机构信息

Università di Bologna, Bologna, Italy.

INRIA, Sophia Antipolis, France.

出版信息

PeerJ Comput Sci. 2022 Jul 22;8:e1037. doi: 10.7717/peerj-cs.1037. eCollection 2022.

DOI:10.7717/peerj-cs.1037
PMID:36091995
原文链接:https://pmc.ncbi.nlm.nih.gov/articles/PMC9454887/
Abstract

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 (, 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).

摘要

边缘和雾计算系统的采用,以及隐私保护法规的出台,促使人们使用工具以临时方式表达复杂的数据查询。也就是说,查询的数据不应持久化。数据库引擎部分满足了这一需求,因为它们提供了用于查询数据的特定领域语言。不幸的是,在临时设置中使用数据库存在与吞吐量瓶颈、可扩展性、依赖管理和安全性(如查询注入)相关的非必要问题。此外,数据库可能会强加特定的数据结构和数据格式,这可能会阻碍集成异构系统并处理半结构化数据的微服务架构的开发。在本文中,我们展示了Jolie/Tquery,这是第一个为微服务中的临时数据处理而设计的查询框架。Jolie/Tquery结合了一种与技术无关、面向微服务的编程语言Jolie的优点,以及微服务中最广泛使用的半结构化数据查询语言之一MongoDB聚合框架的优点。为了使Jolie/Tquery对用户可靠,我们遵循净室软件工程流程。首先,我们定义了Tquery,这是一种用于查询与Jolie兼容的半结构化数据的理论,它受到MongoDB聚合框架关键运算符的一致变体的启发。然后,我们描述了如何根据Tquery实现Jolie/Tquery,以及Jolie类型系统如何自然地捕获Tquery的语法并有助于保持其不变性。为了说明Tquery和Jolie/Tquery,我们展示了一个医学算法的用例,并构建了一个使用Jolie/Tquery实现它的微服务。最后,我们报告了微基准测试结果,这些结果验证了在临时情况下使用Jolie/Tquery优于使用外部数据库(具体为MongoDB)的预期。

https://cdn.ncbi.nlm.nih.gov/pmc/blobs/2dae/9454887/b1474cf95b2a/peerj-cs-08-1037-g006.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/2dae/9454887/0a0de75a54a0/peerj-cs-08-1037-g001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/2dae/9454887/d664bd257efc/peerj-cs-08-1037-g002.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/2dae/9454887/6a28a79e551b/peerj-cs-08-1037-g003.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/2dae/9454887/5cdb88911846/peerj-cs-08-1037-g004.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/2dae/9454887/cb12e41a82d5/peerj-cs-08-1037-g005.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/2dae/9454887/b1474cf95b2a/peerj-cs-08-1037-g006.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/2dae/9454887/0a0de75a54a0/peerj-cs-08-1037-g001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/2dae/9454887/d664bd257efc/peerj-cs-08-1037-g002.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/2dae/9454887/6a28a79e551b/peerj-cs-08-1037-g003.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/2dae/9454887/5cdb88911846/peerj-cs-08-1037-g004.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/2dae/9454887/cb12e41a82d5/peerj-cs-08-1037-g005.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/2dae/9454887/b1474cf95b2a/peerj-cs-08-1037-g006.jpg

相似文献

1
Ephemeral data handling in microservices with Tquery.使用Tquery在微服务中处理临时数据。
PeerJ Comput Sci. 2022 Jul 22;8:e1037. doi: 10.7717/peerj-cs.1037. eCollection 2022.
2
TQuery: a context-sensitive temporal query language.TQuery:一种上下文敏感的时态查询语言。
Comput Biomed Res. 1991 Oct;24(5):401-19. doi: 10.1016/0010-4809(91)90016-p.
3
DNS/DANE Collision-Based Distributed and Dynamic Authentication for Microservices in IoT .物联网中基于DNS/DANE冲突的微服务分布式动态认证
Sensors (Basel). 2019 Jul 26;19(15):3292. doi: 10.3390/s19153292.
4
Fuzzy-Based Microservice Resource Management Platform for Edge Computing in the Internet of Things.基于模糊算法的物联网边缘计算微服务资源管理平台
Sensors (Basel). 2021 May 31;21(11):3800. doi: 10.3390/s21113800.
5
Defining and measuring microservice granularity-a literature overview.定义和衡量微服务粒度——文献综述
PeerJ Comput Sci. 2021 Sep 8;7:e695. doi: 10.7717/peerj-cs.695. eCollection 2021.
6
A Blockchain-Based Trusted Edge Platform in Edge Computing Environment.边缘计算环境中基于区块链的可信边缘平台。
Sensors (Basel). 2021 Mar 18;21(6):2126. doi: 10.3390/s21062126.
7
Microservice Security Agent Based On API Gateway in Edge Computing.基于 API 网关的边缘计算中微服务安全代理。
Sensors (Basel). 2019 Nov 10;19(22):4905. doi: 10.3390/s19224905.
8
An adaptive spark-based framework for querying large-scale NoSQL and relational databases.一种适用于查询大规模 NoSQL 和关系型数据库的基于火花的自适应框架。
PLoS One. 2021 Aug 19;16(8):e0255562. doi: 10.1371/journal.pone.0255562. eCollection 2021.
9
MicroShare: Privacy-Preserved Medical Resource Sharing through MicroService Architecture.微分享:通过微服务架构实现隐私保护的医疗资源共享。
Int J Biol Sci. 2018 May 22;14(8):907-919. doi: 10.7150/ijbs.24617. eCollection 2018.
10
Visually defining and querying consistent multi-granular clinical temporal abstractions.直观定义和查询一致的多粒度临床时间抽象。
Artif Intell Med. 2012 Feb;54(2):75-101. doi: 10.1016/j.artmed.2011.10.004. Epub 2011 Dec 15.

本文引用的文献

1
Use of Physiological Data From a Wearable Device to Identify SARS-CoV-2 Infection and Symptoms and Predict COVID-19 Diagnosis: Observational Study.利用可穿戴设备的生理数据识别 SARS-CoV-2 感染和症状并预测 COVID-19 诊断:观察性研究。
J Med Internet Res. 2021 Feb 22;23(2):e26107. doi: 10.2196/26107.
2
Current State of Commercial Wearable Technology in Physical Activity Monitoring 2015-2017.2015 - 2017年身体活动监测中商业可穿戴技术的现状
Int J Exerc Sci. 2018 Jan 2;11(7):503-515. doi: 10.70252/NJQX2719. eCollection 2018.
3
Individual differences in compliance and agreement for sleep logs and wrist actigraphy: A longitudinal study of naturalistic sleep in healthy adults.
睡眠日志和腕部活动记录仪的依从性和一致性的个体差异:一项针对健康成年人自然睡眠的纵向研究。
PLoS One. 2018 Jan 29;13(1):e0191883. doi: 10.1371/journal.pone.0191883. eCollection 2018.
4
Big Data in medical research and EU data protection law: challenges to the consent or anonymise approach.医学研究中的大数据与欧盟数据保护法:对同意或匿名化方法的挑战
Eur J Hum Genet. 2016 Jul;24(7):956-60. doi: 10.1038/ejhg.2015.239. Epub 2015 Nov 11.
5
The Human Brain Project: social and ethical challenges.人类脑计划:社会与伦理挑战
Neuron. 2014 Jun 18;82(6):1212-5. doi: 10.1016/j.neuron.2014.06.001.