Scaling the SPA

I want to conclude with a few ideas about scaling the application. Scaling an application is a bit of a black art, but you do want to be prepared should you build out an application and it gets very popular very fast.

One of the really nice things about using PaaS tools is that they simplify scaling significantly.

Scaling the database

There are a number of options and considerations for scaling the database. You can see this just by looking at the different packages offered by MongoLab. MongoDB itself supports sharding and replication, as it was built for scaling.

Concerns about scaling include the size of the database - how much storage, and performance - usually a factor of RAM or using dedicated clusters.

MongoLab and other providers ...

Get Mastering JavaScript Single Page Application Development 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.