CN112347363A - Page generation method and device - Google Patents

Page generation method and device Download PDF

Info

Publication number
CN112347363A
CN112347363A CN202011292515.5A CN202011292515A CN112347363A CN 112347363 A CN112347363 A CN 112347363A CN 202011292515 A CN202011292515 A CN 202011292515A CN 112347363 A CN112347363 A CN 112347363A
Authority
CN
China
Prior art keywords
page data
page
general
data
local 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
Application number
CN202011292515.5A
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.)
Beijing Baijia Technology Group Co ltd
Original Assignee
Beijing Baijia Technology Group 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 Beijing Baijia Technology Group Co ltd filed Critical Beijing Baijia Technology Group Co ltd
Priority to CN202011292515.5A priority Critical patent/CN112347363A/en
Publication of CN112347363A publication Critical patent/CN112347363A/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/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a page generation method and device, which can respond to a page acquisition request of a client, determine a data list required by generating a target page based on the page acquisition request, acquire general page data recorded in the data list through a local cache of a service server or a file server corresponding to the general page data, acquire personalized page data recorded in the data list from a database, generate the target page according to the general page data and the personalized page data, and send the generated target page to the client. The page generation method provided by the embodiment of the disclosure can acquire general page data from a local cache of a business server or a file server, and the local cache can share pressure for the file server, so that the low efficiency of the file server caused by the overhigh load during the peak request period is avoided, and the probability of errors of the file server is reduced.

Description

Page generation method and device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a page generation method and apparatus.
Background
In the process that a user participates in a certain activity through a network, an activity page is usually requested to a service server through a client, and data of the activity and the user can be presented in the activity page.
However, the number of users participating in an activity may be large, and when the number of requested active pages is large in the same period of time, the efficiency of acquiring data may be reduced or even the acquisition may fail due to the high load of the file server.
Disclosure of Invention
The embodiment of the disclosure at least provides a page generation method and device.
In a first aspect, an embodiment of the present disclosure provides a page generation method, applied to a service server, including:
responding to a page acquisition request of a client, and determining a data list required by generating a target page based on the page acquisition request; the data list comprises general page data corresponding to the target page and identification information of personalized page data;
based on the identification information of the general page data, acquiring the general page data through a local cache of the service server or a file server corresponding to the general page data; acquiring the personalized page data from a database corresponding to the personalized page data based on the identification information of the personalized page data;
and generating the target page based on the acquired general page data and the personalized page data, and sending the target page to the client.
In an optional implementation manner, acquiring the general page data through a local cache of the service server or a file server corresponding to the general page data based on the identification information of the general page data includes:
searching the general page data from a local cache of the service server based on the identification information of the general page data;
under the condition that the universal page data are found, acquiring the universal page data from a local cache of the service server;
and under the condition that the universal page data is not found, acquiring the universal page data from the file server.
In an optional embodiment, after obtaining the generic page data from the file server, the method further includes:
and storing the general page data into a local cache of the service server.
In an optional embodiment, the method further comprises:
and when the time length of the general page data stored in the local cache exceeds the preset time length, clearing the general page data from the local cache.
In an optional embodiment, the method further comprises:
and when the number of the general page data stored in the local cache is greater than or equal to the preset number, removing the general page data with the lowest frequency acquired by the service server from the local cache.
In an optional implementation, storing the general page data in a local cache of the service server includes:
and if the quantity of the general page data stored in the local cache is equal to a preset upper limit value, removing the general page data with the lowest frequency acquired by the service server from the local cache, and then storing the general page data acquired from the file server into the local cache.
In an optional embodiment, determining, based on the page obtaining request, a data list required for generating a target page includes:
determining an activity theme to which the target page belongs based on the activity identifier indicated in the page acquisition request, and determining identifier information of general page data matched with the activity theme;
and determining the identification information of the personalized page data corresponding to the target page based on the user identification indicated in the page acquisition request and the preset user information type.
In a second aspect, an embodiment of the present disclosure further provides a page generating apparatus, configured to a service server, where the page generating apparatus includes:
the response module is used for responding to a page acquisition request of a client and determining a data list required by generating a target page based on the page acquisition request; the data list comprises general page data corresponding to the target page and identification information of personalized page data;
the acquisition module is used for acquiring the general page data through a local cache of the service server or a file server corresponding to the general page data based on the identification information of the general page data; acquiring the personalized page data from a database corresponding to the personalized page data based on the identification information of the personalized page data;
and the generating module is used for generating the target page based on the acquired general page data and the personalized page data and sending the target page to the client.
In an optional implementation manner, the obtaining module is specifically configured to:
searching the general page data from a local cache of the service server based on the identification information of the general page data;
under the condition that the universal page data are found, acquiring the universal page data from a local cache of the service server;
and under the condition that the universal page data is not found, acquiring the universal page data from the file server.
In an alternative embodiment, the apparatus further comprises:
and the storage module is used for storing the general page data into a local cache of the service server after the general page data is acquired from the file server.
In an alternative embodiment, the apparatus further comprises:
and the clearing module is used for clearing the general page data from the local cache when the time length of the general page data stored in the local cache exceeds the preset time length.
In an optional embodiment, the purge module is further configured to:
and when the number of the general page data stored in the local cache is greater than or equal to the preset number, removing the general page data with the lowest frequency acquired by the service server from the local cache.
In an optional implementation manner, the storage module is specifically configured to:
and if the quantity of the general page data stored in the local cache is equal to a preset upper limit value, removing the general page data with the lowest frequency acquired by the service server from the local cache, and then storing the general page data acquired from the file server into the local cache.
In an optional implementation manner, the response module is specifically configured to:
determining an activity theme to which the target page belongs based on the activity identifier indicated in the page acquisition request, and determining identifier information of general page data matched with the activity theme;
and determining the identification information of the personalized page data corresponding to the target page based on the user identification indicated in the page acquisition request and the preset user information type.
In a third aspect, an embodiment of the present disclosure further provides a computer device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect described above, or any possible implementation of the first aspect.
In a fourth aspect, this disclosed embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps in the first aspect or any one of the possible implementation manners of the first aspect.
For the description of the effects of the page generation apparatus, the computer device, and the computer-readable storage medium, reference is made to the description of the page generation method, which is not repeated herein.
The page generation method and device provided by the embodiment of the disclosure can respond to a page acquisition request of a client, determine a data list required by generating a target page based on the page acquisition request, acquire general page data recorded in the data list through a local cache of a service server or a file server corresponding to the general page data, acquire personalized page data recorded in the data list from a database, generate the target page according to the general page data and the personalized page data, and send the generated target page to the client. The page generation method provided by the embodiment of the disclosure can acquire general page data from a local cache of a business server or a file server, and the local cache can share pressure for the file server, so that the low efficiency of the file server caused by the overhigh load during the peak request period is avoided, and the probability of errors of the file server is reduced.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
Fig. 1 is a schematic diagram illustrating a page generation system provided by an embodiment of the present disclosure;
fig. 2 shows a flowchart of a page generation method provided by the embodiment of the present disclosure;
fig. 3 is a schematic diagram illustrating a page generation apparatus provided in an embodiment of the present disclosure;
fig. 4 shows a schematic diagram of a computer device provided by an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
With the rapid development of computer technology and the popularization of intelligent terminals, users can use intelligent terminals to complete various tasks, for example, users can use intelligent terminals to access some pages, when users participate in some activities through a network, users can request activity pages corresponding to the activities from a service server, the activity pages can present data of the activities and the users, for the same activity, the data corresponding to the activities are generally general page data, the activity data in the activity pages corresponding to different users are the same, for example, in the activity pages of the same activity, data such as a base map, a frame, a propaganda image and the like are the same, but data related to the users in the activity pages may be different, for example, the activity pages may include personalized page data such as nicknames, identification marks, head images and the like of the users, the personalized page data of different users need to be obtained from databases of the corresponding users, the general page data can be obtained from the database corresponding to the activity. However, the number of users participating in an activity may be large, and when the number of requested active pages is large in the same period of time, the efficiency of acquiring data may be reduced or even the acquisition may fail due to the high load of the file server.
Based on the above research, the present disclosure provides a page generation method, which can obtain general page data from a local cache of a service server or a file server, where the local cache can share pressure for the file server, avoid the file server from having low efficiency due to an excessively high load at a request peak, and reduce the probability of an error occurring in the file server.
The above-mentioned drawbacks are the results of the inventor after practical and careful study, and therefore, the discovery process of the above-mentioned problems and the solutions proposed by the present disclosure to the above-mentioned problems should be the contribution of the inventor in the process of the present disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
To facilitate understanding of the present embodiment, first, a page generation system corresponding to a page generation method disclosed in the present embodiment is described in detail, referring to fig. 1, which is a schematic diagram of the page generation system provided in the present embodiment, the page generation system provided in the present embodiment may be composed of a client, a service server, and a file server, where the client may be a computer device with certain computing capability, such as a terminal device, and may request an active page from the service server, the service server may respond to a request sent by the client to obtain general page data and personalized page data for generating the active page, the file server may store the general page data, and the service server may request the file server for the general page data.
Referring to fig. 2, which is a flowchart of a page generation method provided in the embodiment of the present disclosure, the method may be applied to a service server, and includes steps S201 to S203, where:
s201: responding to a page acquisition request of a client, and determining a data list required by generating a target page based on the page acquisition request; the data list comprises general page data corresponding to the target page and identification information of personalized page data.
In this step, the client may send a page obtaining request to the service server, where the page obtaining request may carry an activity identifier and a user identifier, and after receiving the page obtaining request, the service server may generate a target page corresponding to the target user in the target activity according to the activity identifier and the user identifier.
The target page can be a webpage, a picture, a poster and other forms of pages, the target page can contain data of users and activities, the data of the activities in the target page corresponding to the same activity are the same, the data of the users are different according to the users, the data which is common in different pages is common page data, and the data which is not common in different pages is personalized page data.
Exemplary, the general page data may include: the personalized page data can comprise data such as a base map, a background map, a frame map and the like: a nickname of the user, a head portrait of the user, a user number, user preset information and the like.
In one possible implementation, determining a data list required for generating a target page based on the page obtaining request includes:
determining an activity theme to which the target page belongs based on the activity identifier indicated in the page acquisition request, and determining identifier information of general page data matched with the activity theme;
and determining the identification information of the personalized page data corresponding to the target page based on the user identification indicated in the page acquisition request and the preset user information type.
In this step, the service server may determine an activity topic to which the target page belongs according to the activity identifier, and obtain identifier information of the general page data matched with the activity topic, where the identifier information of the activity topic and the general page data may be pre-configured and may be configured according to the requirement and content of the activity.
Meanwhile, the service server may further determine the identification information of the personalized page data corresponding to the target page according to the user identifier indicated in the page acquisition request and the preset user information type, for example, if the target page needs to include the nickname and the avatar of the user, the user type information may be set to be the nickname and the avatar, and the obtained identification information of the personalized page data may be the user identifier plus the nickname plus the avatar by using the user identifier.
The user information type can be determined according to the content of the activity, and different activity topics can be configured with corresponding user information types. After the identification information of the personalized page data is determined, the personalized page data may be obtained from the database corresponding to the identification information, for example, if the identification information is "user identification" + "nickname" + "avatar", the nickname data and avatar data of the user corresponding to the "user identification" may be obtained from the database corresponding to the "nickname" and the "avatar".
S202: based on the identification information of the general page data, acquiring the general page data through a local cache of the service server or a file server corresponding to the general page data; and acquiring the personalized page data from a database corresponding to the personalized page data based on the identification information of the personalized page data.
In this step, after determining the identification information of the general page data and the personalized page data, the service server may search the general page data from the local exchange of the service server by using the identification information of the general page data, or request the general page data from the file server in which the general page data is stored.
In a possible implementation manner, acquiring the general page data through a local cache of the service server or a file server corresponding to the general page data based on the identification information of the general page data includes:
searching the general page data from a local cache of the service server based on the identification information of the general page data;
under the condition that the universal page data are found, acquiring the universal page data from a local cache of the service server;
and under the condition that the universal page data is not found, acquiring the universal page data from the file server.
In this step, the service server may first search the general page data from the local cache according to the identification information of the general page data, obtain the general page data from the local cache if the general page data is found, request the general page data from the file server if the general page data is not found, and the file server may correspondingly obtain the request of the general page data and send the general page data to the service server according to the identification information of the general page data sent by the service server.
After the service server acquires the general page data from the file server, the general page data can be stored in a local cache of the service server, so that the general page data can be directly acquired from the local cache when the general page data needs to be acquired again, the local cache can share the pressure for the file server, the low efficiency of the file server caused by the overhigh load during the request peak period is avoided, and the error probability of the file server is reduced.
Specifically, the general page data may be stored in the local cache of the service server through the following steps:
and if the quantity of the general page data stored in the local cache is equal to a preset upper limit value, removing the general page data with the lowest frequency acquired by the service server from the local cache, and then storing the general page data acquired from the file server into the local cache.
In this step, an upper limit value for storing the number of the general page data may be set for the local cache, before the general page is stored in the local cache, the number of the general page data stored in the local cache may be determined, and if the number of the general page data is equal to the preset upper limit value, the general page data with the lowest frequency acquired by the service server may be removed from the local cache, and then the general page data acquired from the file server may be stored in the local cache, so that storage failure due to insufficient local cache space may be reduced to a certain extent.
Specifically, the Guava Cache may be used to store the general page data into the local Cache.
Further, when the time length of the general page data stored in the local cache exceeds the preset time length, the general page data is removed from the local cache.
Therefore, effective time can be set for the general page data in the local cache, and the general page data is cleared from the local cache when the time length of the general page data stored in the local cache exceeds the preset time length, so that the difference between the local cache and the general page data in the file server is prevented, and the general page data can be prevented from occupying the local cache for a long time.
Further, the method may further include:
and when the number of the general page data stored in the local cache is greater than or equal to the preset number, removing the general page data with the lowest frequency acquired by the service server from the local cache.
In this step, on the basis of setting the valid time, the upper limit of the number of the stored general page data may be set by the local cache, and if the number of the general page data stored in the local cache is greater than or equal to the preset number, one general page data with the lowest number of times acquired by the service server may be selected from the stored general page data and is removed from the local cache. Therefore, after the service server stores the universal page data to the local cache, the number of the universal page data stored in the local cache can be controlled within the preset number, the space of the local cache can be saved, and the overlarge occupation space of the page data in the local cache is prevented.
Wherein a Least Recently Used (LRU) algorithm may be utilized to determine whether the common page data in the local cache needs to be purged.
S203: and generating the target page based on the acquired general page data and the personalized page data, and sending the target page to the client.
In this step, a target page can be generated according to the general page data, the personalized page data and the preset page structure, and then the target page is fed back to the client.
The page generation method provided by the embodiment of the disclosure can respond to a page acquisition request of a client, determine a data list required by generating a target page based on the page acquisition request, acquire general page data recorded in the data list through a local cache of a service server or a file server corresponding to the general page data, acquire personalized page data recorded in the data list from a database, generate the target page according to the general page data and the personalized page data, and send the generated target page to the client. The page generation method provided by the embodiment of the disclosure can acquire general page data from a local cache of a business server or a file server, and the local cache can share pressure for the file server, so that the low efficiency of the file server caused by the overhigh load during the peak request period is avoided, and the probability of errors of the file server is reduced.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, the embodiment of the present disclosure further provides a page generating apparatus corresponding to the page generating method, and as the principle of the apparatus in the embodiment of the present disclosure for solving the problem is similar to the page generating method in the embodiment of the present disclosure, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not repeated.
Referring to fig. 3, which is a schematic diagram of an architecture of a page generating apparatus according to an embodiment of the present disclosure, the page generating apparatus 300 includes: a response module 310, an obtaining module 320, and a generating module 330; wherein the content of the first and second substances,
a response module 410, configured to respond to a page obtaining request of a client, and determine, based on the page obtaining request, a data list required for generating a target page; the data list comprises general page data corresponding to the target page and identification information of personalized page data;
an obtaining module 320, configured to obtain the general page data through a local cache of the service server or a file server corresponding to the general page data based on the identification information of the general page data; acquiring the personalized page data from a database corresponding to the personalized page data based on the identification information of the personalized page data;
the generating module 330 is configured to generate the target page based on the acquired general page data and the acquired personalized page data, and send the target page to the client.
The embodiment of the disclosure can acquire the general page data from the local cache of the service server or the file server, and the local cache can share the pressure for the file server, thereby avoiding the low efficiency of the file server caused by the overhigh load during the request peak period and reducing the probability of the error of the file server.
In a possible implementation manner, the obtaining module 320 is specifically configured to:
searching the general page data from a local cache of the service server based on the identification information of the general page data;
under the condition that the universal page data are found, acquiring the universal page data from a local cache of the service server;
and under the condition that the universal page data is not found, acquiring the universal page data from the file server.
In a possible implementation manner, the page generating apparatus 300 further includes:
the storage module 340 is configured to store the general page data into the local cache of the service server after obtaining the general page data from the file server.
In a possible implementation manner, the storage module 340 is specifically configured to:
and if the quantity of the general page data stored in the local cache is equal to a preset upper limit value, removing the general page data with the lowest frequency acquired by the service server from the local cache, and then storing the general page data acquired from the file server into the local cache.
In a possible implementation manner, the page generating apparatus 300 further includes:
a clearing module 350, configured to clear the general page data from the local cache when a duration that the general page data is stored in the local cache exceeds a preset duration.
In a possible implementation, the purge module 350 is further configured to:
and when the number of the general page data stored in the local cache is greater than or equal to the preset number, removing the general page data with the lowest frequency acquired by the service server from the local cache.
In a possible implementation manner, the response module 310 is specifically configured to:
determining an activity theme to which the target page belongs based on the activity identifier indicated in the page acquisition request, and determining identifier information of general page data matched with the activity theme;
and determining the identification information of the personalized page data corresponding to the target page based on the user identification indicated in the page acquisition request and the preset user information type.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Based on the same technical concept, the embodiment of the disclosure also provides computer equipment. Referring to fig. 4, a schematic structural diagram of a computer device 400 provided in the embodiment of the present disclosure includes a processor 401, a memory 402, and a bus 403. The memory 402 is used for storing execution instructions and includes a memory 4021 and an external memory 4022; the memory 4021 is also referred to as an internal memory, and is configured to temporarily store operation data in the processor 401 and data exchanged with an external memory 4022 such as a hard disk, the processor 401 exchanges data with the external memory 4022 through the memory 4021, and when the computer device 400 operates, the processor 401 communicates with the memory 402 through the bus 403, so that the processor 401 executes the following instructions:
responding to a page acquisition request of a client, and determining a data list required by generating a target page based on the page acquisition request; the data list comprises general page data corresponding to the target page and identification information of personalized page data;
based on the identification information of the general page data, acquiring the general page data through a local cache of the service server or a file server corresponding to the general page data; acquiring the personalized page data from a database corresponding to the personalized page data based on the identification information of the personalized page data;
and generating the target page based on the acquired general page data and the personalized page data, and sending the target page to the client.
In a possible implementation manner, in an instruction executed by the processor 401, based on the identification information of the general page data, acquiring the general page data through a local cache of the service server or a file server corresponding to the general page data includes:
searching the general page data from a local cache of the service server based on the identification information of the general page data;
under the condition that the universal page data are found, acquiring the universal page data from a local cache of the service server;
and under the condition that the universal page data is not found, acquiring the universal page data from the file server.
In a possible implementation, after obtaining the general page data from the file server, the processor 401 is further configured to:
and storing the general page data into a local cache of the service server.
In a possible implementation manner, the storing, in the instructions executed by the processor 401, the general page data in a local cache of the service server includes:
and if the quantity of the general page data stored in the local cache is equal to a preset upper limit value, removing the general page data with the lowest frequency acquired by the service server from the local cache, and then storing the general page data acquired from the file server into the local cache.
In one possible implementation, the processor 401 is further configured to perform:
and when the time length of the general page data stored in the local cache exceeds the preset time length, clearing the general page data from the local cache.
In one possible implementation, the processor 401 is further configured to perform:
and when the number of the general page data stored in the local cache is greater than or equal to the preset number, removing the general page data with the lowest frequency acquired by the service server from the local cache.
In a possible implementation manner, the determining, by the processor 401, a data list required for generating the target page based on the page obtaining request includes:
determining an activity theme to which the target page belongs based on the activity identifier indicated in the page acquisition request, and determining identifier information of general page data matched with the activity theme;
and determining the identification information of the personalized page data corresponding to the target page based on the user identification indicated in the page acquisition request and the preset user information type.
The embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the page generation method in the foregoing method embodiments. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The embodiments of the present disclosure also provide a computer program product, where the computer program product carries a program code, and instructions included in the program code may be used to execute the steps of the page generating method in the foregoing method embodiments, which may be referred to specifically in the foregoing method embodiments, and are not described herein again.
The computer program product may be implemented by hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A page generation method is applied to a service server, and the method comprises the following steps:
responding to a page acquisition request of a client, and determining a data list required by generating a target page based on the page acquisition request; the data list comprises general page data corresponding to the target page and identification information of personalized page data;
based on the identification information of the general page data, acquiring the general page data through a local cache of the service server or a file server corresponding to the general page data; acquiring the personalized page data from a database corresponding to the personalized page data based on the identification information of the personalized page data;
and generating the target page based on the acquired general page data and the personalized page data, and sending the target page to the client.
2. The method according to claim 1, wherein acquiring the general page data through a local cache of the service server or a file server corresponding to the general page data based on the identification information of the general page data comprises:
searching the general page data from a local cache of the service server based on the identification information of the general page data;
under the condition that the universal page data are found, acquiring the universal page data from a local cache of the service server;
and under the condition that the universal page data is not found, acquiring the universal page data from the file server.
3. The method of claim 2, wherein after obtaining the generic page data from the file server, the method further comprises:
and storing the general page data into a local cache of the service server.
4. The method of claim 3, further comprising:
and when the time length of the general page data stored in the local cache exceeds the preset time length, clearing the general page data from the local cache.
5. The method of claim 4, further comprising:
and when the number of the general page data stored in the local cache is greater than or equal to the preset number, removing the general page data with the lowest frequency acquired by the service server from the local cache.
6. The method of claim 3, wherein storing the generic page data in a local cache of the service server comprises:
and if the quantity of the general page data stored in the local cache is equal to a preset upper limit value, removing the general page data with the lowest frequency acquired by the service server from the local cache, and then storing the general page data acquired from the file server into the local cache.
7. The method of claim 1, wherein determining a data manifest required for generating a target page based on the page fetch request comprises:
determining an activity theme to which the target page belongs based on the activity identifier indicated in the page acquisition request, and determining identifier information of general page data matched with the activity theme;
and determining the identification information of the personalized page data corresponding to the target page based on the user identification indicated in the page acquisition request and the preset user information type.
8. A page generating apparatus, for a service server, comprising:
the response module is used for responding to a page acquisition request of a client and determining a data list required by generating a target page based on the page acquisition request; the data list comprises general page data corresponding to the target page and identification information of personalized page data;
the acquisition module is used for acquiring the general page data through a local cache of the service server or a file server corresponding to the general page data based on the identification information of the general page data; acquiring the personalized page data from a database corresponding to the personalized page data based on the identification information of the personalized page data;
and the generating module is used for generating the target page based on the acquired general page data and the personalized page data and sending the target page to the client.
9. A computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when a computer device is run, the machine-readable instructions when executed by the processor performing the steps of the page generation method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, performs the steps of the page generation method according to any one of claims 1 to 7.
CN202011292515.5A 2020-11-18 2020-11-18 Page generation method and device Pending CN112347363A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011292515.5A CN112347363A (en) 2020-11-18 2020-11-18 Page generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011292515.5A CN112347363A (en) 2020-11-18 2020-11-18 Page generation method and device

Publications (1)

Publication Number Publication Date
CN112347363A true CN112347363A (en) 2021-02-09

Family

ID=74362863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011292515.5A Pending CN112347363A (en) 2020-11-18 2020-11-18 Page generation method and device

Country Status (1)

Country Link
CN (1) CN112347363A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112819554A (en) * 2021-02-24 2021-05-18 招联消费金融有限公司 Business processing method and device based on page operation and computer equipment
CN113434234A (en) * 2021-06-29 2021-09-24 青岛海尔科技有限公司 Page jump method, device, computer readable storage medium and processor
CN116739612A (en) * 2023-08-14 2023-09-12 杭州阿里巴巴海外数字商业有限公司 Method for displaying rights and interests information and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488135A (en) * 2008-01-14 2009-07-22 盛大计算机(上海)有限公司 Designing and acquiring method for delayed personalized web page
CN103678479A (en) * 2013-09-30 2014-03-26 北京搜狗科技发展有限公司 Method, device and browser for accelerating browser pre-reading
CN103793538A (en) * 2014-03-06 2014-05-14 赛特斯信息科技股份有限公司 System and method for realizing restoration of web service in case of crash of database

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488135A (en) * 2008-01-14 2009-07-22 盛大计算机(上海)有限公司 Designing and acquiring method for delayed personalized web page
CN103678479A (en) * 2013-09-30 2014-03-26 北京搜狗科技发展有限公司 Method, device and browser for accelerating browser pre-reading
CN103793538A (en) * 2014-03-06 2014-05-14 赛特斯信息科技股份有限公司 System and method for realizing restoration of web service in case of crash of database

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112819554A (en) * 2021-02-24 2021-05-18 招联消费金融有限公司 Business processing method and device based on page operation and computer equipment
CN112819554B (en) * 2021-02-24 2023-12-29 招联消费金融有限公司 Service processing method and device based on page operation and computer equipment
CN113434234A (en) * 2021-06-29 2021-09-24 青岛海尔科技有限公司 Page jump method, device, computer readable storage medium and processor
CN113434234B (en) * 2021-06-29 2023-06-09 青岛海尔科技有限公司 Page jump method, device, computer readable storage medium and processor
CN116739612A (en) * 2023-08-14 2023-09-12 杭州阿里巴巴海外数字商业有限公司 Method for displaying rights and interests information and electronic equipment
CN116739612B (en) * 2023-08-14 2024-01-09 杭州阿里巴巴海外数字商业有限公司 Method for displaying rights and interests information and electronic equipment

Similar Documents

Publication Publication Date Title
CN112347363A (en) Page generation method and device
CN108460115B (en) Message pushing method and device, computer equipment and storage medium
CN111274252B (en) Block chain data uplink method and device, storage medium and server
CN110321448B (en) Image retrieval method, device and storage medium
CN111240792B (en) Theme switching method and device for user interface, terminal and storage medium
CN110795417A (en) System and method for storing knowledge graph
CN111414389A (en) Data processing method and device, electronic equipment and storage medium
CN109542878B (en) List creation method and device
CN108829650B (en) Card number generation method, device, server and storage medium
CN112966052A (en) Method and device for obtaining block chain data in multiple times
CN112950738B (en) Rendering engine processing method and device, storage medium and electronic equipment
CN109815298B (en) Method and device for determining character relationship network and storage medium
CN110554885A (en) Sub-application generation method and device, electronic equipment and storage medium
CN105574026A (en) Method and device for service supporting by using non-relational database
CN113476853A (en) Data processing method and device for interactive tasks, electronic equipment and storage medium
CN116303657A (en) Group image generation method, group image generation device, computer device, and storage medium
CN106446080B (en) Data query method, query service equipment, client equipment and data system
CN111046206A (en) Head portrait list display method and device, electronic equipment and storage medium
CN111310088B (en) Page rendering method and device
CN112685371A (en) File storage space distribution method and device based on big data and storage medium
CN113467823A (en) Configuration information acquisition method, device, system and storage medium
CN112256689A (en) Service data cleaning method and device and electronic equipment
CN116610308B (en) Code management method and device, electronic equipment and storage medium
CN114860350B (en) Data processing method and device based on cloud diskless tree-like mirror image
CN115733657B (en) Data verification method, device, electronic equipment and storage medium

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