Search⌘ K
AI Features

Why Even Care About Assembly?

Explore why assembling application components correctly matters in hexagonal architecture. Understand how dependency injection keeps business logic isolated and maintains proper dependency directions. Learn the role of a configuration component that wires web adapters, use cases, and persistence adapters into a functional application while supporting testability and maintainability.

Introduction

Now that we have implemented some use cases, web adapters, and persistence adapters, we need to assemble them into a working application. As discussed in the chapter “Organizing Code”, we rely on a dependency injection mechanism to instantiate our classes and wire them together at startup time. In this chapter, we’ll discuss some approaches of how we ...