From the course: Practical Application Architecture with Entity Framework Core

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Caching

Caching

- [Instructor] When writing a data driven application, certain queries can arise that return a lot of data and do so often. If this becomes a bottleneck, adding some caching can significantly improve the performance of the application. Let's explore how caching can fit in with our application's architecture. The first option is simply not caching. Caching is not a cure all, it comes with some significant caveats, and really shouldn't be added until it is necessary. Adding the complications of caching to every solution doesn't mean that every app will perform better. It just means that every app has to deal with the problems that caching can create. It is more code that can have bugs in it. The displayed data might not match the database, and it can use a lot of application memory. After all that, it might not even help that much. Before starting to code, consider what layer the caching belongs at. It will be different based on the application and the use case. In our case, we'll add…

Contents