You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Azure Cache for Redis is based on the open-source, in-memory data store Redis. Redis clients for many programming languages can access Azure Redis. Your application can use any client library that's compatible with open-source Redis to connect to your Azure Redis cache.
15
+
Azure Cache for Redis is based on the Redis open-source, in-memory data store. Redis clients for many programming languages can access Azure Redis. Your application can use any client library that's compatible with open-source Redis to connect to your Azure Redis cache.
16
16
17
17
Each client library has its own API that calls Redis servers using Redis commands. The client libraries are built to communicate with any Redis server.
18
18
@@ -60,21 +60,21 @@ Besides the reference documentation, you can use the following tutorials to get
60
60
61
61
## Best practices for Redisson (Java)
62
62
63
-
Here are some recommended best practices for Redisson:
63
+
Here are some recommended best practices for the Redisson client library:
64
64
65
65
- Use Redisson 3.14.1 or higher. Older versions contain known connection leak issues that cause problems after failovers.
66
66
67
-
- Monitor the Redisson changelog for known issues that can affect features your application uses. For more information, see [`CHANGELOG`](https://github.com/redisson/redisson/blob/master/CHANGELOG.md) and the [Redisson FAQ](https://github.com/redisson/redisson/wiki/16.-FAQ).
67
+
- Monitor the Redisson changelog for known issues that can affect features your application uses. For more information, see the [Redisson Releases History](https://github.com/redisson/redisson/blob/master/CHANGELOG.md) and the [Redisson FAQ](https://redisson.pro/docs/faq/).
68
68
69
-
-If you don't want to use the *read from replica* strategy, modify the `readMode` config setting. Unlike some other clients, Redisson uses *read from replica* as the default.
69
+
-Modify the `readMode` config setting if you don't want to use the *read from replica* strategy. Unlike some other clients, Redisson uses *read from replica* as the default.
70
70
71
71
- To reduce the risk of aggressive reconnect behaviors or *connection storms*, consider setting fewer minimum connections.
72
72
73
73
Redisson has a connection pooling strategy with configurable minimum and maximum settings, and the default minimum values are large. The large defaults could contribute to aggressive reconnect behaviors or connection storms. To reduce this risk, consider using fewer connections. You can efficiently pipeline commands or batches of commands over a few connections.
74
74
75
75
- Reset the idle connection timeout if necessary. Redisson has a default 10-second idle connection timeout, which can lead to more closing and reopening of connections than ideal.
76
76
77
-
- For an article about Redisson's support for JCache as the store for HTTP session state in IBM Liberty on Azure, see [Use Java EE JCache with Open Liberty or WebSphere Liberty on an Azure Kubernetes Service (AKS) cluster](/azure/developer/java/ee/how-to-deploy-java-liberty-jcache).
77
+
- For an article about Redisson support for Java EE JCache as the store for HTTP session state in IBM Liberty on an Azure Kubernetes Service (AKS) cluster, see [Using Azure Redis as session cache for WebSphere Liberty or Open Liberty](/azure/developer/java/ee/how-to-deploy-java-liberty-jcache).
78
78
79
79
- Use the following recommended baseline configuration for cluster mode, and modify it as needed.
Copy file name to clipboardExpand all lines: articles/azure-cache-for-redis/cache-planning-faq.yml
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -22,15 +22,20 @@ sections:
22
22
For guidance on how to benchmark Azure Redis cache performance and for sample benchmarking numbers, see [Performance testing](cache-best-practices-performance.md#example-performance-benchmark-data).
23
23
24
24
- question: |
25
-
Can I use Azure Redis with Azure Government Cloud or Azure operated by 21Vianet Cloud?
25
+
How am I billed for Azure Redis?
26
+
answer: |
27
+
For details about Azure Redis billing, see [Azure Cache for Redis pricing](https://azure.microsoft.com/pricing/details/cache/). The pricing page lists pricing as an hourly and monthly rate. Caches are billed on a per-minute basis. The billing period is measured from time a cache is created until the time that the cache is deleted. There's no option for stopping or pausing cache billing.
28
+
29
+
- question: |
30
+
How can I use Azure Redis with Azure Government Cloud or Azure operated by 21Vianet Cloud?
26
31
answer: |
27
-
Yes, the Basic, Standard, and Premium tiers of Azure Redis are available in Azure Government Cloud and Azure operated by 21Vianet Cloud. The URLs for accessing and managing Azure Redis are different for these clouds than for the Azure Public cloud, as shown in the following table:
32
+
The Basic, Standard, and Premium tiers of Azure Redis are available in Azure Government Cloud and Azure operated by 21Vianet Cloud. The URLs for accessing and managing Azure Redis are different for these clouds than for the Azure Public cloud, as shown in the following table:
28
33
29
34
| Cloud | Domain Name System (DNS) suffix for Redis |
30
35
|---------|---------------------------------|
31
36
| Public | *.redis.cache.windows.net |
32
37
| US Government | *.redis.cache.usgovcloudapi.net |
For other considerations about using Azure Redis with other clouds, see the following links:
36
41
@@ -42,20 +47,15 @@ sections:
42
47
The Azure Redis Enterprise and Enterprise Flash tiers are available only in the Public cloud.
43
48
44
49
- question: |
45
-
How am I billed for Azure Redis?
46
-
answer: |
47
-
For details about Azure Redis billing, see [Azure Cache for Redis pricing](https://azure.microsoft.com/pricing/details/cache/). The pricing page lists pricing as an hourly and monthly rate. Caches are billed on a per-minute basis. The billing period is measured from time a cache is created until the time that the cache is deleted. There's no option for stopping or pausing cache billing.
48
-
49
-
- question: |
50
-
In what region should I locate my cache?
50
+
What region should I locate my cache in?
51
51
answer: |
52
52
For best performance and lowest latency, locate your Azure Redis cache in the same Azure region as your cache client application.
53
53
54
54
- question: |
55
55
Where does my cached data reside?
56
56
answer: |
57
57
In Azure Cache for Redis, your application data is stored in the RAM of the virtual machine (VM) or VMs, depending on the tier, that host your cache. By default, your data resides in the Azure region you selected. There are two cases where your data might leave a region:
58
-
* When you enable data persistence on a Premium-tier cache, Azure Cache for Redis backs up your data to an Azure Storage account. If your storage account is in another region, or replicates data through [geo-redundant storage (GRS)](/azure/storage/common/storage-redundancy#redundancy-in-a-secondary-region) to a different region, a copy of your data ends up there. The Enterprise and Enterprise Flash tiers use on-disk persistence mounted directly to the VMs and doesn't leave the region.
58
+
* When you enable data persistence on a Premium-tier cache, Azure Cache for Redis backs up your data to an Azure Storage account. If your storage account is in another region, or replicates data through [geo-redundant storage (GRS)](/azure/storage/common/storage-redundancy#redundancy-in-a-secondary-region) to a different region, a copy of your data ends up there. The Enterprise and Enterprise Flash tiers use on-disk persistence mounted directly to the VMs that doesn't leave the region.
59
59
60
60
* If you set up [passive geo-replication](cache-how-to-geo-replication.md) on a Premium-tier cache and your secondary cache is in a different region, as is typical, your data is replicated to that region.
61
61
If you set up [active geo-replication]() on an Enterprise or Enterprise Flash tier cache, your data is replicated to each cache in the geo-replication group. If caches in the geo-replication group reside in other regions, as is typical, your data is replicated to those regions.
0 commit comments