website/docs/azure/faq.md
Azure Cosmos DB Garnet Cache is a fully managed, high-performance caching service built on the Garnet remote cache-store from Microsoft Research. It provides Redis protocol compatibility with ultra-low latency and enterprise-grade security, scalability, and reliability.
Azure Cosmos DB Garnet Cache is currently in an expanded Private Preview. Please register your subscription to join the preview.
As a fully managed service, Azure Cosmos DB Garnet Cache handles infrastructure provisioning, scaling, patching, and monitoring automatically. Self-hosted Garnet requires you to manage the infrastructure, updates, and operations yourself.
Azure Cosmos DB Garnet Cache works alongside Azure Cosmos DB to reduce latency for frequently accessed data. Your application manages the integration including checking the cache before reading from Azure Cosmos DB, and updating or invalidating cached entries after writing to Azure Cosmos DB. You control when to update or invalidate cached data to maintain consistency.
Yes, Azure Cosmos DB Garnet Cache uses the Redis RESP protocol, making it compatible with existing Redis clients in all major programming languages without code changes.
Azure Cosmos DB Garnet Cache supports the RESP protocol and doesn't have full support for any specific Redis version. Visit the list of supported Redis commands.
Azure Cosmos DB Garnet Cache clusters are billed per instance per hour with no licensing fees. Each node will be billed for the chosen SKU plus an attached disk, used for data persistence, sized at 2x the total memory of each node. Pricing per SKU is set at different rates than the underlying Azure VM and is subject to change between our extended Private Preview and Public Preview.
For information about pricing for specific SKUs, reach out to [email protected].
Latency is typically sub-millisecond and is around 3ms at the 99th percentile. Performance and throughput varies by tier, key/ value size, and number of concurrent requests, among other factors.
Yes, you can scale out by adding shards, or scale up by changing SKU size within a VM family and generation with no downtime.
Garnet doesn't limit the number of client connections that can be made on any node for any SKU. In practice, connection limits vary by SKU. See the virtual machine limits corresponding to the Azure Cosmos DB Garnet Cache SKU you choose.
All Redis client libraries are supported. Ensure you visit the list of supported commands. Popular libraries by language include:
For local development, you can use the self-hosted Garnet server.
Azure Cosmos DB Garnet Cache is available in many Azure regions. Check our supported regions list.
Azure Cosmos DB Garnet Cache can be configured with availability zones during provisioning in supported Azure regions where there is capacity for your chosen SKU. See the list of Azure regions with availability zone support.
Check these common issues:
Common causes and solutions:
Troubleshooting steps: