Caching in .NET Core for Fun

Caching in .NET Core for Fun

Ever wonder how you might use caching to improve the performance and speed of your website? Are you looking to improve the user experience for your web application? We'll discuss the ins and outs of caching in .NET Core, when and where to apply a caching strategy, and considerations for each scheme. If time (and wifi) allow we'll look into options available in Azure.

50fef09b0fc80a3c5e28f6a7352bacdf?s=128

John Callaway

April 04, 2017
Tweet

Transcript

  1. Caching in .NET Core FOR FUN AND PROFIT

  2. John Callaway • Professional developer since 1999 • Specialize in

    web technologies • Primarily with line-of-business • Enjoy learning new tech • Microsoft MVP
  3. What is caching? In computing, a cache is a hardware

    or software component that stores data so future requests for that data can be served faster; the data stored in a cache might be the result of an earlier computation, or the duplicate of data stored elsewhere.
  4. Types of caching • Response or Client Caching • OutputCache

    • Memory Cache • Distributed Cache using Redis • Others?
  5. Benefits of caching • Save server roundtrips • Decrease response

    time • Improve performance • Save money?
  6. Best practices • Cache early, cache often • Caches should

    be relatively small • Expire Cache
  7. Let’s see some code!

  8. Caching in .NET Core John Callaway @matsubonsai www.1north.com

  9. Appendix Response Caching and In Memory Caching in ASP.NET Core

    1.0 https://www.codeproject.com/articles/1111260/response-caching-and-in-memory-caching-in-asp-net Introduction to in-memory caching in ASP.NET Core https://docs.microsoft.com/en-us/aspnet/core/performance/caching/memory Distributed Cache using Redis and ASP.NET Core https://www.codeproject.com/Articles/1161890/Distributed-cache-using-Redis-and-ASP-NET-Core