Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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
Reactive Patterns with RxJS and Angular Signals

You're reading from   Reactive Patterns with RxJS and Angular Signals Elevate your Angular 18 applications with RxJS Observables, subjects, operators, and Angular Signals

Arrow left icon
Product type Paperback
Published in Jul 2024
Publisher Packt
ISBN-13 9781835087701
Length 254 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Lamis Chebbi Lamis Chebbi
Author Profile Icon Lamis Chebbi
Lamis Chebbi
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Part 1:An Introduction to the Reactive World
2. Chapter 1: Diving into the Reactive Paradigm FREE CHAPTER 3. Chapter 2: Walking through Our Application 4. Part 2: A Trip into Reactive Patterns
5. Chapter 3: Fetching Data as Streams 6. Chapter 4: Handling Errors Reactively 7. Chapter 5: Combining Streams 8. Chapter 6: Transforming Streams 9. Chapter 7: Sharing Data between Angular Components 10. Part 3: The Power of Angular Signals
11. Chapter 8: Mastering Reactivity with Angular Signals 12. Part 4: Multicasting Adventures
13. Chapter 9: Demystifying Multicasting 14. Chapter 10: Boosting Performance with Reactive Caching 15. Chapter 11: Performing Bulk Operations 16. Chapter 12: Processing Real-Time Updates 17. Part 5: Final Touches
18. Chapter 13: Testing RxJS Observables 19. Index 20. Other Books You May Enjoy

Boosting Performance with Reactive Caching

Caching data and assets is one of the most efficient ways to improve the user experience of our web applications. It’s a good way to speed up the load times of our web applications and keep the number of network requests to a minimum.

We will start this chapter by defining the caching requirement for our application’s client side and looking at its motivation. Then, we will learn how to implement this requirement reactively using RxJS operators. After that, we will describe a better way to do this using the latest features of RxJS 7. Finally, we will highlight another use case of caching streams, which is for side effects.

In this chapter, we’re going to cover the following main topics:

  • Defining the caching requirement
  • Exploring the reactive pattern to cache streams
  • Highlighting the use of caching for side effects
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