Architecture & Boundaries
Build Clean, Onion, and Hexagonal boundaries, inspect real project dependencies, and distinguish local models from storage and cluster guarantees.
- Dependency direction versus runtime calls
Inject an inner-owned port and verify the real project reference graph.
Architecture & Boundaries · 16 min - Clean entities use cases and presenters
Keep domain arithmetic separate from orchestration and text presentation.
Architecture & Boundaries · 16 min - Onion policy at the center
Make an outer discount implementation depend on a domain-owned capability.
Architecture & Boundaries · 16 min - Hexagonal inbound and outbound ports
Separate the driving operation from the capacity adapter it drives.
Architecture & Boundaries · 16 min - Aggregate invariants and domain services
Protect basket state and keep cross-entity policy independent of formatting.
Architecture & Boundaries · 16 min - Repository and unit-of-work tradeoffs
Model an explicit staged session without inventing EF Core behavior.
Architecture & Boundaries · 16 min - CQRS without a mandatory mediator
Give commands and queries separate contracts in one process and one state model.
Architecture & Boundaries · 16 min - Vertical slices alongside dependency boundaries
Group feature behavior without turning folders into architectural enforcement.
Architecture & Boundaries · 16 min - Validation results across boundaries
Return a typed decision and keep presentation outside domain policy.
Architecture & Boundaries · 16 min - Strategy selection and explicit factories
Choose a pricing policy visibly rather than hiding global service lookup.
Architecture & Boundaries · 16 min - Decorators and adapters solve different problems
Translate a legacy API then add an observable boundary concern by composition.
Architecture & Boundaries · 16 min - Domain events and the outbox commit boundary
Create an immutable transition and publish intent through one persistence port.
Architecture & Boundaries · 16 min - Modular monolith contracts and private state
Expose a module facade while hiding its implementation behind assembly access rules.
Architecture & Boundaries · 16 min - Check actual project dependency direction
Compare a declared graph fixture with a checker that reads real project files externally.
Architecture & Boundaries · 16 min - Local singleton state is not cluster coordination
Recognize a state-scope anti-pattern without pretending two objects are a deployed cluster.
Architecture & Boundaries · 16 min - Capstone a bounded reservation architecture
Compose domain transitions, application ports, in-memory persistence, and graph checks honestly.
Architecture & Boundaries · 16 min