Objective 1.5: Design a caching strategy Flashcards
What is the purpose of using Caching?
Caching is a basic application development strategy to help improve performance.
what is the VaryByParam parameter for?
VaryByParam stores a different version of the output based on a different parameter collection that was sent in for the action call.
what is the Location parameter for?
The Location qualifier gives direction to where caching takes place.
The default value is Any, but Client, Downstream, Server, and ServerAndClient are other options available when setting the cache location.
what is the NoStore parameter for?
NoStore is used when caching should be switched off
what is the OutputCache attribute for?
The OutputCache attribute works well for caching an entire page.
what is Donut Caching?
Donut caching is a server-side technology that caches an entire page other than the pieces of dynamic content—the donut holes.
Does MVC support donut caching?
Although ASP.NET Web Forms supports donut caching through the Substitution control, the Razor Engine does not offer support for donut caching.
How can you use donut caching in MVC?
Because ASP.NET MVC 4 is built on top of ASP.NET, you can still use the Substitution APIs through the HttpResponse.WriteSubstitution method by creating an MVC helper. This enables you to cache an entire page on the server except for a particular reference.
what is Donut Hole Caching?
Where donut caching caches the entire page other than a few sections, donut hole caching takes the other approach and caches only select portions of the page while keeping the rest of the page dynamic.
what is the effect of using the OutputCache attribute at the controller level?
You can also assign the caching attribute to a controller. Setting OutputCache at a controller level automatically configures all actions that accept a GET request to use the same caching settings as if the attribute were put on the individual actions. The caching at a controller level does not affect any actions that accept POST, PUT, or DELETE request types
what is distributed caching?
the ability to create data on one application server and share it with the other servers.
What solution does Microsoft offer for distributed caching?
Windows Server AppFabric
Qué es Azure Cache for Redis ?
Azure Cache for Redis proporciona un almacén de datos en memoria basado en el software de código abierto Redis.
What is Redis?
Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker.
What is Azure CDN?
It lets you reduce load times, save bandwidth, and speed responsiveness—whether you’re developing or managing websites or mobile apps, or encoding and distributing streaming media, gaming software, firmware updates, or IoT endpoints.