Microsoft Azure Redis Cache is based on the popular open source Redis Cache. It gives you access to a secure, dedicated Redis Cache, managed by Microsoft. A cache is created, using Azure Redis Cache, which is accessible from any Application within Microsoft Azure.
Definition reference https://docs.microsoft.com/en-us/azure/redis-cache/
Introduction
The usage of Redis Cache could be treated as an advanced approach of storing or caching application data that is available across distributed systems. Before learning more about Redis Cache, let us discuss a very basic use case that most of the Web Developers follow as a method of storing application specific data.
Traditional Way of Storing Sessions in a Load Balancing Environment
Let’s say, you are working on a Web Application which has some secured pages (Say administrator module or Registered module). In order to implement Security (Authentication and authorization), the basic method is to use Sessions (or cookies) and store the logged in user Id or role in the sessions. In this scenario, you would go for In-Proc sessions. Kindly refer to the Introduction To ASP.NET Sessions article for more details about In-Proc sessions) to store the logged in User Id's.
This method would work great for most of the basic Applications. However, for scalability reasons, if you decide to go for Load Balancing across multiple Web Servers; the way you handle your (In-Proc) sessions wouldn’t work. For this, you might have to go for SQL Server Mode. Storing sessions in SQL Server works great in a Web Farm (Load Balancing Environment). However, there are certain concerns like Performance, Storage space etc.
Advanced and Distributed way of storing sessions in a Load Balancing Environment- As explained in the Introduction section of this article, you can use AzureRedis Cache to store your Application specific session related information in an external secured and reliable storage.
Below are few of the advantages of storing your sessions in Azure Redis Cache.
- You can make your sessions available across all the Web Servers, which are hosted in a Web Farm.
- You can configure High availability and Disaster recovery (which we will discuss in upcoming articles) for your Application specific session data.




Rushi MehtaPosted Feb 2, 2018, 6:09 AM
Very Nice article to understand the concept