Summary
In this chapter, we reviewed some very important concepts to fundamentally improve the architecture and performance of our application. Web workers is an amazing technology that allows web applications to take advantage of modern hardware architectures and modern operating systems. From a fixed point of view, multithreading using web workers involves little additional effort and complications, and the gains are highly rewarding. We also saw how to make use of workers to access network services as well as the local persistent database provided by the browser (IndexedDB). We learned about two more design patterns to implement a scalable architecture for our application and tested the concepts and implementations through simple components and services. The use of web workers marks a significant difference in the performance and execution of a well-designed web application. In the next chapter, we will look into tools and techniques to test our code automatically, ensuring the...