Upgrade to Pro — share decks privately, control downloads, hide ads and more …

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.

John Callaway

April 04, 2017
Tweet

More Decks by John Callaway

Other Decks in Programming

Transcript

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

    web technologies • Primarily with line-of-business • Enjoy learning new tech • Microsoft MVP
  2. 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.
  3. Types of caching • Response or Client Caching • OutputCache

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

    time • Improve performance • Save money?
  5. 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