In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you what redis hotspot data means. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
"this product is good, let's take a look at it." every platform will have some popular products, referred to as explosive products for short. One of the characteristics of these goods is that they have a large number of visitors. Our specialty can be called hot spot data, and the system needs to do some special processing when dealing with these hot goods.
Redis hotspot data refers to the data with a large number of visits in the redis database.
For these types of data for hot products, it is absolutely right to consider that the number of visitors is relatively large, and the first thing that comes to mind is caching and caching on redis.
This solution has the advantages of nearest access, high speed, and no bandwidth restrictions, but it also has the following problems:
Waste of memory resources
Dirty reading problem
Use the local caching scheme
Using local caching has the following problems:
Need to know in advance that hot spot cache capacity is limited, inconsistent time growth hot spot Key omitted
There are all kinds of problems in traditional hot spot solutions, so how to solve them?
Hot data solution
This scheme solves the problem of hot Key by actively discovering hot spots and storing them.
First, Client also accesses SLB and distributes various requests to Proxy through SLB, and Proxy forwards the request to the back-end Redis in a route-based manner.
The hot key is solved by adding cache on the server side.
Specifically, the local cache is added on the Proxy, the local cache uses the LRU algorithm to cache the hot spot data, and the back-end db node adds the hot spot data calculation module to return the hot spot data.
The main advantages of Proxy architecture are as follows: Proxy local cache hotspot, read ability can be horizontally expanded DB node timing calculation hotspot data set DB feedback Proxy hotspot data is completely transparent to the client, does not need to do any compatibility
Thank you for reading! So much for sharing redis hotspot data. I hope the above content can be helpful to you so that you can learn more. If you think the article is good, you can share it and let more people see it.
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.