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
JavaScript at Scale

You're reading from   JavaScript at Scale Build web applications that last, with scaling insights from the front-line of JavaScript development

Arrow left icon
Product type Paperback
Published in Jul 2015
Publisher
ISBN-13 9781785282157
Length 266 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Adam Boduch Adam Boduch
Author Profile Icon Adam Boduch
Adam Boduch
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Scale from a JavaScript Perspective 2. Influencers of Scale FREE CHAPTER 3. Component Composition 4. Component Communication and Responsibilities 5. Addressability and Navigation 6. User Preferences and Defaults 7. Load Time and Responsiveness 8. Portability and Testing 9. Scaling Down 10. Coping with Failure Index

Summary


This chapter introduced us to the various failure modes of our large scale JavaScript applications. The fail-fast mode means that once we detect a problem, we stop everything right away, in an effort to prevent further damage. This is often desirable when a critical component of our application fails.

Fault tolerance is an architectural property that means the system is capable of detecting errors, and preventing them from disrupting regular operation. In a JavaScript context, this usually means catching exceptions and preventing them from disrupting other components. There're several ways that a component can recover from an error, including retrying an operation, or restarting itself, to flush out bad states.

Error handling adds to the complexity of our code, and has performance implications if not handled with care. To avoid these, we have to aim for simple components that don't manipulate state, and avoid excessive exception handling. Error messages can help both programmers and...

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