Setup and Theory: Docker and Onion Architecture
This chapter discusses two important building blocks of modern microservices architectures, which will be used in most of the book’s examples, as follows:
- Docker Containers: Docker containers are a virtualization tool that enables your microservices to run on a wide range of hardware platforms, preventing compatibility issues.
- The Onion Architecture: The Onion Architecture confines dependencies from both the user interface (UI) and from the deployment platform in drivers so that the software modules that encode the whole business knowledge are completely independent of the chosen UI, tools, and runtime environment. Moreover, in order to optimize the interaction between domain experts and developers, all domain entities are implemented as classes in the following way:
- Each entity interacts with the remainder of the code only through methods that represent the behavior of all actual domain entities. ...