Book Image

Angular Design Patterns

By : Mathieu Nayrolles
Book Image

Angular Design Patterns

By: Mathieu Nayrolles

Overview of this book

This book is an insightful journey through the most valuable design patterns, and it will provide clear guidance on how to use them effectively in Angular. You will explore some of the best ways to work with Angular and how to use it to meet the stability and performance required in today's web development world. You’ll get to know some Angular best practices to improve your productivity and the code base of your application. We will take you on a journey through Angular designs for the real world, using a combination of case studies, design patterns to follow, and anti-patterns to avoid. By the end of the book, you will understand the various features of Angular, and will be able to apply well-known, industry-proven design patterns in your work.
Table of Contents (9 chapters)

Summary

Operating Angular applications can be complex, because it is relatively hard to observe our applications when they are running. While observing backend applications is straightforward, because we have access to the running environment, the techniques we are used to cannot be applied directly. In this chapter, we saw how to have an Angular application monitor itself by using collection performance metrics, custom metrics, and logs, and applied all of this automatically by using aspect-oriented programming.

While the techniques exposed in this chapter can provide 100% observability of your applications, they have also some drawbacks. Indeed, if your applications are popular, you will be overcharging your backend infrastructure not only to serve your pages and answer your API calls, but to accepts logs and metrics. Another drawback is that ill-intentioned people could feed...