Data cache

Azure Cache for Redis
Azure Cosmos DB
Azure Database for MySQL
Azure SQL Database
Azure App Service

Solution ideas

This article is a solution idea. If you'd like us to expand the content with more information, such as potential use cases, alternative services, implementation considerations, or pricing guidance, let us know by providing GitHub feedback.

Azure Cache for Redis perfectly complements Azure database services such as Azure Cosmos DB. It provides a cost-effective solution to scale read and write throughput of your data tier. Store and share database query results, session states, static contents, and more using a common cache-aside pattern.

Architecture

Diagram shows the Azure Cache for Redis architecture.

Download a Visio file of this architecture.

Dataflow

  1. When an application needs to retrieve data, it will first search to see if it exists in Azure Cache for Redis.
  2. If the data is found in Azure Cache for Redis (cache hit), the application will use this data.
  3. If the data is not found in Azure Cache for Redis (cache miss), then the application will need to retrieve the data from the appropriate Azure database service.
  4. For cache miss scenarios, the requesting application should add the data retrieved from the Azure Database service to Azure Cache for Redis.

Components

Key technologies used to implement this architecture:

  • Azure Cache for Redis complements database services, such as Azure SQL Database and Azure Cosmos DB, by enabling your data tier to scale throughput, at a lower cost than through expanded database instances. Store and share database query results, session states, and static content, by using a common cache-aside pattern. Make your application nimbler and more scalable.
  • Azure App Service is an HTTP-based service for hosting web applications, REST APIs, and mobile back ends. You can develop in your favorite language, including .NET, .NET Core, Java, Ruby, Node.js, PHP, and Python. Applications run and scale with ease on both Windows and Linux-based environments.
  • Azure Cosmos DB is a fully managed NoSQL database service for modern app development.
  • Azure SQL Database is part of the Azure SQL family. Azure SQL Database is an intelligent, scalable, and relational database service built for the cloud.
  • Azure Database for PostgreSQL is also part of the Azure SQL family.

Scenario details

Potential use cases

  • Airlines (aircraft and aerospace)
  • Online vehicle dealers (automotive)
  • Restaurants (travel and hospitality)

Contributors

This article is maintained by Microsoft. It was originally written by the following contributors.

Principal author:

Next steps