Search papers, labs, and topics across Lattice.
This paper investigates the phenomenon of dependency concentration in microservice architectures through a detailed case study of a product with 267 microservices, revealing a structural pattern akin to a black hole. By analyzing compile-time, run-time, and task dependencies, the authors identify a core of highly interdependent services surrounded by increasingly entangled and lightly connected regions. The proposed dependency black hole theory not only elucidates how these dependencies form and evolve but also offers actionable insights for managing service interdependencies to mitigate risks associated with dependency magnets.
Dependency concentration in microservices mirrors a black hole, revealing critical insights into service interdependencies that could jeopardize system evolution.
Microservice architectures promise independent evolution through loose coupling, yet large systems often exhibit strong dependency concentration around a small set of services. In an exploratory industrial case study of a product composed of 267 microservices, we triangulated multiple dependency signals -- compile-time, run-time, and task dependencies -- and iteratively validated our interpretations with practitioners. We observed a recurring macro-structure in the dependency network that resembles a black hole: a dense core of dependency magnets, a transitional region of services increasingly entangled with the core, and an outer region of lightly connected services. Based on these observations, we propose the dependency black hole theory, mapping the network to the black hole anatomy of a singularity, an event horizon, and an accretion disk, and formulating three hypotheses about how dependency concentration emerges and evolves at scale. The theory provides an explanatory lens for reasoning about dependency growth, identifying services at risk of becoming dependency magnets, and motivating governance interventions. We outline practical implications and directions for longitudinal and multi-case validation.