How to Organize the Code in the Ports and Adapters Architecture
In this article, we’ll have a look at how to separate an application into different modules so that it can be developed and tested in isolation of any external dependencies. As a result, we’ll obtain loosely coupled components where things like database and communication protocol can easily be replaced without any changes in the domain logic. First of all, let’s introduce a user story so that the domain logic of the example will be clear from the start: ...