In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you what redis can be used to do, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Redis is the most widely used storage middleware in the field of Internet technology. It is the acronym of "Remote Dictionary Service", that is, "remote dictionary service". Redis is widely praised in the field of open source middleware for its high performance, perfect documentation, concise source code and rich client library support. Many large Internet companies at home and abroad are using Redis, such as Twitter, YouPorn, Blizzard Entertainment, Github, StackOverflow, Tencent, Ali, JD.com, Huawei, Sina Weibo and so on. Many small and medium-sized companies also have applications. It can also be said that the understanding and application practice of Redis has become a necessary skill for middle and senior back-end developers.
Redis has a wide range of business applications. Where can Redis be used?
1. Record the number of comments, likes and hash of the article.
2. Record the ID list (sort) of the user's articles, so as to quickly display the user's article list (zset).
3. Record the title, abstract, author and cover information of the article for list display. (hase).
4. Record the id list of like users and the id list of comments, which are used for display and de-repeat count (zset).
5. Cache recent hot articles to reduce database pressure (hash).
6. Record the id of the related articles and recommend the related articles (list) according to the content.
7. If the article ID is integer incrementing, you can use redis to allocate the article id (counter).
8. The relationship between collections and articles (zset).
9. Record the id list, total hot list and classified hot list (zset) of popular articles.
10. Cache user's historical behavior and filter malicious behavior (zset,hash).
What can't Redis do?
Redis feels that there are many things that can be done, but it is not omnipotent. Use it to get twice the result with half the effort in the right place. If abused, it may lead to instability of the system, higher cost and other problems.
For example, using Redis to save users' basic information, although it can support persistence, its persistence scheme can not guarantee the absolute landing of data, and may also lead to Redis performance degradation, because persistence too frequently will increase the pressure on Redis services.
The simple summary is that businesses with too much data and very low frequency of data access are not suitable to use Redis.
Too much data will increase the cost, the access frequency is too low, and it is a waste of resources to keep it in memory.
The above is all the content of what redis can do, thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.