Scaling web applications

As the number of users grow over time, the application needs to scale up to be able to keep up with the load. There are usually two main ways to scale up applications:

  • Vertical scale: This is the simplest scaling. It involves upgrading the server with more resources such as CPU, RAM, HDD, I/O, and more.
  • Horizontal scale: This is more complicated, but also better in the long run. It involves distributing the load across multiple servers instead of just one.
    Scaling web applications

    Figure 1: Example of vertical versus horizontal scaling

Scaling out vertically – one server

The simplest way to deploy an application is to put everything into a single server, ...

Get Web Application Development with MEAN now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.