In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what are the advantages and disadvantages of Redis. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
1. What is Redis?
Generally speaking, there are several kinds of database classification at present, including SQL/NSQL, relational database, key-value database and so on. Redis is also a kind of key-value database in essence, but it not only keeps the simple and fast characteristics of key-value database, but also absorbs some of the advantages of relational database. So that its location is between the relational database and the key data base. Redis can not only save data of Strings type, but also save data of Lists type (ordered) and Sets type (unordered), but also complete advanced functions such as sorting (SORT). When realizing functions such as INCR,SETNX, it ensures the atomicity of its operation, in addition, it also supports master-slave replication and other functions.
2. What is Redis used for?
Generally speaking, Redis also exists as a message queue as an embedded List to meet the high concurrency requirements of real-time. Usually in the process of data processing of an e-commerce type, the queues of goods, hot sellers and recommendations are usually stored in Redis, during which Storm is also included to read and update the Redis list.
3. Advantages of Redis
Extremely high performance-Redis can support read and write frequencies of more than 100K + per second.
Rich data types-Redis supports Strings, Lists, Hashes, Sets and Ordered Sets data type operations for binary cases.
Atom-all operations of Redis are atomic, and Redis also supports atomicity after several operations have been merged.
Rich features-Redis also supports publish/subscribe, notification, key expiration, and so on.
4. Shortcomings of Redis
The database capacity is limited by physical memory and cannot be used for high-performance reading and writing of massive data, so the scenarios suitable for Redis are mainly limited to high-performance operations and operations with a small amount of data.
Summary: Redis is limited to specific scenarios and focuses on specific areas, so fast that it has not yet found an alternative to the use of products.
What are the advantages and disadvantages of Redis to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.