Twelve months ago we converted forty aggregate roots from boilerplate getter methods to PHP 8.4 asymmetric visibility. At the time it felt like an unambiguous cleanup: deleting twenty-four…
A Subscription that had been correctly scoped in 2023 and had acquired a usage counter written thousands of times a day. An aggregate boundary is correct at a…
A Subscription class of nine hundred lines, holding the plan, the billing schedule and the usage record, loaded in full to check whether a feature was enabled. The…
An order aggregate containing its lines, its shipments, its refunds and its notes, loaded in full to change a delivery address. Drawing the boundary by what belongs together…
Transferring stock between two warehouses belongs to neither warehouse, and putting it on one of them makes that one special for no reason. This is the case a…
A billing module everybody agrees should be separate, a team of four, and 88 classes that reference it. The boundary, drawn in code rather than in conversation.