Conclusion: Mapping Between Boundaries

Let's recap mapping between boundaries and how it can help build maintainable software.

How does this help me build maintainable software?

Incoming and outgoing ports act as gatekeepers between the layers of our application and define how the layers communicate with each other and also decide if and how we map between layers.

With narrow ports in place for each use case, we can choose different mapping strategies for different use cases and even evolve them over time without affecting other use cases, thus selecting the best strategy for a certain situation at a certain time.

Get hands-on with 1400+ tech skills courses.