Skip to content

Commit e526963

Browse files
committed
Updated Tim's new content
1 parent 73f8e66 commit e526963

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

articles/azure-cache-for-redis/cache-best-practices-client-libraries.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,19 @@ For information on client library-specific guidance best practices, see the foll
4444
- [HiRedisCluster](https://github.com/Azure/AzureCacheForRedis/blob/main/HiRedisCluster%20Best%20Practices.md)
4545
- [ASP.NET Session State Provider](https://gist.github.com/JonCole/925630df72be1351b21440625ff2671f#file-redis-bestpractices-session-state-provider-md)
4646

47-
## redisson (Java)
47+
## Redisson (Java)
4848

49-
It is *strongly recommended* to use redisson 3.14.1 or higher. Older versions contain known connection leak issues which cause problems after failovers. Do monitor the redisson changelog for other known issues which may impact features used by your application [Link](https://github.com/redisson/redisson/blob/master/CHANGELOG.md) See also the redisson FAQ [Link](https://github.com/redisson/redisson/wiki/16.-FAQ)
49+
We *recommend* you use redisson 3.14.1 or higher. Older versions contain known connection leak issues that cause problems after failovers. Monitor the Redisson changelog for other known issues can affect features used by your application. 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).
5050

51-
Other notes:
52-
* redisson defaults to 'read from replica' strategy, unlike some other clients. To change this, modify the 'readMode' config setting.
53-
* redisson has a connection pooling strategy with configurable minimum and maximum settings, and the default minimum values are quite big. Which could contribute to more aggressive reconnect behaviors or 'connection storms'. To reduce the risk, consider using less connections, because you can efficiently pipeline commands, or batches of commands, over a small number of connections.
54-
* redisson has a default idle connection timeout of 10 seconds, which leads to more closing and reopening of connections than is ideal
51+
Other notes:
5552

56-
A recommended baseline configuration for cluster mode, which you can modfiy as needed, is:
53+
* Redisson defaults to 'read from replica' strategy, unlike some other clients. To change this, modify the 'readMode' config setting.
54+
* 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 the risk, consider using fewer connections because you can efficiently pipeline commands, or batches of commands, over a few connections.
55+
* Redisson has a default idle connection timeout of 10 seconds, which leads to more closing and reopening of connections than ideal.
5756

58-
```
57+
Here's a recommended baseline configuration for cluster mode that you can modify as needed:
58+
59+
```json
5960
clusterServersConfig:
6061
idleConnectionTimeout: 30000
6162
connectTimeout: 15000
@@ -85,7 +86,7 @@ clusterServersConfig:
8586

8687
## How to use client libraries
8788

88-
Besides the reference documentation, you can find tutorials showing how to get started with Azure Cache for Redis using different languages and cache clients.
89+
Besides the reference documentation, you can find tutorials showing how to get started with Azure Cache for Redis using different languages and cache clients.
8990

9091
For more information on using some of these client libraries in tutorials, see the following articles:
9192

0 commit comments

Comments
 (0)