Interfaces (aka ports) are the part of the application layer. But their implementation is the part of adapters layer.
The application layer dictates the requirements for the third-party services. Since the ports are behavior contracts they are also determined by the application layer.
Great Article Alex!
I have one question.
I believe that Clean Architecture has the idea of "designing so that the outer layers depend on the inner layers".
When I look at the source code, I see that the Application Business Rules depend on the Interfase Adapters.
Thank you! ^_^
Interfaces (aka ports) are the part of the application layer. But their implementation is the part of adapters layer.
The application layer dictates the requirements for the third-party services. Since the ports are behavior contracts they are also determined by the application layer.
There is a post I refer to in the text:
…It explains this specificity in more detail :–)
Thanks for answering!
I'll read the article too!