Variations
Understand the variations in Docker usage for microservice deployment, including cluster management with Kubernetes and Docker Swarm. Learn about alternatives such as direct Docker installation on servers, traditional virtualization, and PaaS solutions. Discover how Docker schedulers handle fail-safety and load balancing for scalable and reliable microservices.
We'll cover the following...
There are not really any fundamental alternatives to Docker:
-
Virtualization has too much overhead.
-
Processes are not sufficiently isolated. The required libraries and runtime environments for all microservices must be installed in the operating system. This can be difficult because each process occupies one port, and therefore the allocation of ports must be coordinated.
-
Other container solutions such as rkt are far less common.
Clusters #
For production, applications should run in a cluster. Only in this way can the system be scaled across several servers and secured against the failure of individual servers.
Docker Compose can use Docker Swarm Mode for cluster management ...