Inverting Dependencies
After the talk about layered architecture in the previous chapter, you’re right to expect this chapter to discuss an alternative approach. We’ll start by discussing two of the SOLID1 principles and then apply them to create a Clean or Hexagonal Architecture that addresses the problems of a layered architecture.
1 SOLID stands for Single Responsibility Principle, Open-Closed Principle, Liskov Substitution Principle, Interface Segregation Principle, and Dependency Inversion Principle. You can read more about these Principles in Clean Architecture by Robert C. Martin or on Wikipedia at https://en.wikipedia.org/wiki/SOLID.