Comparing Hexagonal Architecture with Layered Architecture
Hexagonal architecture is just one of several software architecture approaches. Among these approaches, one that stands out is the so-called layered architecture, which has been widely used in enterprise software development for years. Its vast adoption is because it’s reasonably simple to apply the layered architecture principles and also because this is one of the patterns that may naturally emerge when there is no conscious decision made regarding which architectural approach to use for new projects.
Understanding layered architecture and being aware of its differences when comparing it to hexagonal architecture is good to help us make more informed decisions regarding which software architecture approach to use when starting or refactoring a software project. That’s why in this chapter, we will begin by reviewing layered architecture ideas. Then, based on those ideas, we will implement a simple application...