3

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.

The Single Responsibility Principle

Everyone in software development probably knows the Single Responsibility ...

Get Get Your Hands Dirty on Clean Architecture - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.