Book Image

JavaScript at Scale

By : Adam Boduch
Book Image

JavaScript at Scale

By: Adam Boduch

Overview of this book

Table of Contents (17 chapters)
JavaScript at Scale
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Scaling constraints


Our applications are constrained by the environments in which they run. This means the hardware on which the client is running, and the browser itself. What's interesting about web applications is that there's also the transmission of the code itself to consider. For example, if we're writing backend code, we can throw more code at any problem we face, and that's not a problem because that code doesn't move around—it runs in one place.

With JavaScript, size matters. There's simply no way around this fact. As a corollary, network bandwidth matters—both for the delivery of our JavaScript artifacts, and our application data from the API.

In this section, we'll address the hard scaling constraints imposed on us in the browser computing environment. As our application grows, we feel the pressure of these constraints more and more. Each of these needs to be considered when planning new features for our application.

JavaScript artifact size

The cumulative size of our JavaScript...