Types of Scaling
Scaling is the ability of the system to handle the increasing amount of workload. So the system should be up and running even when the load on the system increases. There are two types of scaling :
- Horizontal Scaling: In this more servers are used to distribute the workload across the servers or containers is called horizontal scaling.
- Vertical Scaling: In this more resources such as CPU, and memory are added to the same server to handle the increasing workload is called vertical scaling.
How to Use Docker Images For Scaling Applications?
Docker image is a lightweight piece of software that includes everything that your application needs to run, it includes code, software packages, and libraries. Docker images are built using a Docker file which includes the instruction for creating the image. The Docker image is built on top of a base image which is specified on top of the Dockerfile.
Docker images are typically stored in the docker registry such as the DockerHub, or Artifactory. Dockerfile is a source code for Docker images.