Patterns of multi-container composition for service orchestration with Docker Compose
Authors
Kalvin Eng and Abram Hindle and Eleni Stroulia
Venue
- Empirical Software Engineering
- 2024
- 1–41
- Publisher Link
- DOI:https://doi.org/10.1007/s10664-024-10462-8
Abstract
Software design patterns present general code solutions to common software design problems. Modern software systems rely heavily on containers for running their constituent service components. Yet, despite the prevalence of ready-to-use Docker service images ready to participate in multi-container service compositions of applications, developers do not have much guidance on how to compose their own Docker service orchestrations. Thus in this work, we curate a dataset of successful projects that employ Docker Compose as an orchestration tool to run multiple service containers; then, we engage in qualitative and quantitative analysis of Docker Compose configurations. The collection of data and analysis enables the identification and naming of repeating multi-container composition patterns that are used in numerous successful open-source projects, much like software design patterns. These patterns highlight how software systems are orchestrated in the real-world and can give examples to anybody wishing to compose their own service orchestrations. These contributions also advance empirical research in software engineering patterns as evidence is provided about how Docker Compose is used.
Bibtex
@article{eng2024EMSE-docker-compose,
abstract = {Software design patterns present general code solutions to common software design problems. Modern software systems rely heavily on containers for running their constituent service components. Yet, despite the prevalence of ready-to-use Docker service images ready to participate in multi-container service compositions of applications, developers do not have much guidance on how to compose their own Docker service orchestrations. Thus in this work, we curate a dataset of successful projects that employ Docker Compose as an orchestration tool to run multiple service containers; then, we engage in qualitative and quantitative analysis of Docker Compose configurations. The collection of data and analysis enables the identification and naming of repeating multi-container composition patterns that are used in numerous successful open-source projects, much like software design patterns. These patterns highlight how software systems are orchestrated in the real-world and can give examples to anybody wishing to compose their own service orchestrations. These contributions also advance empirical research in software engineering patterns as evidence is provided about how Docker Compose is used.},
accepted = {2024-02-19},
author = {Kalvin Eng and Abram Hindle and Eleni Stroulia},
authors = {Kalvin Eng and Abram Hindle and Eleni Stroulia},
code = {eng2024EMSE-docker-compose},
day = {03},
doi = {https://doi.org/10.1007/s10664-024-10462-8},
funding = {NSERC Discovery, CIHR},
institution = {University of Alberta},
journal = {Empirical Software Engineering},
month = {May},
number = {65},
pages = {1--41},
payurl = {https://link.springer.com/article/10.1007/s10664-024-10462-8},
role = { Researcher / Co-author},
title = {Patterns of multi-container composition for service orchestration with Docker Compose},
type = {article},
url = {http://softwareprocess.ca/pubs/eng2024EMSE-docker-compose.pdf},
venue = {Empirical Software Engineering},
volume = {29},
year = {2024}
}