CN109857934A - Software module cache prefetching method, apparatus and medium based on user behavior analysis - Google Patents
Software module cache prefetching method, apparatus and medium based on user behavior analysis Download PDFInfo
- Publication number
- CN109857934A CN109857934A CN201910056156.4A CN201910056156A CN109857934A CN 109857934 A CN109857934 A CN 109857934A CN 201910056156 A CN201910056156 A CN 201910056156A CN 109857934 A CN109857934 A CN 109857934A
- Authority
- CN
- China
- Prior art keywords
- software module
- user
- listings
- access
- cache
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of software module cache prefetching method, apparatus and medium based on user behavior analysis, the described method includes: the predictions request at customer in response end, extract the historical behavior information of the user, and/or disclosed internet information is crawled by web crawlers, collect data relevant to the user's history behavioural information;According to the historical behavior information, and/or data relevant to the user's history behavioural information, predict the software module that the user may access in future, and generate software module listings;The software module listings are arranged as prediction result by the interest-degree descending of the user;Wherein, the software module is the unit that user obtains service;According to the software module listings, the software module of local cache is updated.The present invention can be improved the accuracy rate of prediction and caching, and then reduce the use time delay of software flow service, improve the efficiency of software flow service.
Description
Technical field
The present invention relates to the caching of software flow load and prefetching technique fields, more particularly, to one kind based on user behavior point
The software module cache prefetching method, apparatus and medium of analysis.
Background technique
In recent years, as development of Mobile Internet technology is grown rapidly, occur with cloud computing, Internet of Things, big data etc. for generation
The new network of table calculates mode, they expand the service ability of user terminal using network as transmitting medium, realizes clothes on demand
The shared purpose of business.In software-oriented stream and the class-of-service model of data flow, center server uses security server
And Cloud Server, the framework including calculation server and storage server.Wherein security server according to specific application environment and
The difference of performing environment, by the demand for security of based role and application combination on demand;Simultaneously according between user, user and cloud take
The complementary diversity of data protection between business end, " software flow " of operating system and application program is sharp in practical applications
Cloud server terminal and user terminal are loaded into streaming computing thought.Under the class-of-service model application scenarios of software flow, user
Service is obtained as unit of software module;Cache prefetching system is by local cache software module, and by fetching master in advance
The resource that dynamic acquisition may be accessed.The key of caching system is caching replacement strategy, realizes in limited spatial cache
Low price value object is displaced as much as possible and stores the cache object of those higher values;And prefetching technique depend primarily on it is pre-
The algorithm of survey, prediction algorithm can more realistically reflect the access sequence of user and the object that will be accessed, to carry out in advance
Caching.
However, existing caching replacement strategy do not fully consider software module content type and two kinds of user interest degree
Factor, therefore cache hit rate is low;Moreover, thresholding value-based algorithm of the existing prefetching algorithm such as based on access probability, based on using
The Domain-Top algorithm of family interest-degree and Access Model tree algorithm based on access sequence, all using the page be clicked number as
The basis of popular degree, and the other factors of individual subscriber behavior are ignored, therefore reduce predictablity rate;Based on existing caching
The problem of cache prefetching technology that tactful and existing prefetching algorithm obtains leads to the low efficiency of software flow service.
Summary of the invention
The present invention provides a kind of software module cache prefetching method, apparatus and medium based on user behavior analysis, energy
Enough accuracys rate for improving prediction and caching, and then reduce the use time delay of software flow service, improve the efficiency of software flow service.
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of software modules based on user behavior analysis
Cache prefetching method, comprising:
The predictions request at customer in response end, extracts the historical behavior information of the user, and/or crawls public affairs by web crawlers
The internet information opened collects data relevant to the user's history behavioural information;
According to the historical behavior information, and/or data relevant to the user's history behavioural information, predict that the user exists
The software module that future may access, and generate software module listings;The software module listings are as prediction result, by the use
The interest-degree descending at family arranges;Wherein, the software module is the unit that user obtains service;
According to the software module listings, the software module of local cache is updated.
Preferably, described to update the software module of local cache according to the software module listings, specific:
According to the software module listings, the software module of local cache is traversed;
It downloads and is different from the remaining software module of local cache in the software module listings, and save to local cache;
Wherein, the software module of local cache is arranged by the interest-degree descending of the user.
Preferably, the software module cache prefetching method based on user behavior analysis further include:
The expense of each software module is set by flow analysis, and assigns corresponding weight;
By the access rule of Zipf rule and user, the accessed probability of software module is obtained, and then according to access time
It counts, using time, access behavior and weight, calculates the user to the interest-degree of each software module.
Preferably, the software module cache prefetching method based on user behavior analysis further include:
In local cache insufficient space, according to the user to the interest-degree of software module, the software module of downloading is set
Change the software module in local cache.
Preferably, described according to the historical behavior information, and/or number relevant to the user's history behavioural information
According to, predict the software module that the user may access in future, and generate software module listings, specific:
According to the historical behavior information, and/or data relevant to the user's history behavioural information, count the user's
Access rule, and the software module that the user may access in future is predicted with this;Wherein,
The access rule for counting the user, comprising: conclude the request sequence of the user, and match longest sequence
Column;Or the prefetching algorithm based on access probability, by establishing the model of user's access, what some resource of analytical calculation was accessed
Probability;Or the prefetching algorithm based on object popularity obtains the mesh arranged by popularity descending by excavating journal file
Target object.
The present invention provides a kind of, and the software module cache prefetching device based on user behavior analysis includes:
Ask respond module, the predictions request for customer in response end;
Information extraction modules for extracting the historical behavior information of the user, and are crawled by web crawlers disclosed
Internet information collects data relevant to the user's history behavioural information;
Prediction module is used for according to the historical behavior information, and/or number relevant to the user's history behavioural information
According to predicting that the user in the software module that may access of future, and generates software module listings;
Caching replacement module, for updating the software module of local cache according to the software module listings.
The present invention provides a kind of software module cache prefetching device based on user behavior analysis, which is characterized in that packet
Include: processor, memory and storage in the memory and are configured as the computer program executed by the processor,
The processor realizes as above described in any item software modules based on user behavior analysis when executing the computer program
Cache prefetching method.
The present invention provides a kind of computer readable storage mediums, which is characterized in that the computer readable storage medium
Computer program including storage, wherein control the computer readable storage medium institute in computer program operation
As above described in any item software module cache prefetching methods based on user behavior analysis are executed in equipment.
Compared with the prior art, the invention has the following beneficial effects:
The software module cache prefetching method based on user behavior analysis that the present invention provides a kind of has fully considered single
The hobby of user improves the hit rate of caching replacement strategy and prefetching algorithm.In combination with caching technology and prefetch, it is real
The interaction of cache prefetching is showed, so that the two cooperates, the caching replacement of software module and prefetching has been controlled, is realized
The integration of cache prefetching system;So as to improve the time delay of software flow load, and then cache hit rate is improved, further mentioned
The high quality of software flow service.
Detailed description of the invention
Fig. 1 is the principle of software module cache prefetching method of one of the embodiment of the present invention based on user behavior analysis
Figure.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Referring to Figure 1, a kind of software module cache prefetching method based on user behavior analysis, dress are present embodiments provided
It sets and medium, can be improved the accuracy rate of prediction and caching, and then reduce use the time delay of software flow service, improve software flow and take
The efficiency of business.
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of software modules based on user behavior analysis
Cache prefetching method, comprising:
The predictions request at customer in response end extracts the historical behavior information of the user;
According to the historical behavior information, the software module that the user may access in future is predicted, and generate software mould
Block list;The software module listings are arranged as prediction result by the interest-degree descending of the user;Wherein, the software mould
Block is the unit that user obtains service;
According to the software module listings, the software module of local cache is updated.
In the present embodiment, the client can be smart phone, Intelligent flat, PC etc..
In the present embodiment, the historical behavior information is stored in Edge Server in a manner of journal file, log
The login behavior of file record user, lookup behavior etc..
In the present embodiment, the scalable stream service model that the concept source of software module is calculated in clean room;The software mould
Block includes but is not limited to login module, payment module, searching module, authentication module etc..
In the present embodiment, described to update the software module of local cache according to the software module listings, specific:
According to the software module listings, the software module of local cache is traversed;
It downloads and is different from the remaining software module of local cache in the software module listings, and save to local cache;
Wherein, the software module of local cache is arranged by the interest-degree descending of the user.
In embodiment, the software module cache prefetching method based on user behavior analysis further include:
The expense of each software module is set by flow analysis, and assigns corresponding weight.
By the access rule of Zipf rule and user, the accessed probability of software module is obtained, and then according to access time
It counts, using time, access behavior and weight, calculates the user to the interest-degree of each software module.
In embodiment, the software module cache prefetching method based on user behavior analysis further include:
In local cache insufficient space, according to the user to the interest-degree of software module, the software module of downloading is set
Change the software module in local cache.
In the present embodiment, described according to the historical behavior information, predict the software that the user may access in future
Module, and software module listings are generated, it is specific:
According to the historical behavior information, the access rule of the user is counted, and predicts the user following possible with this
The software module of access;Wherein,
The access rule for counting the user, comprising: conclude the request sequence of the user, and match longest sequence
Column;Or the prefetching algorithm based on access probability, by establishing the model of user's access, what some resource of analytical calculation was accessed
Probability;Or the prefetching algorithm based on object popularity obtains the mesh arranged by popularity descending by excavating journal file
Target object.
As a preferred embodiment, the embodiment of the invention provides a kind of, and the software module caching based on user behavior analysis is pre-
Take method, comprising:
The predictions request at customer in response end crawls disclosed internet information by web crawlers, and collection is gone through with the user
The relevant data of history behavioural information;
According to the relevant data of user's history behavioural information, the software module that the user may access in future is predicted,
And generate software module listings;
According to the software module listings, the software module of local cache is updated.
As a preferred embodiment, described according to the software module listings, the software module of local cache is updated, specifically
:
According to the software module listings, the software module of local cache is traversed;
It downloads and is different from the remaining software module of local cache in the software module listings, and save to local cache;
Wherein, the software module of local cache is arranged by the most content type descending of number is accessed in all users.
In the present embodiment, content type is distinguished according to the module of each software, such as: basic function type, text
Type, video type, audio types, other types etc..
As a preferred embodiment, the software module cache prefetching method based on user behavior analysis further include:
In local cache insufficient space, according to the most content type of number is accessed in all users, by downloading
Software module replaces the software module in local cache.
As a preferred embodiment, the present invention provides a kind of software module cache prefetching device based on user behavior analysis
Include:
Ask respond module, the predictions request for customer in response end;
Information extraction modules for extracting the historical behavior information of the user, and are crawled by web crawlers disclosed
Internet information collects data relevant to the user's history behavioural information;
Prediction module is used for according to the historical behavior information, and/or number relevant to the user's history behavioural information
According to predicting that the user in the software module that may access of future, and generates software module listings;
Caching replacement module, for updating the software module of local cache according to the software module listings.
As a preferred embodiment, a kind of software module cache prefetching device based on user behavior analysis is provided for executing
Software module cache prefetching method provided in an embodiment of the present invention based on user behavior analysis, which includes: at least one
The processor of software module cache prefetching method based on user behavior analysis, such as CPU, at least one communication bus, at least
Other users interface or a network interface, memory.The communication bus is logical for realizing the connection between these components
Letter.Wherein, the user interface optionally may include USB interface and other standards interface, wireline interface.The network connects
Mouth may include optionally Wi-Fi interface and other wireless interfaces.The memory may include high speed RAM memory,
It may further include non-labile memory (Non-Volatile Memory), for example, at least a magnetic disk storage.It is described to deposit
Reservoir optionally may include at least one and be located remotely from the software module cache prefetching method based on user behavior analysis
Processor storage device.In some embodiments, the memory stores following element, can be performed module or
Data structure perhaps their subset or their superset: operating system includes various system programs, for realizing each
Kind basic business and the hardware based task of processing;Application module controls service routine, device identification service journey comprising equipment
The various computer applied algorithms such as sequence, for realizing various applied business.
As a preferred embodiment, the present invention also provides a kind of storage medium, the storage medium includes the calculating of storage
Machine program, wherein equipment where controlling the storage medium in computer program operation is executed based on user behavior point
The software module cache prefetching method of analysis.
Wherein, the storage medium can be magnetic disk, CD, read-only memory (Read-Only Memory, ROM)
Or random access memory (Random Access Memory, RAM) etc..
The invention has the following advantages:
Software module cache prefetching method, apparatus and storage medium based on user behavior analysis of the invention, is sufficiently examined
Consider modular character and the hobby of single user, improves the hit rate of caching replacement strategy and prefetching algorithm.It ties simultaneously
Close and caching technology and prefetch, realize the interaction of cache prefetching so that the two cooperates, caching replacement to software module and
It prefetches and is controlled, realize the integration of cache prefetching system;So as to improve the time delay of software flow load, and then improve
Cache hit rate further improves the quality of software flow service.
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art
For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (8)
1. a kind of software module cache prefetching method based on user behavior analysis characterized by comprising
The predictions request at customer in response end, extracts the historical behavior information of the user, and/or is crawled by web crawlers disclosed
Internet information collects data relevant to the user's history behavioural information;
According to the historical behavior information, and/or data relevant to the user's history behavioural information, predict the user in future
The software module that may be accessed, and generate software module listings;The software module listings are as prediction result, by the user's
The arrangement of interest-degree descending;Wherein, the software module is the unit that user obtains service;
According to the software module listings, the software module of local cache is updated.
2. the software module cache prefetching method based on user behavior analysis as described in claim 1, which is characterized in that described
According to the software module listings, the software module of local cache is updated, specific:
According to the software module listings, the software module of local cache is traversed;
It downloads and is different from the remaining software module of local cache in the software module listings, and save to local cache;Wherein,
The software module of local cache is arranged by the interest-degree descending of the user.
3. the software module cache prefetching method based on user behavior analysis as claimed in claim 1 or 2, which is characterized in that
Further include:
The expense of each software module is set by flow analysis, and assigns corresponding weight;
By the access of Zipf rule and user rule, obtain the accessed probability of software module, so according to access times, make
With time, access behavior and weight, the user is calculated to the interest-degree of each software module.
4. the software module cache prefetching method based on user behavior analysis as claimed in claim 2, which is characterized in that also wrap
It includes:
In local cache insufficient space, according to the user to the interest-degree of software module, the software module of downloading is replaced this
Software module in ground caching.
5. the software module cache prefetching method based on user behavior analysis as described in claim 1, which is characterized in that described
According to the historical behavior information, and/or data relevant to the user's history behavioural information, predict the user following possible
The software module of access, and software module listings are generated, it is specific:
According to the historical behavior information, and/or data relevant to the user's history behavioural information, count the access of the user
Rule, and the software module that the user may access in future is predicted with this;Wherein,
The access rule for counting the user, comprising: conclude the request sequence of the user, and match longest sequence;Or
Prefetching algorithm of the person based on access probability, by establishing the model of user's access, the accessed probability of some resource of analytical calculation;
Or the prefetching algorithm based on object popularity obtains the target arranged by popularity descending by excavating journal file
Object.
6. a kind of software module cache prefetching device based on user behavior analysis characterized by comprising
Ask respond module, the predictions request for customer in response end;
Information extraction modules crawl disclosed interconnection for extracting the historical behavior information of the user, and by web crawlers
Net information collects data relevant to the user's history behavioural information;
Prediction module is used for according to the historical behavior information, and/or data relevant to the user's history behavioural information, in advance
The software module that the user may access in future is surveyed, and generates software module listings;
Caching replacement module, for updating the software module of local cache according to the software module listings.
7. a kind of software module cache prefetching device based on user behavior analysis characterized by comprising processor, storage
Device and storage in the memory and are configured as the computer program executed by the processor, and the processor executes
The software module caching as described in any one of claim 1 to 5 based on user behavior analysis is realized when the computer program
Forecasting method.
8. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes the calculating of storage
Machine program, wherein equipment where controlling the computer readable storage medium in computer program operation is executed as weighed
Benefit requires 1 to 5 described in any item software module cache prefetching methods based on user behavior analysis.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910056156.4A CN109857934A (en) | 2019-01-21 | 2019-01-21 | Software module cache prefetching method, apparatus and medium based on user behavior analysis |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910056156.4A CN109857934A (en) | 2019-01-21 | 2019-01-21 | Software module cache prefetching method, apparatus and medium based on user behavior analysis |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109857934A true CN109857934A (en) | 2019-06-07 |
Family
ID=66895535
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910056156.4A Pending CN109857934A (en) | 2019-01-21 | 2019-01-21 | Software module cache prefetching method, apparatus and medium based on user behavior analysis |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109857934A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114579905A (en) * | 2022-03-03 | 2022-06-03 | 浪潮卓数大数据产业发展有限公司 | Report display method, system, device and medium |
CN114785858A (en) * | 2022-06-20 | 2022-07-22 | 武汉格蓝若智能技术有限公司 | Resource active caching method and device applied to mutual inductor online monitoring system |
CN114968528A (en) * | 2022-05-30 | 2022-08-30 | 阿里巴巴(中国)有限公司 | Policy-based information processing method, electronic device, and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102236563A (en) * | 2010-04-28 | 2011-11-09 | 腾讯科技(深圳)有限公司 | Software upgrading method and system |
CN107451071A (en) * | 2017-08-04 | 2017-12-08 | 郑州云海信息技术有限公司 | A kind of caching replacement method and system |
WO2018038280A1 (en) * | 2016-08-22 | 2018-03-01 | 주식회사 이노그리드 | Cloud software integrated service system and method therefor |
CN107943989A (en) * | 2017-12-01 | 2018-04-20 | 工业互联网创新中心(上海)有限公司 | Module recommendation apparatus and method based on SaaS platforms |
-
2019
- 2019-01-21 CN CN201910056156.4A patent/CN109857934A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102236563A (en) * | 2010-04-28 | 2011-11-09 | 腾讯科技(深圳)有限公司 | Software upgrading method and system |
WO2018038280A1 (en) * | 2016-08-22 | 2018-03-01 | 주식회사 이노그리드 | Cloud software integrated service system and method therefor |
CN107451071A (en) * | 2017-08-04 | 2017-12-08 | 郑州云海信息技术有限公司 | A kind of caching replacement method and system |
CN107943989A (en) * | 2017-12-01 | 2018-04-20 | 工业互联网创新中心(上海)有限公司 | Module recommendation apparatus and method based on SaaS platforms |
Non-Patent Citations (1)
Title |
---|
姚昌: "SaaS平台前端性能优化的研究与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114579905A (en) * | 2022-03-03 | 2022-06-03 | 浪潮卓数大数据产业发展有限公司 | Report display method, system, device and medium |
CN114968528A (en) * | 2022-05-30 | 2022-08-30 | 阿里巴巴(中国)有限公司 | Policy-based information processing method, electronic device, and storage medium |
CN114785858A (en) * | 2022-06-20 | 2022-07-22 | 武汉格蓝若智能技术有限公司 | Resource active caching method and device applied to mutual inductor online monitoring system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104424229B (en) | A kind of calculation method and system that various dimensions are split | |
US10560471B2 (en) | Detecting web exploit kits by tree-based structural similarity search | |
CN107666506B (en) | Push prediction of result method, apparatus, computer equipment and storage medium | |
CN109684358A (en) | The method and apparatus of data query | |
CN109074377A (en) | Managed function for real-time processing data stream executes | |
CN102404126B (en) | Charging method of cloud computing during application process | |
CN102163230B (en) | Method for implementing personalized information retrieval system for customizing privacy protection | |
CN107888616A (en) | The detection method of construction method and Webshell the attack website of disaggregated model based on URI | |
CN103338260B (en) | The distributed analysis system of URL daily record and analytical method in network audit | |
CN108885627A (en) | Inquiry, that is, service system of query result data is provided to Terminal Server Client | |
CN105453042A (en) | Pre-fetching content for service-connected applications | |
CN109857934A (en) | Software module cache prefetching method, apparatus and medium based on user behavior analysis | |
CN111459986B (en) | Data computing system and method | |
CN110535850B (en) | Processing method and device for account login, storage medium and electronic device | |
CN102946320A (en) | Distributed supervision method and system for user behavior log forecasting network | |
CN105518644A (en) | Method for processing and displaying real-time social data on map | |
CN111885177B (en) | Biological information analysis cloud computing method and system based on cloud computing technology | |
CN110020061A (en) | A kind of smart city space time information cloud platform service-Engine | |
AU2019331371A1 (en) | System and method for providing customer specified webpage configuration | |
CN113656673A (en) | Master-slave distributed content crawling robot for advertisement delivery | |
CN110020310A (en) | Method, apparatus, terminal and the storage medium of resource load | |
CN106897313B (en) | Mass user service preference evaluation method and device | |
CN107291826A (en) | File search processing method and processing device | |
CN108418871A (en) | A kind of cloud storage performance optimization method and system | |
CN107729394A (en) | Data Mart management system and its application method based on Hadoop clusters |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190607 |