![]() What are the Java clients supported by Redis? Which one is the official recommendation?Īnswer: Redisson, Jedis, lettuce, etc., the official recommendation is to use Redisson.ĩ. ![]() How to ensure that the data in Redis are all hot data?Īnswers: When the size of the Redis memory data set rises to a certain size, a data elimination strategy will be implemented.]Ĩ. There are 2000w data in MySQL and only 20w data in Redis. Under what circumstances will the Redis cluster solution cause the entire cluster to be unavailable?Īnswer: In a cluster with three nodes A, B, and C, without a replication model, if node B fails, the entire cluster will think that it lacks slots in the range of 5501-11000 and is unusable.ħ. What is the maximum storage capacity for a string type value?Ħ. What physical resources does Redis consume?Īnswer: Redis is a high-performance database based on memory - mainly relies on memory.ĥ. Redis, as its replacement, supports richer data typesĤ. (1) All values of memcached are simple strings. What are the advantages of Redis over Memcached? Therefore, the suitable scenarios for Redis are mainly limited to high-performance operations and calculations with a small amount of data.Ģ. The main disadvantage of Redis is that the database capacity is limited by physical memory and cannot be used for high-performance reading and writing of massive data. In addition, Redis can also set the expire time for the stored Key-Value, so it can also be used as an enhanced version of memcached. ![]() Function, for example, use his List as a FIFO doubly linked list to realize a lightweight high-performance message queue service, use his Set to make a high-performance tag system, and so on. Unlike memcached, which can only store 1MB of data, Redis can be used to achieve many useful things. In addition, the maximum limit of a single value is 1GB. The biggest charm of Redis is that it supports saving multiple data structures. The excellence of Redis is not just performance. It can handle more than 100,000 reads and write operations per second. Because it is a pure memory operation, Redis has excellent performance. The entire database is loaded in the memory for operation, and the database data is flushed to the hard disk for storage periodically through asynchronous operations. Redis has built-in replication, Lua scripting, LRU eviction, transactions, and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis ClusterĪnswer: Redis is essentially a Key-Value type in-memory database, much like memcached. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams. Redis is an open-source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |