Summary
In this chapter, we explained various caching concepts in web applications, including their benefits and use cases. We focused on a concrete example in our recipe app, detailed the requirement, and implemented it reactively. Through this, we learned about the behavior of the shareReplay
operator, as well as the alternative implementation – that is, using the share
operator in RxJS 7. Finally, we highlighted how caching can help us when we have heavy side effects in our app.
In the next chapter, we will explore the reactive pattern for bulk operations.