Introduction to Caching Streams
Explore the concept of caching streams in reactive programming using Angular and RxJS 7. Understand the motivation for client-side caching to minimize network requests and improve load times. Learn to implement static and refreshable caching methods for data streams and see how caching enhances performance and user experience in web applications.
We'll cover the following...
About 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’ll start this chapter by defining the caching requirement for the client side and the motivation behind it. Then we’ll learn how to implement this requirement in a reactive way and explore the useful operators in RxJS. After that, we’ll describe a better way to do it using RxJS 7. Finally, we’ll highlight the use cases of caching streams.
Defining the requirement
As we've ...