← Files AI Software ArchitectARCHIVED FILE
skills/ai-software-architect/references/architecture-modular-monolith.md
1.11 KB · Oct 3, 2026 · 06:33 UTC
<!-- SPDX-FileCopyrightText: 2026 Leonardo Muffato (AUTOSOFT Engineering - www.autosoft-engineering.de) | SPDX-License-Identifier: MIT --> # Modular Monolith ## Intent Deploy one application while enforcing cohesive modules and explicit internal boundaries. ## Problem and forces Teams need domain separation without distributed-system cost. ## Applicability Use when one deployment and transaction boundary fit scale and team autonomy needs. ## When not to use Avoid when independently required deployment, isolation, ownership, or scaling is proven. ## Benefits Simpler operations and consistency while preserving future seams. ## Liabilities Weak enforcement can decay into a tightly coupled monolith; deployment remains shared. ## Implementation considerations Define module APIs, data ownership, dependency rules, and boundary tests. ## Credible alternatives Layered monolith, vertical slices, service-oriented architecture. ## Related patterns Hexagonal Architecture, Dependency Inversion, Transactional Outbox. ## Architecture interview questions Which modules need real autonomy, and which distributed costs are justified today?
SHA-256: 60313d2c2e17a44651bf08a72ebbe22384e61f50b4cc7140bd1d88a22d3b3466