Join a community of 1000+ .NET developers: https://www.patreon.com/milanjovanovic
Master the Clean Architecture: https://bit.ly/3PupkOJ
The ultimate Modular Monolith blueprint: https://bit.ly/3SXlzSt
Caching is one of the simplest techniques to significantly improve your application's performance. It's the process of temporarily storing data in a faster access location. You will typically cache the results of expensive operations or frequently accessed data. ASP.NET Core offers several types of caches, such as IMemoryCache, IDistributedCache, and the upcoming HybridCache (.NET 9).
In this video, I'll show you how to implement the most popular caching pattern - the Cache-Aside pattern. We will also explore a potential solution for the cache stampede problem.
Caching in ASP.NET Core: Improving Application Performance
https://www.milanjovanovic.tech/blog/caching-in-aspnetcore-improving-application-performance
Check out my courses:
https://www.milanjovanovic.tech/courses
Read my Blog here:
https://www.milanjovanovic.tech/blog
Join my weekly .NET newsletter:
https://www.milanjovanovic.tech
Chapters
0:00 What is the Cache-Aside pattern?
1:43 Implementing Cache-Aside in .NET
8:10 Making the implementation reusable
13:23 The Cache Stampede problem
17:32 Pros and Cons of Caching