An Empirical Study on Database Usage in Microservices
Preprint
Abstract
Microservices architectures are an integral part of modern software development. Their adoption brings significant changes to database management. Instead of relying on a single database, a microservices architecture is typically composed of multiple, smaller, heterogeneous, and distributed DBs. In these data-intensive systems, the variety and combination of database categories and technologies play a crucial role in storing and managing data. While data management in microservices is a major challenge, research literature is scarce. We present an empirical study on how databases are used in microservices. On the dataset we collected (and released as open data for future research), considering 15 years of microservices, we examine ca. 1,000 GitHub projects that use databases selected among 180 technologies from 14 categories. We perform a comprehensive analysis of current practices, providing researchers and practitioners with empirical evidence to better understand database usage in microservices. We report 18 findings and 9 recommendations. We show that microservices predominantly use Relational, Key-Value, Document, and Search databases. Notably, 52% of microservices combine multiple database categories. Complexity correlates with database count, with older systems favoring Relational databases and newer ones increasingly adopting Key-Value and Document technologies. Niche databases (e.g., EventStoreDB, PostGIS), while not widespread, are often combined with a mainstream one.Keywords
All Related Versions
This publication has 28 references indexed in Scilit:
- Managing technical debt in a multidisciplinary data intensive software team: An observational case studyJournal of Systems and Software, 2025
- Analyzing the adoption of database management systems throughout the history of open source projectsEmpirical Software Engineering, 2025
- A Feature Dataset of Microservices-Based Systems2024
- How do microservices evolve? An empirical analysis of changes in open-source microservice repositoriesJournal of Systems and Software, 2023
- An Empirical Study of (Multi-) Database Models in Open-Source Projects2021
- An Empirical Study on the Design and Evolution of NoSQL Database Schemas2020
- The pains and gains of microservices: A Systematic grey literature reviewJournal of Systems and Software, 2018
- What’s in a GitHub Star? Understanding Repository Starring Practices in a Social Coding PlatformJournal of Systems and Software, 2018
- Towards a Reference Dataset of Microservice-Based Applications2018
- NoSQL database systems: a survey and decision guidanceComputer Science - Research and Development, 2016