O'Reilly logo

JavaScript at Scale by Adam Boduch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Performance and complexity

With robust failure detection and recovery in place, it's time to turn our attention to the performance and complexity implications they introduce. With any large scale JavaScript application, nothing is free—with every gain, there's a new scaling challenge. Failure handling is just one of those gains.

The two closely related scaling factors related to failure handling are performance and complexity. Our software fails in interesting ways, and there's no elegant way to handle them, resulting in complex implementations. Complex code is generally not very good for performance. So we'll start by looking at what makes our exception-handling code slow.

Exception handling

When we handle exceptions in JavaScript, we generally ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required