Production architecture for scaling NodeJS

So far, we have seen some different server setups and scaling concepts. In this section, we are going to explain how to incrementally scale a production application.

Phase 0 – one server

This server is usually used in development and low-traffic production applications. It starts with all the components in the same server:

Phase 0 – one server

Figure 7: Single server setup

This is the simplest setup possible, where everything (database, webserver, or an application) is on the same server.

Phase 1 – multiple application instances in one server

The next step is to add an additional application instance to be able to perform zero-downtime ...

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.