CN114168876A - Page display method and device, computer equipment and computer readable storage medium - Google Patents

Page display method and device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN114168876A
CN114168876A CN202111552952.0A CN202111552952A CN114168876A CN 114168876 A CN114168876 A CN 114168876A CN 202111552952 A CN202111552952 A CN 202111552952A CN 114168876 A CN114168876 A CN 114168876A
Authority
CN
China
Prior art keywords
page
data
target
mall
server
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
CN202111552952.0A
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.)
Pingan Payment Technology Service Co Ltd
Original Assignee
Pingan Payment Technology Service 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 Pingan Payment Technology Service Co Ltd filed Critical Pingan Payment Technology Service Co Ltd
Priority to CN202111552952.0A priority Critical patent/CN114168876A/en
Publication of CN114168876A publication Critical patent/CN114168876A/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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0222During e-commerce, i.e. online transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0239Online discounts or incentives
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Shopping interfaces
    • G06Q30/0643Graphical representation of items or shoppers

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a page display method, which comprises the following steps: loading target configuration data from the content management server through the page request information; analyzing the target configuration data to obtain target mall data in the target page dynamic module data; acquiring json page data related to the target mall data according to the target mall data, wherein the json page data comprise a plurality of preprocessed static interface data; and rendering to obtain the target page according to the static resources in the target configuration data and the json page data, and returning the target page to the client for page display. The embodiment of the invention obtains a plurality of static interface data by preprocessing the page dynamic module data in advance; when the page request is responded, the target configuration data and the json page data are loaded, the target page is obtained through rendering, and the page rendering efficiency is effectively improved.

Description

Page display method and device, computer equipment and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of big data, in particular to a page display method and device, computer equipment and a computer readable storage medium.
Background
With continuous iteration of services, more and more modules are loaded on each page, and a user needs to make request calls of multiple interfaces when wanting to acquire a front-end page, so that the efficiency of loading the page on a client is limited by the request calls of the multiple interfaces. The dynamic data are obtained through interface calling, and the page is rendered through the dynamic data, so that the page is loaded at the client side.
Disclosure of Invention
In view of the above, the present invention provides a page display method, a page display apparatus, a computer device, and a computer readable storage medium, which are used to solve the problems that the existing method of obtaining dynamic data by relying on a call interface and loading a page on a client side is easy to cause slow page loading speed and low efficiency.
One aspect of the embodiments of the present invention provides a page display method, including:
receiving page request information sent by a client through a target cache node in a plurality of cache nodes, wherein the page request information is used for requesting a target page;
judging whether any cache node comprises the target page or not;
if any cache node does not comprise the target page, receiving the page request information through an event driving server, and loading target configuration data from a content management server according to the page request information;
analyzing the target configuration data through the event driving server, and obtaining target mall data in the target page dynamic module data;
acquiring json page data related to the target mall data from a network storage server through an event driving server according to the target mall data, wherein the json page data comprise a plurality of preprocessed static interface data; and
and rendering the target page through the event driving server according to the static resource in the target configuration data and the json page data, and returning the target page to the client for page display.
Optionally, the determining whether any cache node includes the target page further includes:
judging whether the target cache node comprises the target page or not according to the page request information;
if the target cache node does not comprise the target page, judging whether any remaining cache node in the plurality of cache nodes comprises the target page;
if any remaining cache node in the plurality of cache nodes comprises the target page, the target page is obtained through the target cache node, and the target page is returned to the client for page display.
Optionally, the method further comprises:
if the json page data related to the target mall data cannot be acquired from the network storage server through the event-driven server, generating a plurality of target interface request information through the event-driven server according to the page request information;
calling a plurality of target interfaces through an event driving server according to the request information of the plurality of target interfaces, and receiving the data of the target page dynamic modules returned by the plurality of target interfaces;
and rendering to obtain the target page through the event-driven server according to the dynamic module data of the target page and the static resource of the target page, and returning the target page to the client for page display.
Optionally, the method further comprises:
receiving page access information sent by each client through the mall access gateway, wherein each page access information comprises page module identification data and access time data; sending each page access information to a mall offline processing server;
performing, by the mall offline processing server, the following operations:
updating the access time data and the access amount data of the corresponding page based on each page access information;
respectively comparing the updated access time data and the updated access quantity data of each page with a preset access time threshold and a preset access quantity threshold of each page;
and if the updated access time data of the page is larger than the preset access time threshold of the page and the updated access quantity data of the page is larger than the preset access quantity threshold of the page, increasing the frequency of preprocessing the page.
Optionally, the method further comprises: preprocessing a plurality of interface data of a plurality of interfaces related to a page; the step of pre-treating comprises:
transmitting the page dynamic module data to the mall offline processing server through a content management server;
receiving the page dynamic module data through the mall offline processing server, and extracting key data from the page dynamic module data;
asynchronously analyzing the key data through the mall offline processing server to obtain commodity data and activity discount data corresponding to the page dynamic module data;
and generating corresponding json page data according to the commodity data and the activity discount data through the mall offline processing server, and uploading the json page data to a network storage server for storage.
Optionally, the method further comprises:
performing, by the mall offline processing server, the following operations:
receiving commodity data and activity discount data which are updated in the page dynamic module data;
judging whether the updated commodity data and the updated activity discount data are configured or not;
if the updated commodity data and the activity discount data are determined to be configured, respectively judging whether the updated commodity data and the activity discount data are consistent with the configured commodity data and the activity discount data in the mall offline processing server;
and if the updated commodity data is inconsistent with the commodity data configured in the mall offline processing server and/or the updated activity discount data is inconsistent with the activity discount data configured in the mall offline processing server, triggering data preprocessing logic to regenerate new json page data, and uploading the new json page data to the network storage server for storage.
Optionally, after the uploading the new json page data to the network storage server for storage, the method further includes:
obtaining a cache node where the page is located;
rendering to obtain a new page according to the new json page data and the static resource of the page;
and replacing the page with the new page to refresh the cache node where the page is located.
An aspect of an embodiment of the present invention further provides a page display apparatus, including:
the system comprises a receiving module, a sending module and a processing module, wherein the receiving module is used for receiving page request information sent by a client through a target cache node in a plurality of cache nodes, and the page request information is used for requesting a target page;
the judging module is used for judging whether any cache node comprises the target page or not;
the loading module is used for receiving the page request information through an event driving server and loading target configuration data from a content management server according to the page request information if any cache node does not comprise the target page;
the analysis module is used for analyzing the target configuration data through the event-driven server and obtaining target mall data in the target page dynamic module data;
the acquisition module is used for acquiring json page data related to the target mall data from a network storage server through an event driving server according to the target mall data, wherein the json page data comprise a plurality of preprocessed static interface data; and
and the rendering module is used for rendering the target page through the event driving server according to the static resources in the target configuration data and the json page data, and returning the target page to the client for page display.
An aspect of the embodiments of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the steps of the page display method as described above when executing the computer program.
An aspect of the embodiments of the present invention further provides a computer-readable storage medium, in which a computer program is stored, the computer program being executable by at least one processor to cause the at least one processor to perform the steps of the page display method as described above.
According to the page display method, the page display device, the computer equipment and the computer readable storage medium, target configuration data are loaded from the content management server through page request information; analyzing the target configuration data to obtain target mall data in the target page dynamic module data; acquiring json page data related to the target mall data according to the target mall data, wherein the json page data comprise a plurality of preprocessed static interface data; and rendering to obtain the target page according to the static resources in the target configuration data and the json page data, and returning the target page to the client for page display. The embodiment of the invention obtains a plurality of static interface data by preprocessing the page dynamic module data in advance; when the page request is responded, the target configuration data and the json page data are loaded, the target page is obtained through rendering, and the page rendering efficiency is effectively improved.
The invention is described in detail below with reference to the drawings and specific examples, but the invention is not limited thereto.
Drawings
FIG. 1 schematically illustrates an example flow chart of a method of implementing a page display of the present invention;
FIG. 2 is a flowchart schematically illustrating the steps of determining whether a target page is included in a cache node in the page display method according to the present invention;
FIG. 3 is a flowchart schematically illustrating steps of rendering a target page when json page data corresponding to the target page is not obtained in the method for displaying a page according to the present invention;
FIG. 4 is a flowchart schematically illustrating steps of adjusting the frequency of preprocessing a page according to page access information in a method for displaying a page according to the present invention;
FIG. 5 is a flow chart schematically illustrating the steps of pre-processing page data in advance in implementing a page display method according to the present invention;
FIG. 6 is a flowchart schematically illustrating the steps of adjusting data of each server according to the updated commodity data and activity offer data in the page display method according to the present invention;
FIG. 7 is a flow chart schematically illustrating steps of refreshing a cache node in a page display method according to the present invention;
fig. 8 is a block diagram schematically showing a page display apparatus according to the second embodiment of the present invention;
fig. 9 is a schematic diagram of a hardware structure of a computer device suitable for implementing the page display method according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the descriptions relating to "first", "second", etc. in the embodiments of the present invention are only for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
In the description of the present invention, it should be understood that the numerical references before the steps do not identify the order of performing the steps, but merely serve to facilitate the description of the present invention and to distinguish each step, and thus should not be construed as limiting the present invention.
Example one
Referring to fig. 1, a flowchart illustrating steps of a page display method according to an embodiment of the invention is shown. It is to be understood that the flow charts in the embodiments of the present method are not intended to limit the order in which the steps are performed. The following description is given by taking a computer device as an execution subject, specifically as follows:
in the embodiment of the invention, the page display method is applied to an e-commerce system, and the e-commerce system comprises a plurality of cache nodes, an event driving server, a network storage server, a mall offline processing server and a content management server. The cache node may be a CDN (Content Delivery Network, Content Delivery) cache node; the event-driven server can be a node server and a server for the operation of a javascript programming language; the Network Storage server can be a nas (Network Attached Storage) server; the mall offline processing server may be a searchfacade processing server.
As shown in fig. 1, the page display method may include steps S100 to S110, including:
step S100, receiving, by a target cache node in the plurality of cache nodes, page request information sent by a client, where the page request information is used to request a target page.
The page request information is used for requesting a meeting place page of the mall, namely the requested target page is the target meeting place page. The target CDN cache node may be a CDN cache node closest to the client. The distributed deployment of the CDN cache nodes is beneficial to the quick response of the e-commerce system to the page request information of the client, and the traffic pressure of the system in the peak period is effectively relieved.
Step S102, judging whether any cache node comprises the target page.
In the embodiment of the invention, according to the condition that each page is accessed, the partially rendered pages can be deployed in a plurality of cache nodes for caching according to needs. When the cache node receives the page request information, the cache node can respond to the page request information more quickly and directly.
In order to improve the efficiency of data response, referring to fig. 2, the step S102 of determining whether any cache node includes the target page may further include steps S200 to S204, where: step S200, judging whether the target cache node comprises the target page or not according to the page request information; step S202, if the target cache node does not include the target page, determining whether any remaining cache node in the plurality of cache nodes includes the target page; and step S204, if any remaining cache node in the plurality of cache nodes comprises the target page, acquiring the target page through the target cache node, and returning the target page to the client for page display. In this embodiment, it is determined whether the target cache node includes the target page, and if not, it is determined whether the remaining cache nodes include the target page; whether a target page exists or not is judged among a plurality of cache nodes in a distributed deployment mode in an orderly mode, and the efficiency of responding to page request information is effectively improved. If the target page can be directly inquired in the cache node, the target page can be obtained and quickly returned to the client.
And step S104, if any cache node does not comprise the target page, receiving the page request information through an event-driven server, and loading target configuration data from a content management server according to the page request information.
Specifically, the target configuration data is configuration data related to a target page; the target configuration data includes page dynamic module data and a plurality of static resources. Wherein the plurality of static resources are page elements on the page that remain unchanged for a longer period of time or change to a smaller size; the page dynamic module data is data which changes frequently in a certain time period on a page.
And step S106, analyzing the target configuration data through the event-driven server, and obtaining target mall data in the target page dynamic module data.
In an exemplary embodiment, corresponding target mall data is extracted from the target configuration data, wherein the target mall data comprises a plurality of commodity data and a plurality of activity offer data.
Step S108, acquiring json page data related to the target mall data from a network storage server through an event driving server according to the target mall data, wherein the json page data comprises a plurality of preprocessed static interface data.
In order to reduce the interface complexity caused by multi-level cache and improve the page rendering efficiency; referring to fig. 5, the method further includes: preprocessing a plurality of page dynamic module data of a plurality of interfaces related to a page; the step of preprocessing may further include steps S500 to S506, wherein: step S500, transmitting the data of the plurality of page dynamic modules to the offline processing server side of the mall through a content management server; step S502, receiving the page dynamic module data through the mall offline processing server, and extracting key data from the page dynamic module data; step S504, asynchronously analyzing the key data through the mall offline processing server, and acquiring commodity data and activity discount data corresponding to the page dynamic module data; and step S506, generating corresponding json page data according to the commodity data and the activity discount data through the mall offline processing server, and uploading the json page data to a network storage server for storage. In this embodiment, the mall offline processing server preprocesses the dynamic page module data of multiple pages into static json page data. When the e-commerce system receives page request information sent by a client and a target page cannot be inquired in a plurality of cache nodes, target page configuration data related to the target page can be acquired from the content management server; and extracting the id corresponding to the dynamic module data of the target page from the configuration data of the target page, acquiring the corresponding static json page data from the network storage server according to the id corresponding to the dynamic module data of the target page, rendering, namely, quickly responding to the page request information, rendering to obtain the target page, and returning the target page to the client. An interface is not required to be called additionally to obtain the content corresponding to the page dynamic module data required by the rendering of the target page; the page rendering efficiency and the system performance are effectively improved.
In order to reduce the time interval for data agreement between the mall offline processor and the network storage server, the pre-cached data can be agreed in a shorter time in the mall offline processor and the network storage server; as shown in fig. 6, the method further comprises: performing, by the mall offline processing server, the following operations, wherein: step S600, receiving the updated commodity data and the activity discount data in the page dynamic module data; step S602, judging whether the updated commodity data and the activity discount data are configured; step S604, if the updated commodity data and the activity discount data are determined to be configured, respectively judging whether the updated commodity data and the activity discount data are consistent with the configured commodity data and the activity discount data in the mall offline processing server; and step S606, if the updated commodity data is inconsistent with the commodity data configured in the mall offline processing server and/or the updated activity preferential data is inconsistent with the activity preferential data configured in the mall offline processing server, triggering data preprocessing logic to regenerate new json page data, and uploading the new json page data to the network storage server for storage. The updated commodity data and the updated activity discount data can be newly added and modified for merchants and operations. In order to avoid information loss and data failure to reach consistency in time, the method further comprises: and constructing a channel disguise database for monitoring a bindlog (log) + Kafka (publish-subscribe system) message as the update compensation of the page dynamic module data.
To further ensure consistency between data, referring to fig. 7, after the new json page data is uploaded to the network storage server for storage, the method further includes: according to the flow condition of the page, the cache node where the page is located is refreshed in time, which can be specifically realized by the following operations: step S700, obtaining a cache node where the page is located; step S702, according to the new json page data and the static resource of the page, rendering to obtain a new page; and step S704, replacing the page with the new page to refresh the cache node where the page is located. In the embodiment of the invention, the cache node where the page is located is refreshed in time, which is beneficial to realizing data consistency.
In order to ensure the quality of the page displayed on the visual component returned to the client, the display of blank pages is reduced; in an exemplary embodiment, referring to fig. 3, the method further includes: when json page data related to target mall data cannot be obtained, calling an interface to perform exception compensation page rendering; the method is realized by the following operations: step S300, if json page data related to the target mall data cannot be acquired from a network storage server through an event-driven server, generating a plurality of target interface request information through the event-driven server according to the page request information; step S302, a plurality of target interfaces are called through an event-driven server according to the request information of the target interfaces, and target page dynamic module data returned by the target interfaces are received; and step S304, the event-driven server renders the target page according to the data of the dynamic module of the target page and the static resource of the target page, and returns the target page to the client for page display. In the invention, the page display also comprises a standby scheme, when the target page cannot be directly obtained and the static json page data related to the target page cannot be obtained, the content related to the target dynamic module data of the target page can be obtained by calling a plurality of target interfaces related to the target page, and then the rendering of the target page is completed; the performance of the system for responding to the request is effectively improved.
Step S110, the event-driven server renders the target page according to the static resource in the target configuration data and the json page data, and returns the target page to the client for page display.
In order to reasonably distribute resources, the timeliness of data updating is ensured; referring to fig. 4, the method further includes: updating corresponding data according to the received page access information; the method specifically comprises the following steps S400-S406, wherein: step S400, receiving page access information sent by each client through the mall access gateway, wherein each page access information comprises page module identification data and access time data; sending each page access information to a mall offline processing server; performing, by the mall offline processing server, the following operations: step S402, updating the access time data and the access amount data of the corresponding page based on each page access information; step S404, comparing the updated access time data and the updated access amount data of each page with a preset access time threshold and a preset access amount threshold of each page respectively; and step S406, if the access time data after the page update is larger than the preset access time threshold of the page and the access quantity data after the page update is larger than the preset access quantity threshold of the page, increasing the frequency of preprocessing the page. In the embodiment of the invention, after a plurality of users send corresponding page request information and corresponding clients receive corresponding target pages, each client returns page access information to a mall access gateway according to the received page content of the target pages, wherein the page access information comprises module id identification and access time corresponding to the acquired page content of the target pages; in the embodiment of the invention, the management of each page loading is effectively realized by the access time and the access amount in combination with the CDN cache nodes deployed in a distributed manner and the mall offline processing server, and the traffic pressure brought by the access of the hot page in a short time can be effectively responded.
The embodiment of the invention loads target configuration data from a content management server through page request information; analyzing the target configuration data to obtain target mall data in the target page dynamic module data; acquiring json page data related to the target mall data according to the target mall data, wherein the json page data comprise a plurality of preprocessed static interface data; and rendering to obtain the target page according to the static resources in the target configuration data and the json page data, and returning the target page to the client for page display. The embodiment of the invention obtains a plurality of static interface data by preprocessing the page dynamic module data in advance; when the page request is responded, the target configuration data and the json page data are loaded, the target page is obtained through rendering, and the page rendering efficiency is effectively improved.
Example two
Continuing to refer to FIG. 8, a block diagram of a page display apparatus of the present invention is schematically shown. In this embodiment, the page display apparatus may include or be divided into one or more program modules, and the one or more program modules are stored in a storage medium and executed by one or more processors to implement the present invention and implement the above-described page display method. The program module referred to in the embodiments of the present invention refers to a series of computer program instruction segments capable of performing specific functions, and is more suitable for describing the execution process of the page display device in the storage medium than the program itself. The following description will specifically describe the functions of the program modules of the present embodiment.
As shown in fig. 8, the page display apparatus may include a receiving module 800, a determining module 802, a loading module 804, a parsing module 806, an obtaining module 808, and a rendering module 810, wherein:
a receiving module 800, configured to receive, by a target cache node in a plurality of cache nodes, page request information sent by a client, where the page request information is used to request a target page;
a determining module 802, configured to determine whether any cache node includes the target page;
a loading module 804, configured to receive the page request information through an event driven server if any cache node does not include the target page, and load target configuration data from a content management server according to the page request information;
the analysis module 806 is configured to analyze the target configuration data through the event driven server, and obtain target mall data in the target page dynamic module data;
an obtaining module 808, configured to obtain json page data related to the target mall data from a network storage server through an event driven server according to the target mall data, where the json page data includes a plurality of preprocessed static interface data; and
and a rendering module 810, configured to render, by the event driven server, the target page according to the static resource in the target configuration data and the json page data, and return the target page to the client for page display.
In an exemplary embodiment, the determining module 802 is further configured to: judging whether the target cache node comprises the target page or not according to the page request information; if the target cache node does not comprise the target page, judging whether any remaining cache node in the plurality of cache nodes comprises the target page; and if any remaining cache node in the plurality of cache nodes comprises the target page, acquiring the target page through the target cache node, and returning the target page to the client for page display.
In an exemplary embodiment, the rendering module 810 is further configured to: if the json page data related to the target mall data cannot be acquired from the network storage server through the event-driven server, generating a plurality of target interface request information through the event-driven server according to the page request information; calling a plurality of target interfaces through an event driving server according to the request information of the plurality of target interfaces, and receiving the data of the target page dynamic modules returned by the plurality of target interfaces; and rendering the target page through an event driving server according to the dynamic module data of the target page and the static resource of the target page, and returning the target page to the client for page display.
In an exemplary embodiment, the page display device further comprises a comparison module (not identified). The comparison module is further configured to: receiving page access information sent by each client through the mall access gateway, wherein each page access information comprises page module identification data and access time data; sending each page access information to a mall offline processing server; updating the access time data and the access amount data of the corresponding page based on the access information of each page through the mall offline processing server; the access time data and the access quantity data after updating of each page are respectively compared with a preset access time threshold and a preset access quantity threshold of each page through the mall offline processing server; and increasing the frequency of preprocessing the page by the mall offline processing server if the updated access time data of the page is greater than the preset access time threshold of the page and the updated access amount data of the page is greater than the preset access amount threshold of the page.
In an exemplary embodiment, the page display apparatus further includes an offline pre-processing module (not identified) for: a plurality of interface data of a plurality of interfaces associated with a page is preprocessed. The offline preprocessing module is further configured to: transmitting the page dynamic module data to the mall offline processing server through a content management server; receiving the page dynamic module data through the mall offline processing server, and extracting key data from the page dynamic module data; asynchronously analyzing the key data through the mall offline processing server to obtain commodity data and activity discount data corresponding to the page dynamic module data; and generating corresponding json page data according to the commodity data and the activity discount data through the mall offline processing server, and uploading the json page data to a network storage server for storage.
In an exemplary embodiment, the page display apparatus further comprises an update module (not identified) further configured to: receiving the updated commodity data and the activity discount data in the page dynamic module data through the mall offline processing server; judging whether the updated commodity data and the activity discount data are configured or not through the mall offline processing server; if the updated commodity data and the activity discount data are determined to be configured, respectively judging whether the updated commodity data and the activity discount data are consistent with the configured commodity data and the activity discount data in the mall offline processing server through the mall offline processing server; and if the updated commodity data is inconsistent with the commodity data configured in the mall offline processing server and/or the updated activity discount data is inconsistent with the activity discount data configured in the mall offline processing server, triggering data preprocessing logic through the mall offline processing server to regenerate new json page data, and uploading the new json page data to the network storage server for storage.
In an exemplary embodiment, the update module is further configured to: obtaining a cache node where the page is located; rendering to obtain a new page according to the new json page data and the static resource of the page; and replacing the page with the new page to refresh the cache node where the page is located.
EXAMPLE III
Fig. 9 is a schematic diagram of a hardware architecture of a computer device 10000 suitable for implementing a page display method according to a third embodiment of the present invention. In this embodiment, the computer device 10000 is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction. The computer device 10000 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server or a cabinet server (including an independent server or a server cluster composed of a plurality of servers), a gateway, and the like. As shown in fig. 9, the computer device 10000 includes, but is not limited to, at least a memory 10010, a processor 10020, and a network interface 10030, which are communicatively connected to each other through a system bus. Wherein:
in this embodiment, the memory 10010 includes at least one type of computer-readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 10010 may be an internal storage unit of the computer device 10000, such as a hard disk or a memory of the computer device 10000. In other embodiments, the memory 10010 may also be an external storage device of the computer device 10000, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the computer device 10000. Of course, the memory 10010 may also include both internal and external storage devices of the computer device 10000. In this embodiment, the memory 10010 is generally used for storing an operating system installed in the computer device 10000 and various application software, such as the program codes of the page display apparatus of the above-mentioned embodiment. In addition, the memory 10010 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 10020, in some embodiments, can be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip. The processor 10020 is generally configured to control overall operations of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is configured to run program codes stored in the memory 10010 or process data, for example, run a page display device, so as to implement the page display method of the above-described embodiment.
The network interface 10030 may comprise a wireless network interface or a wired network interface, and the network interface 10030 is generally used for establishing a communication connection between the computer apparatus 10000 and other electronic devices. For example, the network interface 10030 is configured to connect the computer device 10000 to an external terminal through a network, establish a data transmission channel and a communication connection between the computer device 10000 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM for short), Wideband Code Division Multiple Access (WCDMA for short), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, and the like.
It is noted that fig. 9 only shows computer device 10000 having components 10010 and 10030, but it is to be understood that not all of the shown components are required and that more or less components may be implemented instead.
In this embodiment, the page display device stored in the memory 10010 can be further divided into one or more program modules, and the one or more program modules are stored in the memory 10010 and executed by one or more processors (in this embodiment, the processor 10020) to complete the present invention.
For example, fig. 8 is a schematic diagram of program modules for implementing the page display apparatus, and in this embodiment, the page display apparatus may be divided into a receiving module 800, a determining module 802, a loading module 804, a parsing module 806, an obtaining module 808, and a rendering module 810. The program module referred to in the present invention refers to a series of computer program instruction segments capable of performing specific functions, and is more suitable for describing the execution process of the page display apparatus in the computer device 10000 than a program. The specific functions of the program modules 800 and 810 have been described in detail in the second embodiment, and are not described herein again.
Example four
The present embodiments also provide a computer-readable storage medium having stored thereon a computer program that, when executed by at least one processor, performs the steps of the xxx method of the embodiments.
In the present embodiment, the computer-readable storage medium includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application mall, and the like. In some embodiments, the computer readable storage medium may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer readable storage medium may be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device. Of course, the computer-readable storage medium may also include both internal and external storage devices of the computer device. In this embodiment, the computer-readable storage medium is generally used for storing an operating system and various types of application software installed in the computer device, for example, the program code of the katon detection method in the embodiment, and the like. Further, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A page display method, comprising:
receiving page request information sent by a client through a target cache node in a plurality of cache nodes, wherein the page request information is used for requesting a target page;
judging whether any cache node comprises the target page or not;
if any cache node does not comprise the target page, receiving the page request information through an event driving server, and loading target configuration data from a content management server according to the page request information;
analyzing the target configuration data through the event driving server, and obtaining target mall data in the target page dynamic module data;
acquiring json page data related to the target mall data from a network storage server through an event driving server according to the target mall data, wherein the json page data comprise a plurality of preprocessed static interface data; and
and rendering the target page through the event driving server according to the static resource in the target configuration data and the json page data, and returning the target page to the client for page display.
2. The method for displaying a page according to claim 1, wherein the determining whether any one of the cache nodes includes the target page further comprises:
judging whether the target cache node comprises the target page or not according to the page request information;
if the target cache node does not comprise the target page, judging whether any remaining cache node in the plurality of cache nodes comprises the target page;
if any remaining cache node in the plurality of cache nodes comprises the target page, the target page is obtained through the target cache node, and the target page is returned to the client for page display.
3. The page display method according to claim 1, characterized in that the method further comprises:
if the json page data related to the target mall data cannot be acquired from the network storage server through the event-driven server, generating a plurality of target interface request information through the event-driven server according to the page request information;
calling a plurality of target interfaces through an event driving server according to the request information of the plurality of target interfaces, and receiving the data of the target page dynamic modules returned by the plurality of target interfaces;
and rendering to obtain the target page through the event-driven server according to the dynamic module data of the target page and the static resource of the target page, and returning the target page to the client for page display.
4. The page display method according to claim 1, characterized in that the method further comprises:
receiving page access information sent by each client through the mall access gateway, wherein each page access information comprises page module identification data and access time data; sending each page access information to a mall offline processing server;
performing, by the mall offline processing server, the following operations:
updating the access time data and the access amount data of the corresponding page based on each page access information;
respectively comparing the updated access time data and the updated access quantity data of each page with a preset access time threshold and a preset access quantity threshold of each page;
and if the updated access time data of the page is larger than the preset access time threshold of the page and the updated access quantity data of the page is larger than the preset access quantity threshold of the page, increasing the frequency of preprocessing the page.
5. The page display method according to claim 4, characterized in that the method further comprises: preprocessing a plurality of interface data of a plurality of interfaces related to a page; the step of pre-treating comprises:
transmitting the page dynamic module data to the mall offline processing server through a content management server;
receiving the page dynamic module data through the mall offline processing server, and extracting key data from the page dynamic module data;
asynchronously analyzing the key data through the mall offline processing server to obtain commodity data and activity discount data corresponding to the page dynamic module data;
and generating corresponding json page data according to the commodity data and the activity discount data through the mall offline processing server, and uploading the json page data to a network storage server for storage.
6. The page display method according to claim 5, characterized in that the method further comprises:
performing, by the mall offline processing server, the following operations:
receiving commodity data and activity discount data which are updated in the page dynamic module data;
judging whether the updated commodity data and the updated activity discount data are configured or not;
if the updated commodity data and the activity discount data are determined to be configured, respectively judging whether the updated commodity data and the activity discount data are consistent with the configured commodity data and the activity discount data in the mall offline processing server;
and if the updated commodity data is inconsistent with the commodity data configured in the mall offline processing server and/or the updated activity discount data is inconsistent with the activity discount data configured in the mall offline processing server, triggering data preprocessing logic to regenerate new json page data, and uploading the new json page data to the network storage server for storage.
7. The method for displaying pages of claim 6, wherein after said uploading said new json page data to said network storage server for storage, said method further comprises:
obtaining a cache node where the page is located;
rendering to obtain a new page according to the new json page data and the static resource of the page;
and replacing the page with the new page to refresh the cache node where the page is located.
8. A page display apparatus, comprising:
the system comprises a receiving module, a sending module and a processing module, wherein the receiving module is used for receiving page request information sent by a client through a target cache node in a plurality of cache nodes, and the page request information is used for requesting a target page;
the judging module is used for judging whether any cache node comprises the target page or not;
the loading module is used for receiving the page request information through an event driving server and loading target configuration data from a content management server according to the page request information if any cache node does not comprise the target page;
the analysis module is used for analyzing the target configuration data through the event-driven server and obtaining target mall data in the target page dynamic module data;
the acquisition module is used for acquiring json page data related to the target mall data from a network storage server through an event driving server according to the target mall data, wherein the json page data comprise a plurality of preprocessed static interface data; and
and the rendering module is used for rendering the target page through the event driving server according to the static resources in the target configuration data and the json page data, and returning the target page to the client for page display.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the page display method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which is executable by at least one processor for causing the at least one processor to carry out the steps of the page display method according to any one of claims 1 to 7.
CN202111552952.0A 2021-12-17 2021-12-17 Page display method and device, computer equipment and computer readable storage medium Pending CN114168876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111552952.0A CN114168876A (en) 2021-12-17 2021-12-17 Page display method and device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111552952.0A CN114168876A (en) 2021-12-17 2021-12-17 Page display method and device, computer equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114168876A true CN114168876A (en) 2022-03-11

Family

ID=80487269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111552952.0A Pending CN114168876A (en) 2021-12-17 2021-12-17 Page display method and device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114168876A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117880537A (en) * 2023-12-06 2024-04-12 上海百秋新网商数字科技有限公司 Interface-free all-channel E-commerce content management system and data reading method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117880537A (en) * 2023-12-06 2024-04-12 上海百秋新网商数字科技有限公司 Interface-free all-channel E-commerce content management system and data reading method thereof

Similar Documents

Publication Publication Date Title
CN110620812B (en) Interactive information pushing method and device, computer equipment and storage medium
CN104580406B (en) A kind of method and apparatus of synchronous logging state
CN111722947A (en) Service calling method and system
CN111225010A (en) Data processing method, data processing system and device
CN109495553B (en) Webpage display control method and system and reverse proxy server
CN112422450B (en) Computer equipment, and flow control method and device for service request
CN108763396B (en) Access request processing method, device, computer equipment and storage medium
CN105677678B (en) Method and system for determining first screen position of webpage and displaying webpage information
CN114168876A (en) Page display method and device, computer equipment and computer readable storage medium
CN112672187B (en) Page generation method and device, computer equipment and readable storage medium
CN111273964B (en) Data loading method and device
CN112926002A (en) Service request processing method and device
CN116545905A (en) Service health detection method and device, electronic equipment and storage medium
CN115297076B (en) Offline message pulling method and device, computer equipment and storage medium
CN116739524A (en) Business process setting method, device, equipment, storage medium and program product
CN113326333A (en) Data processing method, system, computer device and computer storage medium
CN114500484A (en) Page rendering method and device, electronic equipment and readable medium
CN113704648A (en) Page data processing method, device, equipment and storage medium
CN110505258A (en) Webpage load and response method, device, computer equipment and storage medium
CN110677353A (en) Data access method and system
CN111277705A (en) Message reminding management method, device, equipment and storage medium
CN117883789B (en) Data acquisition method, apparatus, device, readable storage medium, and program product
CN112612980B (en) Picture service method, apparatus, device, storage medium and computer program product
CN114302244B (en) Information interaction method, device, server and storage medium
CN114338773B (en) Data updating method, system and device based on two-way communication connection

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