Caching in the .NET Stack: Inside-Out
A comprehensive look at caching throughout the .NET stack, covering WCF, Web API, Web Forms and MVC. You'll learn how and where to add caching, and you'll see the huge performance benefits you can expect.
What you'll learn
In this course we look at caching as a tool to improve your solution's performance and capacity. Using a distributed demo solution, we add caching inside the solution using a simple AOP approach, where you'll learn how to use different caches: the .NET MemoryCache, NCache Express, AppFabric Caching, and memcached. We use some custom caches based on Azure Table Storage and disk shares, and you'll see how to set up ASP.NET Output Caching to use different solution caches. You'll learn how to add caching outside the solution with HTTP response headers so consumers of your website and API can cache solution resources locally, and reduce traffic to your servers. Finally, you'll learn how to analyze items to configure them for maximum cache effectiveness, how to control items in caches, and how to measure the performance improvements you get from caching.
Table of contents
- Module Introduction 1m
- A Tour of The Demo Solution 3m
- Caching and Scalability 2m
- Manually Caching Inside The Solution 4m
- Brief Introduction to Aspect Oriented Programming 2m
- Caching with AOP 3m
- Recap of Caching With AOP 1m
- A Deep Dive of The CacheCallHandler 4m
- Recap of The CacheCallHandler 2m
- Alternative Usage of AOP 5m
- A Decision Matrix for Cache Items 3m
- Applying The Matrix to Items in The Demo Solution 5m
- Module Summary 2m
- Introduction and Adding Items to Cache 2m
- Adding Items: Demo 2m
- Removing Cache Items Manually 5m
- Removing Cache Items Automatically 4m
- Cache Expiration: Demo 3m
- Cache Expiration: Analysis 2m
- Disabling The Cache: Demo 2m
- Disabling The Cache: Analysis 2m
- Preloading The Cache: Demo 3m
- Preloading The Cache: Analysis 3m
- Measuring to Enable Inspect and Adapt 3m
- Verifying the Cache Works with Unit Tests 4m
- Verifying Features Work with Integration Tests 3m
- Measuring Speed and Capacity with Performance Tests 3m
- Performance Improvements in the Demo Solution 4m
- Instrumenting Caches with Performance Counters 3m
- Checking Runtime Performance with Perfmon 3m