How many records can Redis handle?
Category:
technology and computing
databases
Redis can handle up to 232 keys, and was tested in practice to handle at least 250 million keys per instance. Every hash, list, set, and sorted set, can hold 232 elements. In other words your limit is likely the available memory in your system.
Also to know is, how much RAM do I need for Redis?
12 megabytes
Also to know is, how many requests per second can Redis handle?
As previously measured, a benchmark setting 100 Bytes values for each key in Redis, would be hard limited by the network at around 32 million queries per second per VM. Even for 1000 Bytes values, Redis would only be hard limited by the network at around 3 million queries per second per VM.
We will not want to use Redis for use cases like these:
- Storing large amounts of data in a single string value (e.g. the most recent feed contents for each user).
- Storing data across two or more dimensions (e.g. a score for each (user, topic) pair).
- Storing data that requires queries with high time complexity.