Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering MeteorJS Application Development

You're reading from   Mastering MeteorJS Application Development MeteorJS makes full-stack JavaScript Application Development simple – Learn how to build better modern web apps with MeteorJS, and become an expert in the innovative JavaScript framework

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781785282379
Length 298 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Jebin BV Jebin BV
Author Profile Icon Jebin BV
Jebin BV
Arturas Lebedevas Arturas Lebedevas
Author Profile Icon Arturas Lebedevas
Arturas Lebedevas
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Building a MeteorJS Web Application FREE CHAPTER 2. Developing and Testing an Advanced Application 3. Developing Reusable Packages 4. Integrating Your Favorite Frameworks 5. Captivating Your Users with Animation 6. Reactive Systems and REST-Based Systems 7. Deploying and Scaling MeteorJS Applications 8. Mobile Application Development 9. Best Practices, Patterns, and SEO Index

Scaling a MeteorJS application


Whatever we have discussed is good for a single instance application. If our application grows with a bigger user base and if the traffic is increasing, we obviously have to scale the system. Most of the time, scaling can be done horizontally, which means we will add more instances and then route the traffic to instances having less load at the moment. With some scaling solutions such as meteor cluster, we can scale vertically by adding more cores to the server.

Let's see in detail how Nginx and meteor cluster help us in scaling our application.

Scaling with Nginx

We have seen how to use Nginx while doing MDM setup. Now, let us see how to use it to scale MeteorJS applications. It is good to install the latest Nginx that supports WebSockets. We are going to use Nginx to be a load balancer, which will redirect the requests to the application instances based on the load in each instance. All we need to do is change the Nginx configuration file to accommodate the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image