Search⌘ K

Slicing Persistence Adapters

Explore the concept of slicing persistence adapters in Hexagonal Architecture to enhance software flexibility and maintainability. Understand how to implement one adapter per domain aggregate or bounded context, enabling clearer separation of concerns and better isolation of persistence logic.

In the previous lesson, we have seen a single persistence adapter class that implements all persistence ports. There is no rule, however, that forbids us to create more than one class as long as all persistence ports are implemented.

We might choose, for instance, to implement one persistence ...