Applying SOLID on a hexagonal architecture system
To see how each SOLID principle is applied, we will go back to the topology and inventory system we have developed throughout the book. Let’s start by seeing how the SRP can be applied in the topology and inventory system.
Applying the SRP
Just to recap, the topology and inventory system manages network resources such as routers and switches. Such a system is suited for telecommunication or Internet Service Provider (ISP) companies that want to keep an inventory of the network resources they use to serve their customers.
In the topology and inventory system, we have core and edge routers. Core routers handle high-load network traffic from one or more edge routers. Edge routers are used to handle traffic from end users. Edge routers connect to network switches.
Consider a scenario where core and edge routers change locations. For example, a core router that is now localized in France needs, for some reason, to be re...