Redis Cache Azure¶
Concepts¶
Task Queuing¶
Any time an application receives a request, there's a chance that the operations that are associated with that request might take additional time to execute. A common way to deal with these types of longer-running operations is to add them to a queue, which is then processed later and maybe even by a different server altogether. This type of deferment strategy is called task queuing and Azure Cache for Redis serves this purpose well by acting as a distributed queue.
Purge Content¶
There will be times when content is updated on a website when we may wish to purge the cached content from our CDN. So by purging the CDN cache, we allow it to recache the new content from the source website.
Transactions¶
Azure Cache for Redis provides support for executing a batch of commands in a single operation. It does so in the form of transactions.
Cache-aside¶
Because databases can be quite large, they should never be loaded in their entirety into a cache. That said, a common strategy would be to use the cache-aside pattern to load data items into the cache only as needed.