O'Reilly logo

Web Application Development with MEAN by Robert Onodi, Adrian Mejia, Amos Q. Haviv

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required