CN114722046A - Server and home page cache data version generation method - Google Patents

Server and home page cache data version generation method Download PDF

Info

Publication number
CN114722046A
CN114722046A CN202210405358.7A CN202210405358A CN114722046A CN 114722046 A CN114722046 A CN 114722046A CN 202210405358 A CN202210405358 A CN 202210405358A CN 114722046 A CN114722046 A CN 114722046A
Authority
CN
China
Prior art keywords
data
cache
version number
page
terminal
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
Application number
CN202210405358.7A
Other languages
Chinese (zh)
Inventor
栗军涛
张宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Juhaokan Technology Co Ltd
Original Assignee
Juhaokan Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Juhaokan Technology Co Ltd filed Critical Juhaokan Technology Co Ltd
Priority to CN202210405358.7A priority Critical patent/CN114722046A/en
Publication of CN114722046A publication Critical patent/CN114722046A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/219Managing data history or versioning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a server and a method for generating a homepage cache data sub-version, which comprises a cache service module, a data issuing service module, a database and a background service module; the background service module is configured to monitor full header page data; when the full amount of header page data is changed, a media asset type list corresponding to each terminal version number in the terminal version list is obtained; filtering the changed total first page data according to the media asset type list to obtain first page cache data corresponding to the terminal version number, and storing the first page cache data to a cache service module; the data issuing service module is configured to respond to a request of the first page data of the terminal and determine a cache index; and according to the cache index, obtaining the first page cache data corresponding to the terminal version number from the cache service module. According to the method and the device, different terminals can generate different home page cache data, the home page cache data corresponding to the terminal version number can be sent conveniently when a terminal home page data request is received, and the interface response time is shortened.

Description

Server and home page cache data version generation method
Technical Field
The application relates to the technical field of home page data cache generation, in particular to a server and a home page cache data sub-version generation method.
Background
With the continuous upgrade of the intelligent display device and the development of the service thereof, in order to meet the requirements of users, the server provides various types of media asset data and continuously updates the media asset data.
In the related technology, for requests of homepage data of different terminal versions, a server mainly generates full homepage data, wherein the full homepage data comprises all types of media resource data, when the request of the homepage data is received, supported media resource data are screened out from the full homepage data according to the terminal version, media resource data which are not supported by the current terminal version are filtered out, and then CDN (Content Delivery Network) acceleration is performed on the screened and filtered homepage data, and the screened and filtered homepage data are sent to a terminal. However, each time a request for homepage data is received, the server needs to filter and filter the full amount of homepage data according to the terminal version, so that the response time of the interface is increased, and the user experience is influenced.
Disclosure of Invention
The application provides a server and a method for generating partial versions of home page cache data, which can be used for solving the technical problem of long response time after the server receives a request of home page data.
In a first aspect, the present application provides a server, which includes a cache service module, a database, and a processing module.
The database is configured to store a full amount of first page data, a terminal version list, and a list of media asset types corresponding to each terminal version number in the terminal version list.
The processing module is configured to:
monitoring full-amount home page data; when the full amount of home page data is changed, obtaining a media asset type list corresponding to each terminal version number in the terminal version list from the database; and filtering the changed total first page data according to the media asset type list to obtain first page cache data corresponding to the terminal version number, and storing the first page cache data to the cache service module, wherein the first page cache data has a cache index, and the cache index is obtained according to the terminal version number and a preset rule.
Receiving a request of home page data of an intelligent device terminal, responding to the request of the home page data of the intelligent device terminal, and determining a cache index corresponding to a terminal version number carried by the request according to the terminal version number carried by the request and a preset rule; and according to the cache index corresponding to the terminal version number carried by the request, obtaining the first page cache data corresponding to the terminal version number carried by the request from the cache service module.
With reference to the first aspect, in an implementation manner, when the full amount of first page data is changed, the processing module is further configured to:
generating full-amount warranty data, and storing the full-amount warranty data in the cache service module, wherein the full-amount warranty data is obtained by assembling the changed full-amount first page data.
With reference to the first aspect, in an implementation manner, after the full amount of the first page data is changed, the first page cache data is obtained, and the first page cache data is stored in the cache service module, where the processing module is further configured to: and recording result information generated corresponding to the first page cache data according to the terminal version number to a first page task table.
With reference to the first aspect, in an implementation manner, after the full amount of the first page data is changed, the first page cache data is not obtained, and the processing module is further configured to: and recording the exception information and the reason causing the exception to a first page task table.
With reference to the first aspect, in an implementation manner, when the first page cache data corresponding to the terminal version number carried in the request is not obtained from the cache service module according to the cache index, the processing module is further configured to: obtaining a low version number of the intelligent equipment terminal, wherein the low version number is lower than the current version number by one grade; obtaining a cache index corresponding to the low version number according to the low version number and the preset rule; and according to the cache index corresponding to the low version number, obtaining the first page cache data corresponding to the terminal version number carried by the request from the cache service module.
With reference to the first aspect, in an implementation manner, when the terminal version number carried by the request cannot obtain corresponding home page cache data from the cache service module, the processing module is further configured to: obtaining the full-amount warranty data from a cache service module; and filtering the full-amount bottom-guaranteed data according to a media asset type list corresponding to the terminal version number carried by the request to obtain the first page cache data corresponding to the terminal version number.
With reference to the first aspect, in an implementation manner, the processing module includes a background service module configured to:
monitoring full-amount home page data; when the full amount of first page data is changed, obtaining a media asset type list corresponding to each terminal version number in the terminal version list from the database, wherein the terminal version list comprises all terminal version numbers of first page cache data to be generated; and filtering the changed total first page data according to the media asset type list to obtain first page cache data corresponding to the terminal version number, and storing the first page cache data to the cache service module, wherein the first page cache data has a cache index, and the cache index is obtained according to the terminal version number and a preset rule.
With reference to the first aspect, in an implementation manner, the processing module includes a data delivery service module, and the data delivery service module is configured to:
receiving a request of home page data of an intelligent device terminal, responding to the request of the home page data of the intelligent device terminal, and determining a cache index corresponding to a terminal version number carried by the request according to the terminal version number carried by the request and a preset rule; and according to the cache index corresponding to the terminal version number carried by the request, obtaining the first page cache data corresponding to the terminal version number carried by the request from the cache service module.
According to the technical solutions, in a first aspect, the present application provides a server, which includes a cache service module, a database, and a processing module. The database is configured to store a full amount of first page data, a terminal version list and a media asset type list corresponding to each terminal version number in the terminal version list. The processing module is configured to: monitoring full-amount home page data; when the full amount of home page data is changed, obtaining a media asset type list corresponding to each terminal version number in the terminal version list from the database; filtering the changed full amount of first page data according to the media asset type list to obtain first page cache data corresponding to the terminal version number, and storing the first page cache data to the cache service module; responding to a request of home page data of an intelligent device terminal, and determining a cache index corresponding to a terminal version number carried by the request according to the terminal version number carried by the request and a preset rule; and according to the cache index corresponding to the terminal version number carried by the request, obtaining the first page cache data corresponding to the terminal version number carried by the request from the cache service module. The server realizes that different intelligent device terminals generate different home page cache data, is convenient for issuing home page cache data corresponding to the terminal version number when receiving the home page data request of the intelligent device terminal, and reduces the interface response time.
In a second aspect, the present application provides a method for generating partial versions of home page cache data, where the method includes the following steps:
monitoring full-amount home page data;
when the full amount of header page data is changed, a media asset type list corresponding to each terminal version number in the terminal version list is obtained from a database;
filtering the changed total first page data according to the media asset type list to obtain first page cache data corresponding to the terminal version number, and storing the first page cache data into a cache service module, wherein the first page cache data has a cache index, and the cache index is obtained according to the terminal version number and a preset rule;
receiving a request of homepage data of an intelligent device terminal, and determining a cache index corresponding to a terminal version number carried by the request according to the terminal version number carried by the request and a preset rule;
and according to the cache index corresponding to the terminal version number carried by the request, obtaining the first page cache data corresponding to the terminal version number carried by the request from the cache service module.
With reference to the second aspect, in one implementation manner, when the full amount of the first page data is changed, the method further includes: generating full-amount warranty data, and storing the full-amount warranty data in a cache service module, wherein the full-amount warranty data is obtained by assembling the changed full-amount first page data.
According to the technical scheme, the second aspect of the application provides a method for generating the partial versions of the home page cache data, which comprises the steps of monitoring the full-amount home page data; when the full amount of header page data is changed, a media asset type list corresponding to each terminal version number in the terminal version list is obtained from a database; filtering the changed total first page data according to the media asset type list to obtain first page cache data corresponding to the terminal version number, and storing the first page cache data into a cache service module, wherein the first page cache data has a cache index, and the cache index is obtained according to the terminal version number and a preset rule; receiving a request of home page data of an intelligent device terminal, and determining a cache index corresponding to a terminal version number carried by the request according to the terminal version number carried by the request and a preset rule; and according to the cache index corresponding to the terminal version number carried by the request, obtaining the first page cache data corresponding to the terminal version number carried by the request from the cache service module. According to the method for generating the edition of the home page cache data, different home page cache data are generated according to different intelligent equipment terminals, and when the home page data request of the intelligent equipment terminal is received, the corresponding home page cache data are issued to the intelligent equipment terminal, so that the interface response time is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments are briefly described below, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic diagram of an operation scenario between an intelligent device terminal and a server according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a server according to an embodiment of the present application;
FIG. 3 is a schematic diagram of another structure of a server in the embodiment of the present application;
fig. 4 is a flowchart of database data establishment of the method for generating versioning of home page cache data in the embodiment of the present application;
FIG. 5 is a flowchart of the generation of the first page cache data of the method for generating the first page cache data in versions according to the embodiment of the present application;
FIG. 6 is a flowchart illustrating generation of full-guaranteed-base data by a method for generating partial versions of home page cache data according to an embodiment of the present disclosure;
fig. 7 is a flowchart of a method for generating a partial version of home page cache data according to the present application, for responding to a home page data request of an intelligent device terminal.
Detailed Description
To make the objects, technical solutions and advantages of the exemplary embodiments of the present application clearer, the technical solutions in the exemplary embodiments of the present application will be clearly and completely described below with reference to the drawings in the exemplary embodiments of the present application, and it is obvious that the described exemplary embodiments are only a part of the embodiments of the present application, but not all the embodiments.
All other embodiments, which can be derived by a person skilled in the art from the exemplary embodiments shown in the present application without inventive effort, shall fall within the scope of protection of the present application. Moreover, while the disclosure herein has been presented in terms of exemplary one or more examples, it is to be understood that each aspect of the disclosure can be utilized independently and separately from other aspects of the disclosure to provide a complete disclosure.
It should be understood that the terms "first," "second," "third," and the like in the description and in the claims of the present application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used are interchangeable under appropriate circumstances and can be implemented in sequences other than those illustrated or otherwise described herein with respect to the embodiments of the application, for example.
Furthermore, the terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or device that comprises a list of elements is not necessarily limited to those elements explicitly listed, but may include other elements not expressly listed or inherent to such product or device.
The method comprises the steps that various different types of media asset data exist in a service system, and are sent to an intelligent equipment terminal for display; with the continuous iteration of the system, new media resources, old offline media resources and the like are continuously added, the version of the terminal with the low version does not support the newly added media resource data, and if the newly added media resource data are issued to the intelligent equipment terminal with the low version, abnormal display, even abnormal exit of the intelligent equipment terminal and the like may occur, so that the user experience is influenced.
The above problem can be solved when the terminal version is upgraded to the latest version, but the upgrade of the terminal version depends on the user operation and has uncertainty, resulting in a situation that a plurality of page data coexist in a period of time.
Aiming at the requests of the home page data of different terminal versions, the server mainly generates full home page data, wherein the full home page data comprises all types of media asset data, after the request of the home page data is received, the supported media asset data is screened out from the full home page data according to the terminal version, the media asset data which is not supported by the current terminal version is filtered out, and then the screened and filtered home page data is accelerated by a Content Delivery Network (CDN) and sent to the intelligent device terminal. However, each time a request for homepage data is received, the server needs to filter and filter the full amount of homepage data according to the terminal version, so that the response time of the interface is increased, and the user experience is affected.
In order to reduce the corresponding time of the interface when the homepage data request is made, as shown in fig. 1, a schematic diagram of an operation scenario between the server 1 and the intelligent device terminal 2 in the embodiment is shown, and after the homepage data request of the intelligent device terminal 2 is received, the server 1 is used to implement edition delivery of homepage cache data.
In some embodiments, the smart device terminal 2 (e.g., a mobile terminal, a tablet, a computer, a notebook, etc.) is in data communication with the server 1, and may be in communication connection with a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks, and the server 1 may be a cluster, or may be multiple clusters, and may include one or more types of servers.
The present application provides a server, as shown in fig. 2, in some embodiments of the present application, the server 1 includes a processing module 10, a cache service module 13, and a database 14.
The database 14 is configured to store a terminal version list that needs to generate the first page cache data, the terminal version list including a terminal version number; and storing a media asset type list corresponding to each terminal version number, wherein the type of the media asset type list is less than or equal to the type of the full amount of first page data.
In some embodiments, the terminal version list may also include a version number interval, where the version number interval includes multiple version numbers, for example, the version number interval is V10.1-V10.6, and the version numbers related in the same version number interval may correspond to the same first page cache data.
The server may further include an operation service module configured to determine a terminal version number of the first page cache data that needs to be generated; determining a corresponding media asset type list according to the terminal version number of the first page cache data needing to be generated; determining full header page data and changes of the full header page data, wherein the changes comprise addition of new coal resources, offline of old media resources and the like.
The database 14 is also configured to store full header data, and when a change occurs to the full header data, the corresponding full header data in the database is updated. The change of the full header page data is realized by the operation service module, including the addition of new coal resources, the offline of old media resources and the like.
The processing module 10 is configured to monitor the full amount of homepage data; and when the total amount of the first page data is changed, triggering a task of generating the first page cache data according to the versions in the cache service module. The tasks include: acquiring full home page data, a terminal version list and a corresponding media asset type list in a database; traversing each terminal version number in the terminal version list, and obtaining a corresponding media asset type list according to the terminal version number; filtering the full amount of first page data according to the media asset type list to obtain first page cache data corresponding to the terminal version number, wherein the first page cache data has a cache index, and the cache index is obtained according to the terminal version number and a preset rule; and storing the first page cache data in the cache service module. Receiving a request of home page data of an intelligent device terminal, responding to the request of the home page data of the intelligent device terminal, and determining a cache index corresponding to a terminal version number carried by the request according to the terminal version number carried by the request and a preset rule; and inquiring the cache service module according to the cache index corresponding to the terminal version number carried by the request, and obtaining the first page cache data corresponding to the terminal version number carried by the request.
In some embodiments, result information of obtaining the first page cache data according to the version division of the terminal version may be recorded in the first page task table; if the task execution is abnormal, the first page cache data corresponding to the terminal version number is not obtained, abnormal information and abnormal reasons are recorded in the first page task table, and the first page task table is recorded in the database.
When the full-amount first page data is changed, generating full-amount bottom-guaranteeing data in the cache service module is triggered, and the full-amount bottom-guaranteeing data is obtained according to the full-amount first page data in an assembling mode.
In some embodiments, the changed full-size first page data is obtained from the database, assembled into full-size guaranteed data in a character string format or a JSON (JavaScript Object Notation) format, and the full-size guaranteed data is stored in the cache service module.
In some embodiments, the terminal version number carried by the request needs to be checked, and after the check is passed, a cache index is formed according to the terminal version carried by the request and a preset rule. The request may include other relevant parameters besides the terminal version number.
When the first page cache data corresponding to the terminal version number carried by the request is not obtained from the cache service module according to the cache index, the processing module is configured to: obtaining a low version number of the intelligent equipment terminal, wherein the low version number is lower than the current version number by one grade; and obtaining a cache index corresponding to the low version number according to the low version number and the preset rule, and obtaining the first page cache data corresponding to the terminal version number carried by the request from the cache service module according to the cache index corresponding to the low version number.
When the lowest version number of the intelligent device terminal cannot obtain corresponding home page cache data, the processing module is configured to obtain full-amount warranty data; and filtering the full-amount guaranteed-bottom data according to a media asset type list corresponding to the terminal version number carried by the request to obtain the first page cache data corresponding to the terminal version number.
In some embodiments, when the first page cache data corresponding to the terminal version number carried by the request is not obtained from the cache service module according to the cache index, the processing module is configured to: acquiring full-scale warranty data; and filtering the full-amount guaranteed-bottom data according to a media asset type list corresponding to the terminal version number carried by the request to obtain the first page cache data corresponding to the terminal version number.
According to the scheme, the server comprises a cache service module, a database and a processing module. The database is configured to store a full amount of first page data, a terminal version list and a media asset type list corresponding to each terminal version number in the terminal version list. The processing module is configured to: monitoring full-amount home page data; when the full amount of home page data is changed, obtaining a media asset type list corresponding to each terminal version number in the terminal version list from the database; filtering the changed total homepage data according to the media asset type list to obtain homepage cache data corresponding to the terminal version number, and storing the homepage cache data to the cache service module; responding to a request of home page data of an intelligent device terminal, and determining a cache index corresponding to a terminal version number carried by the request according to the terminal version number carried by the request and a preset rule; and according to the cache index corresponding to the terminal version number carried by the request, obtaining the first page cache data corresponding to the terminal version number carried by the request from the cache service module. The server realizes that different intelligent device terminals generate different home page cache data, is convenient for issuing home page cache data corresponding to the terminal version number when receiving the home page data request of the intelligent device terminal, and reduces the interface response time.
The present application provides a server according to some embodiments of the present application, as shown in fig. 3, where the server 1 includes a processing module 10, a cache service module 13, and a database 14; the processing module 10 includes a data issuing service module 11 and a background service module 12.
The database 14 is configured to store a terminal version list that needs to generate the first page cache data, the terminal version list including a terminal version number; and storing a media asset type list corresponding to each terminal version number, wherein the type of the media asset type list is less than or equal to the type of the full amount of first page data.
In some embodiments, the terminal version list may also include a version number interval, where the version number interval includes multiple version numbers, for example, the version number interval is V10.1-V10.6, and the version numbers related in the same version number interval may correspond to the same first page cache data.
The server may further include an operation service module configured to determine a terminal version number of the first page cache data that needs to be generated; determining a corresponding media asset type list according to the terminal version number of the first page cache data needing to be generated; determining full header page data and changes of the full header page data, wherein the changes comprise addition of new coal resources, offline of old media resources and the like.
The database 14 is also configured to store full header data, and when a change occurs in the full header data, the corresponding full header data in the database is updated. The change of the full header page data is realized by the operation service module, including the addition of new coal resources, the offline of old media resources and the like.
The background service module 12 is configured to monitor the full amount of the first page data, and when the full amount of the first page data changes, trigger a task of generating the first page cache data according to the partial version in the cache service module. The tasks include: acquiring full homepage data, a terminal version list and a corresponding media asset type list in a database; traversing each terminal version number in the terminal version list, and obtaining a corresponding media asset type list according to the terminal version number; filtering the full amount of first page data according to the media asset type list to obtain first page cache data corresponding to the terminal version number, wherein the first page cache data has a cache index, and the cache index is obtained according to the terminal version number and a preset rule; and storing the first page cache data in the cache service module.
In some embodiments, result information of obtaining the first page cache data according to the version division of the terminal version may be recorded in the first page task table; if the task execution is abnormal, the first page cache data corresponding to the terminal version number is not obtained, abnormal information and abnormal reasons are recorded in the first page task table, and the first page task table is recorded in the database.
When the full-amount first page data is changed, generating full-amount bottom-guaranteeing data in the cache service module is triggered, and the full-amount bottom-guaranteeing data is obtained according to the full-amount first page data in an assembling mode.
In some embodiments, the changed full-size first page data is obtained from the database, assembled into full-size guaranteed data in a character string format or a JSON format, and the full-size guaranteed data is stored in the cache service module.
The operation service module data issuing service module 12 is configured to receive a request of the home page data of the intelligent device terminal, respond to the request of the home page data of the intelligent device terminal, and determine a cache index corresponding to a terminal version number carried by the request according to the terminal version number carried by the request and a preset rule; and inquiring the cache service module according to the cache index corresponding to the terminal version number carried by the request, and obtaining the first page cache data corresponding to the terminal version number carried by the request.
In some embodiments, the terminal version number needs to be checked, and when the terminal version number passes the check, a cache index is formed according to the terminal version number and a preset rule. The request may include other relevant parameters besides the terminal version number.
When the first page cache data corresponding to the terminal version number carried by the request is not obtained from the cache service module according to the cache index, the data delivery service module is configured to: obtaining a low version number of the intelligent equipment terminal, wherein the low version number is lower than the current version number by one grade; and obtaining a cache index corresponding to the low version number according to the low version number and the preset rule, and obtaining the first page cache data corresponding to the terminal version number carried by the request from the cache service module according to the cache index corresponding to the low version number.
When the lowest version number of the intelligent equipment terminal cannot obtain corresponding home page cache data, the data issuing service module is configured to obtain full-amount guaranteed data; and filtering the full-amount guaranteed-bottom data according to a media asset type list corresponding to the terminal version number carried by the request to obtain the first page cache data corresponding to the terminal version number.
In some embodiments, when the first page cache data corresponding to the terminal version number carried by the request is not obtained from the cache service module according to the cache index, the data delivery service module is configured to obtain full-amount guaranteed data from the cache service module; and filtering the full-amount guaranteed-bottom data according to a media asset type list corresponding to the terminal version number carried by the request to obtain the first page cache data corresponding to the terminal version number.
According to the technical scheme, the server comprises a data issuing service module, a background service module, a cache service module and a database. The background service module is configured to: monitoring full-amount home page data; when the total header page data is changed, a media asset type list corresponding to each terminal version number in the terminal version list is obtained from the database; and filtering the changed full amount of first page data according to the media asset type list to obtain first page cache data corresponding to the terminal version number, and storing the first page cache data to the cache service module. The data issuing service module is configured to receive a request of home page data of the intelligent device terminal, respond to the request of the home page data of the intelligent device terminal, and determine a cache index corresponding to a terminal version number carried by the request according to the terminal version number carried by the request and a preset rule; and according to the cache index corresponding to the terminal version number carried by the request, obtaining the first page cache data corresponding to the terminal version number carried by the request from the cache service module. According to the method and the device, different home page cache data are generated according to different intelligent device terminals, and when a home page data request of the intelligent device terminal is received, the corresponding home page cache data are issued to the intelligent device terminal, so that the interface response time is shortened.
Some embodiments of the present application provide a method for generating partial versions of home page cache data.
As shown in fig. 4, the operation service module confirms the full-amount top page data, the terminal version list, and the media asset type list corresponding to each terminal version number in the terminal version list according to the operation of the operator, and stores the list in the database. The method for generating the first page cache data by versions comprises the following steps:
and S110, determining the terminal version number of the first page cache data needing to be generated.
The terminal version number is the terminal version number of the first page cache data needing to be generated; or a terminal version interval, that is, the same asset type can be supported by multiple version numbers.
And S111, storing the terminal version number to a terminal version list of a database.
And storing all terminal version numbers of the first page cache data to be generated to obtain a terminal version list.
In some embodiments, the background service module may verify the version number of the terminal that needs to be saved, and store the version number of the terminal in the terminal version list after the verification is passed.
And S112, determining a media asset type list corresponding to the terminal version number.
And determining a media asset type list corresponding to each terminal version number in the terminal version list, wherein the type of the media asset type list is less than or equal to the type of the full amount of first page data. The asset type list may be stored in the form of an asset type code.
S113, storing the media asset type list to a database.
The list of asset types is dependent on a corresponding terminal version number of the terminal version list.
And S114, editing the full-amount home page data.
With the development of a service system, different types of media asset data exist, and for the full amount of first page data, all types of media asset data are included, so that with the development of the system, new media assets and old media assets which are offline are continuously added, and the full amount of first page data is changed. According to the method and the device, the fast feedback of the homepage data request is realized according to the homepage cache data corresponding to different terminal version numbers of the changed full homepage data.
And S115, storing the full amount of first page data to a database.
After the full amount of first page data is changed every time, the changed full amount of first page data is stored in the database.
As shown in fig. 5, a background service module in a server monitors changes of the full-amount top page data in real time, generates top page cache data corresponding to different terminal version numbers according to the changes of the full-amount top page data, and stores the top page cache data in a cache service module, so as to respond to a request of the top page data of an intelligent device terminal, where the top page cache data version generation method further includes the following steps:
and S120, monitoring the change of the full-amount first page data.
When the full size first page data is changed, the changed full size first page data in the database is obtained through step S121.
And S122, inquiring the terminal version list.
Acquiring a terminal version list in a database, traversing the inquired terminal version list, and performing the following operations on each terminal version number:
and S123, inquiring a media asset type list corresponding to the terminal version number.
And S124, filtering the full amount of top page data according to the media asset type list. And S125, obtaining the first page cache data corresponding to the terminal version number.
And filtering the full amount of first page data, filtering the media assets of which the media asset types are not in the media asset type list in the full amount of first page data, and generating first page cache data formed by the media assets of the terminal support type. The first page cache data is provided with a cache index, and the cache index key is generated according to the corresponding terminal version number and a preset rule. And S126, storing the first page cache data to the cache service module through the cache index. The first page cache data corresponding to each terminal version number can be inquired through the cache index.
And S127, recording the result information to a first page task table of the database.
And the cache service module generates result information after receiving the first page cache data, namely generates corresponding first page cache data according to the terminal version number and records the result information in a first page task table in a database. When the background service module cannot obtain the first page cache data corresponding to the terminal version number or when the cache service module does not receive the first page cache data and other abnormal conditions, abnormal information can be generated, and the abnormal information and the reasons causing the abnormal information are recorded in a first page task table in the database.
As shown in fig. 6, when the total amount of the first page data is changed, the method for generating the partial versions of the first page cache data further includes the following steps:
and S128, generating full-scale guaranteed-base data.
And obtaining the changed full-amount first page data from the database, wherein the full-amount bottom-keeping data is obtained by assembling according to the changed full-amount first page data. And S129, storing the full-amount guaranteed data to a cache service module.
By generating the full-amount bottom-guaranteeing data, when the request of the home page data of the intelligent equipment terminal is responded and the home page cache data is not obtained from the cache service module, the home page cache data corresponding to the intelligent equipment terminal can be obtained through the full-amount bottom-guaranteeing data, and the overall stability and reliability are improved.
As shown in fig. 7, after the data delivery service module receives a request of the home page data from the intelligent device terminal, the method for generating the home page cache data sub-version includes the following steps: s131, determining a cache index corresponding to the terminal version number according to the terminal version number carried by the request and a preset rule.
The cache index determined by the data issuing service module is the same as the cache index determined by the background service module, and the same cache index is determined in the same way, so that the first page cache data corresponding to the terminal version number carried in the request can be conveniently obtained from the cache service module.
S132, inquiring the cache service module according to the cache index.
And when the corresponding home page cache data is inquired, sending the home page cache data to the intelligent equipment terminal. When the corresponding first page cache data is not queried according to the cache index, circularly querying through the following steps:
and S133, acquiring a low version number which is one level lower than the current version number.
And determining a low version number which is lower than the current version number by one grade for subsequent query operation every time of circulation until corresponding first page cache data is queried for being output to the intelligent device terminal. And in the first circulation, the terminal version number carried by the request is taken as the current version number.
And S134, determining the cache index corresponding to the low version number according to the low version number and a preset rule.
And S135, inquiring the cache service module according to the cache index.
If the first page cache data is not queried through the circulation, the first page cache data is obtained through the following steps:
and S136, acquiring full-amount warranty data. And obtaining full-amount warranty data from the cache service module.
And S137, filtering the full-amount guaranteed-base data according to the media asset type list, and assembling the home page cache data.
And filtering the full-amount guaranteed-bottom data according to a media asset type list corresponding to the terminal version number carried by the request, and assembling the first page cache data.
According to the technical scheme, the method for generating the partial versions of the home page cache data comprises the steps of monitoring the full-amount home page data; when the full amount of header page data is changed, a media asset type list corresponding to each terminal version number in the terminal version list is obtained from a database; filtering the changed total first page data according to the media asset type list to obtain first page cache data corresponding to the terminal version number, and storing the first page cache data into a cache service module, wherein the first page cache data has a cache index, and the cache index is obtained according to the terminal version number and a preset rule; receiving a request of home page data of an intelligent device terminal, and determining a cache index corresponding to a terminal version number carried by the request according to the terminal version number carried by the request and a preset rule; and according to the cache index corresponding to the terminal version number carried by the request, obtaining the first page cache data corresponding to the terminal version number carried by the request from the cache service module. According to the method for generating the homepage cache data versions, different homepage cache data are generated according to different intelligent device terminals, when homepage data requests of the intelligent device terminals are received, the corresponding homepage cache data are issued to the intelligent device terminals, the interface response time is shortened, meanwhile, each intelligent device terminal generates an independent homepage cache file, and CDN (content delivery network) distribution is facilitated.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the embodiments to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.

Claims (10)

1. A server, comprising:
a cache service module;
the database is configured to store full-amount home page data, a terminal version list and a media asset type list corresponding to each terminal version number in the terminal version list;
a processing module configured to:
monitoring full-amount home page data;
when the full amount of home page data is changed, obtaining a media asset type list corresponding to each terminal version number in the terminal version list from the database; filtering the changed full amount of first page data according to the media asset type list to obtain first page cache data corresponding to the terminal version number, and storing the first page cache data to the cache service module; the first page cache data is provided with a cache index, and the cache index is obtained according to the terminal version number and a preset rule;
receiving a request of home page data of an intelligent device terminal, responding to the request of the home page data of the intelligent device terminal, and determining a cache index corresponding to a terminal version number carried by the request according to the terminal version number carried by the request and a preset rule;
and according to the cache index corresponding to the terminal version number carried by the request, obtaining the first page cache data corresponding to the terminal version number carried by the request from the cache service module.
2. The server of claim 1, wherein when the full amount of first page data changes, the processing module is further configured to:
generating total guarantee data, and storing the total guarantee data in the cache service module, wherein the total guarantee data is obtained by assembling according to the changed total homepage data.
3. The server according to claim 1, wherein after the full amount of the first page data is changed, obtaining the first page cache data and storing the first page cache data to the cache service module, the processing module is further configured to:
and recording result information generated according to the terminal version number and corresponding to the home page cache data to a home page task table in the database.
4. The server according to claim 1, wherein after the full amount of the first page data is changed, the first page cache data is not obtained, the processing module is further configured to:
and recording exception information and reasons causing the exceptions to a first page task table in the database.
5. The server according to claim 1, wherein when the first page cache data corresponding to the terminal version number carried in the request is not obtained from the cache service module according to the cache index, the processing module is configured to:
obtaining a low version number of the intelligent equipment terminal, wherein the low version number is lower than the current version number by one grade;
obtaining a cache index corresponding to the low version number according to the low version number and the preset rule;
and according to the cache index corresponding to the low version number, obtaining the first page cache data corresponding to the terminal version number carried by the request from the cache service module.
6. The server according to claim 2, wherein when the terminal version number carried by the request cannot obtain the corresponding home page cache data from the cache service module, the processing module is configured to:
obtaining the full-amount warranty data from a cache service module;
and filtering the full-amount guaranteed-bottom data according to a media asset type list corresponding to the terminal version number carried by the request to obtain the first page cache data corresponding to the terminal version number.
7. The server according to any one of claims 1-6, wherein the processing module comprises a background services module configured to:
monitoring full-amount home page data;
when the full amount of first page data is changed, obtaining a media asset type list corresponding to each terminal version number in the terminal version list from the database, wherein the terminal version list comprises all terminal version numbers of first page cache data to be generated;
and filtering the changed total first page data according to the media asset type list to obtain first page cache data corresponding to the terminal version number, and storing the first page cache data to the cache service module, wherein the first page cache data has a cache index, and the cache index is obtained according to the terminal version number and a preset rule.
8. The server according to any one of claims 1-6, wherein the processing module comprises a data delivery service module configured to:
receiving a request of home page data of an intelligent device terminal, responding to the request of the home page data of the intelligent device terminal, and determining a cache index corresponding to a terminal version number carried by the request according to the terminal version number carried by the request and a preset rule;
and according to the cache index corresponding to the terminal version number carried by the request, obtaining the first page cache data corresponding to the terminal version number carried by the request from the cache service module.
9. A method for generating partial versions of home page cache data is characterized by comprising the following steps:
monitoring full-amount home page data;
when the full amount of header page data is changed, a media asset type list corresponding to each terminal version number in the terminal version list is obtained from a database;
filtering the changed total homepage data according to the media asset type list to obtain homepage cache data corresponding to the terminal version number, and storing the homepage cache data into a cache service module, wherein the homepage cache data has a cache index, and the cache index is obtained according to the terminal version number and a preset rule;
receiving a request of home page data of an intelligent device terminal, and determining a cache index corresponding to a terminal version number carried by the request according to the terminal version number carried by the request and a preset rule;
and according to the cache index corresponding to the terminal version number carried by the request, obtaining the first page cache data corresponding to the terminal version number carried by the request from the cache service module.
10. The method for generating partial versions of top page cache data according to claim 9, wherein when the full amount of top page data changes, the method further comprises:
generating full-amount warranty data, and storing the full-amount warranty data in a cache service module, wherein the full-amount warranty data is obtained by assembling the changed full-amount first page data.
CN202210405358.7A 2022-04-18 2022-04-18 Server and home page cache data version generation method Pending CN114722046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210405358.7A CN114722046A (en) 2022-04-18 2022-04-18 Server and home page cache data version generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210405358.7A CN114722046A (en) 2022-04-18 2022-04-18 Server and home page cache data version generation method

Publications (1)

Publication Number Publication Date
CN114722046A true CN114722046A (en) 2022-07-08

Family

ID=82243062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210405358.7A Pending CN114722046A (en) 2022-04-18 2022-04-18 Server and home page cache data version generation method

Country Status (1)

Country Link
CN (1) CN114722046A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104573035A (en) * 2015-01-16 2015-04-29 杭州犀照科技有限公司 Caching service method and device and news information obtaining method and system
CN106980625A (en) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 A kind of method of data synchronization, apparatus and system
CN109614404A (en) * 2018-11-01 2019-04-12 阿里巴巴集团控股有限公司 A kind of data buffering system and method
CN111563102A (en) * 2020-04-10 2020-08-21 中国联合网络通信集团有限公司 Cache updating method, server, system and storage medium
CN113448649A (en) * 2021-07-06 2021-09-28 聚好看科技股份有限公司 Redis-based home page data loading server and method
CN114143376A (en) * 2021-11-18 2022-03-04 青岛聚看云科技有限公司 Server for loading cache, display equipment and resource playing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104573035A (en) * 2015-01-16 2015-04-29 杭州犀照科技有限公司 Caching service method and device and news information obtaining method and system
CN106980625A (en) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 A kind of method of data synchronization, apparatus and system
CN109614404A (en) * 2018-11-01 2019-04-12 阿里巴巴集团控股有限公司 A kind of data buffering system and method
CN111563102A (en) * 2020-04-10 2020-08-21 中国联合网络通信集团有限公司 Cache updating method, server, system and storage medium
CN113448649A (en) * 2021-07-06 2021-09-28 聚好看科技股份有限公司 Redis-based home page data loading server and method
CN114143376A (en) * 2021-11-18 2022-03-04 青岛聚看云科技有限公司 Server for loading cache, display equipment and resource playing method

Similar Documents

Publication Publication Date Title
CN111263409B (en) Method, system and related equipment for providing metadata information of network function service
CN111580884A (en) Configuration updating method and device, server and electronic equipment
CN106775841B (en) Method, system and device for upgrading plug-in
CN112506670B (en) Multi-node automatic operation and maintenance task processing method, system and storage medium
CN111061498B (en) Configuration information management system
CN111538563A (en) Event analysis method and device for Kubernetes
CN102271052A (en) Network system, network management device and gateway device
CN112636979B (en) Cluster alarm method and related device
CN112543222B (en) Data processing method and device, computer equipment and storage medium
CN113645304A (en) Data service processing method and related equipment
CN111526185B (en) Data downloading method, device, system and storage medium
CN114222086B (en) Method, system, medium and electronic device for scheduling audio and video code stream
CN108877188A (en) A kind of environment protection digital concurrently acquires and Multi net voting dissemination method and device
CN112087327B (en) Information state acquisition method and apparatus, storage medium, and electronic apparatus
JP2011133985A (en) System, and method for managing configuration information, device and program for managing distributed information
CN113596087A (en) Application upgrading method and device and computer readable storage medium
CN112631687A (en) Configuration method, device and equipment of service cluster
CN114722046A (en) Server and home page cache data version generation method
CN110968475A (en) Method and device for monitoring webpage, electronic equipment and readable storage medium
CN109684279B (en) Data processing method and system
CN111107170B (en) DNS system and management method thereof
CN113114511A (en) Method and device for generating port description information of network equipment
CN114745419B (en) Method, device, equipment and storage medium for acquiring terminal MAC address
CN112866140B (en) Service matching method, gateway management platform, gateway equipment and server
CN111294231A (en) Resource management method and system

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