# Containers: Who Does the Handing Out

Once every class asks for what it needs, someone has to make the parts and hand them out; doing it in one place at the start of the app (the composition root) keeps it from being copied everywhere, and a container automates that place, with lifetimes that say whether a part is made once for the app, once per request, or new every time.

![Cheat sheet: Containers: Who Does the Handing Out](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/8209ad5f0f364ad7ac57f40ebf2adf84.webp)

- Category: Data Structures
- Level: Journeyman
- Tags: Composition Root, Dependency Injection, Inversion of Control Container, OOP, Service Lifetime, software-development
- Author: Gregor Dzierzon
- Updated: November 17, 2026

Source: https://www.ask-codey.com/cheat-sheets/dp-di-containers-cheat-sheet
