
A new business rule has been agreed. How many parts of an application do we have to change to implement it?
A new rule with effects in several places
Consider a hypothetical public transport example: an application checks reported service performance data. For a particular type of discrepancy, an explanation will now be required before approval. Previously, it was optional.
The change sounds manageable. But its implementation depends on where the existing rule lives. If the input form, data import and approval process each check it separately, the same business decision has to be updated in several places. We also need to establish whether all these paths should actually apply the same rule.
Clear responsibilities for business decisions
If the business decision is brought together in a clearly defined part of the application, the different paths can use that check. The interface still has to capture the explanation, and the import still has to handle missing information. A good boundary makes these responsibilities clear; it does not make them disappear.
For me, designing for change means deliberately considering foreseeable changes to business rules in the architecture. Which part decides whether approval can proceed? What information does it need? And which other parts only need to know the result?
Choosing boundaries with their costs in mind
That boundary can sit within a single application. A separate service is another option, but it adds interfaces and operational effort. For the new validation rule, the first question is which approach suits the application and its planned development.
Planning transitions and testing changes
Even a stable interface does not make changes to business rules consequence-free. When a previously optional piece of information becomes mandatory, existing callers or import files may be affected. The transition, error messages and release therefore need to be planned together.
I would assess whether the structure helps by looking at the actual change: can the rule be updated in an understandable place and tested specifically? Which other parts need adapting and testing together?
Additional abstractions take time too and can make the software harder to understand. I would therefore start with foreseeable changes rather than try to anticipate every possible future.