Slicing Port Interfaces
Learn how to slice port interfaces.
We'll cover the following...
One question that comes to mind when implementing services is how to slice the port interfaces that define the database operations available to the application core.
It’s common practice to create a single repository interface that provides all database operations for a certain entity as shown in the figure below.
Broad ports
Each service that relies on database operations will then have a dependency to this single “broad” port interface, even if it uses only a ...