The shortest useful architecture note I know:
Domain == Departments. A domain is a big area of responsibility in a business.
Module == Features/Tools. A module is the actual thing built to support that department.
That is the whole map. It sounds obvious until you are three months into a codebase where the folder structure describes the framework instead of the business.
Why it helps
When the map matches the business, new people can find things. A support issue lands in a domain. A new feature has an obvious home. A boundary conversation becomes a conversation about ownership, not file names.
When the map does not match the business, every change is an archaeology project. You learn the framework’s conventions and then spend the rest of your time learning the accidental ones.
The practical test
Ask a new engineer to find where refunds are handled. Ask a product manager which department owns the feature. If the answers do not point to the same area of the codebase, the architecture is telling a different story than the company.
That is usually the first thing worth fixing. Not the framework. Not the database. The map.
Thanks for reading.
Written by Jim Merioles / September 1, 2025