12

Enforcing Architecture Boundaries

We talked a lot about architecture in previous chapters and it feels good to have a target architecture to guide us in our decisions on how to craft code and where to put it.

In every above-playsize software project, however, architecture tends to erode over time. Boundaries between layers weaken, code becomes harder to test, and we generally need more and more time to implement new features.

In this chapter, we’ll discuss some measures that we can take to enforce the boundaries within our architecture and thus fight architecture erosion.

Boundaries and dependencies

Before we talk about different ways of enforcing architecture boundaries, let’s discuss where the boundaries lie within our architecture and ...

Get Get Your Hands Dirty on Clean Architecture - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.