Chapter 8. Scaling Up – Ensuring Performance in Complex Applications

In this chapter, we will look at the most common performance issues in Backbone, as well as how to avoid them. In particular, we'll cover the following:

  • CPU-based performance issues
  • Bandwidth-based performance issues related to content size
  • Bandwidth-based performance issues related to the number of requests
  • Memory-based performance issues

Backbone and performance

At its core, Backbone is just a JavaScript library, and as such, it doesn't add any new performance challenges that weren't already in JavaScript to begin with. In fact, the creators of Backbone have taken great care to make the library perform well, and in performance comparisons with rival libraries, Backbone typically comes out ahead, if not on top.

However, while Backbone itself doesn't create performance issues, it does enable entirely new ways of creating web applications, and because such applications can be far more complex than traditional websites, a whole new realm of potential performance issues is exposed. In this chapter, we will explore these issues, as well as their underlying technical details, and address ways to avoid or mitigate them.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.95.7