Summary
The principles of good software design apply to all levels. In the same way that we want to write readable code, and for that we need to keep in mind the intention-revealing aspects of the code, the architecture also has to express the intent of the problem it is trying to solve.
All these ideas are interconnected. The same intention revealing that ensures our architecture is defined in terms of the domain problem also leads us to abstract details as much as possible, create layers of abstraction, invert dependencies, and separate concerns.
When it comes to reusing code, Python packages are a great and flexible option. Criteria such as cohesion and the single responsibility principle are the most important considerations when deciding to create a package. In line with having components with cohesion and few responsibilities, the concept of microservices comes into play, and for that, we have seen how a service can be deployed in a Docker container starting...