Scaling Services Up and Down
As the number of requests coming into your application increases or decreases, there will be a need to scale the infrastructure. We have recently worked with node replicas running the same WordPress installation we made.
Note
That is a very basic example of a production-level setup. Ideally, we would need a few more manager nodes and replicas, but since we are running a demo, this will be sufficient.
Scaling involves both the increase and decrease of resources depending on an application's traffic.
Scaling Our Database Service
We will scale our database service as an example of how to scale services. In a real-world scenario, cloud services such as Google Cloud Platform and Amazon Web Services may have automatic scaling services defined, where a number of replicas are created and traffic is distributed across the replicas through a service known as load balancing. We will dig deeper into that in the next activity. First, we understand how scaling works from...