Aletheia: Automated Detection of Data Integrity Violations in Microservices
Mafalda Sofia Ferreira, João Ferreira Loff, João Garcia, Rodrigo Rodrigues
Abstract
The decomposition of applications into microservices results in data being stored across heterogeneous systems, with data schemas partitioned and managed by separate services. As the size and complexity of microservice deployments grow, the consistency of data associations at the application level can be overlooked, and it becomes challenging to manually identify data integrity violations.
In this paper, we present a systematic approach for identifying semantic violations in microservice ecosystems, namely operations and service interactions that break data integrity. We formalize these violations by leveraging the Entity-Relationship model and relational algebra to characterize problematic operation patterns across distributed services. We then introduce Aletheia, a static analysis tool that operationalizes this framework, using the static single assignment (SSA) representation to track data flow and a novel abstract call graph to detect integrity violations. We evaluate Aletheia on 7 open-source applications, detecting 46 previously unreported integrity violations, and use production-scale synthetic applications to demonstrate scalability to large call graphs with up to 500 microservices.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 14d56294-eb9b-43e6-a7e6-b2127604a657Builds on5
- Data Management in Microservices: State of the Practice, Challenges, and Research DirectionsRodrigo N. Laigner, Yongluan Zhou, Marcos Antonio Vaz Salles, Yijian Liu et al.VLDB 2021 · 108 citations
- Metastable Failures in the WildLexiang Huang, Matthew Magnusson, Abishek Bangalore Muralikrishna, Salman Estyak et al.OSDI 2022 · 38 citations
- FlightTracker: Consistency across Read-Optimized Online Stores at FacebookXiao Shi, Scott Pruett, Kevin Doherty, Jinyu Han et al.OSDI 2020 · 23 citations
- Blueprint: A Toolchain for Highly-Reconfigurable Microservice ApplicationsVaastav Anand, Deepak Garg, Antoine Kaufmann, Jonathan MaceSOSP 2023 · 7 citations
- Antipode: Enforcing Cross-Service Causal Consistency in Distributed ApplicationsJoão Ferreira Loff, Daniel Porto, João Garcia, Jonathan Mace et al.SOSP 2023 · 5 citations
Related papers
- Demystifying and Checking Silent Semantic Violations in Large Distributed SystemsChang Lou, Yuzhuo Jing, Peng HuangOSDI 2022 · 8 citations
- Detecting Taint-Style Vulnerabilities in Microservice-Structured Web ApplicationsFengyu Liu, Yuan Zhang, Tian Chen, Youkun Shi et al.S&P 2025
- Lifting the veil on Meta's microservice architecture: Analyses of topology and request workflowsDarby Huye, Yuri Shkuro, Raja R. SambasivanUSENIX ATC 2023 · 65 citations
- Twin Graph-Based Anomaly Detection via Attentive Multi-Modal Learning for Microservice SystemJun Huang, Yang Yang, Hang Yu, Jianguo Li et al.ASE 2023 · 32 citations
- Bridge the Islands: Pointer Analysis for Microservice SystemsTeng Zhang, Yufei Liang, Ganlin Li, Tian Tan et al.ISSTA 2025 · 2 citations
