ARCHOS 525 BLUEPRINT · /d/dgm_code-factory-builder-and-di-container
Factory, Builder & Dependency Injection Composition Root
6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_code-factory-builder-and-di-container) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_code-factory-builder-and-di-container)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_code-factory-builder-and-di-container" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Factory, Builder & Dependency Injection Composition Root — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR client_0["Process Boot"] n1_1["Composition Root"] n2a_2["Fluent Builder"] n2b_3["Abstract Factory"] n3_4["Running App Graph"] downstream_5["Downstream & OTel"] client_0 -->|"1. Wire graph · DI"| n1_1 n1_1 -->|"2a. Build cfg · Builder"| n2a_2 n1_1 -->|"2b. Pick impl · Factory"| n2b_3 n2a_2 -->|"3a. Serve · Runtime"| n3_4 n2b_3 -->|"3b. Merge · RAM"| n3_4 n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5
COMPONENT STACK (6)
- Process BootSTATELESSConfig & Env Vars
- Composition RootSTATELESSSingle place wiring real adapters
- Fluent BuilderSTATELESSValidates invariants on .build
- Abstract FactorySTATELESSSelects runtime impl by config
- Running App GraphSTATELESSImmutable injected dependencies
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- Process Boot → Composition Root (Wire graph)[DI]
- Composition Root → Fluent Builder (Build cfg)[Builder]
- Composition Root → Abstract Factory (Pick impl)[Factory]
- Fluent Builder → Running App Graph (Serve)[Runtime]
- Abstract Factory → Running App Graph (Merge)[RAM]
- Running App Graph → Downstream & OTel (Emit /)[OTLP/API]