
Milan Jovanović · 8 min readC# & .NET
How to Tell If Two Modules Should Be One
Learn how to evaluate whether two parts of a .NET monolith should be merged into a single module by applying three practical checks—transaction scope, read patterns, and change frequency—and enforce boundaries with ArchUnitNET tests and PostgreSQL role‑based schema isolation.
- Shared transactions across modules indicate they belong together
- Frequent live reads or commits touching both modules suggest merging
- Combine ArchUnitNET namespace rules with per‑module DB roles to catch boundary violations