Skip to content

Instantly share code, notes, and snippets.

@JonCole
JonCole / Redis-BestPractices-General.md
Last active March 25, 2024 08:06
Redis Best Practices

Some of the Redis best practices content has moved

This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.

NOTE: Client specific guidance listed below is still valid and should still be considered. I will update this document once all content has been moved.

@nschlimm
nschlimm / gist:2134350
Created March 20, 2012 11:36
PoolSizeCalculator
/**
* A class that calculates the optimal thread pool boundaries. It takes the desired target utilization and the desired
* work queue memory consumption as input and retuns thread count and work queue capacity.
*
* @author Niklas Schlimm
*
*/
public abstract class PoolSizeCalculator {
/**