CN107203629B - Page presentation method, system and device - Google Patents

Page presentation method, system and device Download PDF

Info

Publication number
CN107203629B
CN107203629B CN201710397922.4A CN201710397922A CN107203629B CN 107203629 B CN107203629 B CN 107203629B CN 201710397922 A CN201710397922 A CN 201710397922A CN 107203629 B CN107203629 B CN 107203629B
Authority
CN
China
Prior art keywords
time
item information
identifier
information corresponding
presented
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.)
Active
Application number
CN201710397922.4A
Other languages
Chinese (zh)
Other versions
CN107203629A (en
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 Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710397922.4A priority Critical patent/CN107203629B/en
Publication of CN107203629A publication Critical patent/CN107203629A/en
Application granted granted Critical
Publication of CN107203629B publication Critical patent/CN107203629B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a page presentation method, a system and a device. One embodiment of the method comprises: receiving a page updating request sent by a client; acquiring the starting time of the purchase permission of the item associated with the item information corresponding to the identifier of the next session; determining the preloading time for loading the article information corresponding to the identifier of the next field in advance, the remaining time of the current time from the starting time and the article information to be presented based on the current time, the starting time, the preset minimum preloading time, the preset maximum preloading time and the identifier of the next field; and sending the preloading time, the remaining time and the article information to be presented to the client so that the client presents the article information to be presented based on the preloading time, the remaining time and the article information to be presented. The implementation mode reduces the pressure of the network and the server and improves the timeliness of page switching.

Description

Page presentation method, system and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, a system, and an apparatus for page rendering.
Background
In the technical field of electronic commerce, the page of the item information needs to be switched at a certain moment, for example, in the process of 'killing by second' promotion, the 'killing by second' item information is switched at intervals. When the time of page switching is reached, massive clients send page updating requests to the server at the same time, and the server is stressed by instantaneous huge traffic.
The existing technical scheme of field switching is that when a certain time is reached, a user manually refreshes a page of a client to send a page update request to a server. In this way, the client sends requests to the server at the same time, peak flow is generated, and huge pressure is caused on the network and the server; meanwhile, the method depends on manual refreshing of the page by the user, and field switching is easily caused to be untimely.
Disclosure of Invention
It is an object of the present application to provide an improved page rendering method, system and apparatus to solve the technical problems mentioned in the background section above.
In a first aspect, an embodiment of the present application provides a page rendering method, where the method includes: receiving a page updating request sent by a client, wherein the page updating request comprises an identifier of the next field of the current field, and the field is used for representing the echelon of the client for presenting the article information; acquiring the starting time of the purchase permission of the item associated with the item information corresponding to the identifier of the next session; determining the preloading time for loading the article information corresponding to the identifier of the next field in advance, the remaining time of the current time from the start time and the article information to be presented based on the current time, the start time, the preset minimum preloading time for loading the article information corresponding to the identifier of the next field in advance, the preset maximum preloading time for loading the article information corresponding to the identifier of the next field in advance and the identifier of the next field; and sending the preloading time, the remaining time and the article information to be presented to the client so that the client presents the article information to be presented based on the preloading time, the remaining time and the article information to be presented.
In a second aspect, an embodiment of the present application provides a page rendering method, where the method includes: sending a page updating request to a target server, wherein the page updating request comprises an identifier of the next field of the current field, and the field is used for representing the echelon of the article information presented by the client; receiving the preloading time for loading the item information corresponding to the identifier of the next field in advance, the remaining time from the starting time of the purchase authority of the item associated with the item information corresponding to the identifier of the next field by the current time and the item information to be presented, wherein the preloading time, the remaining time and the item information to be presented are determined by the server in response to receiving the page updating request and are based on the current time, the starting time, the preset minimum preloading time for loading the item information corresponding to the identifier of the next field in advance, the preset maximum preloading time for loading the item information corresponding to the identifier of the next field in advance and the identifier of the next field; and presenting the item information to be presented based on the preloading time and the remaining time.
In a third aspect, an embodiment of the present application provides a page rendering system, where the system includes: the target server is used for receiving a page updating request sent by the client, wherein the page updating request comprises an identifier of a next field of a current field, the field is used for representing a gradient of presenting item information by the client, the starting time of a purchase right of an item associated with the item information corresponding to the identifier of the next field is obtained, the preloading time for loading the item information corresponding to the identifier of the next field in advance, the remaining time of the current time from the starting time and the item information to be presented are determined based on the current time, the starting time, the preset minimum preloading time for loading the item information corresponding to the identifier of the next field in advance, the preset maximum preloading time for loading the item information corresponding to the identifier of the next field in advance and the identifier of the next field, and the preloading time, the remaining time of the current time from the starting time and the item information to be presented are sent to the client, Remaining time and item information to be presented; and the client is used for sending a page updating request to the target server, receiving the preloading time, the remaining time and the to-be-presented article information returned by the target server, and presenting the to-be-presented article information based on the preloading time and the remaining time.
In a fourth aspect, an embodiment of the present application provides a page rendering apparatus, where the apparatus includes: the system comprises a receiving unit, a display unit and a display unit, wherein the receiving unit is configured to receive a page updating request sent by a client, the page updating request comprises an identifier of a next field of a current field, and the field is used for representing a echelon of presenting article information by the client; an acquisition unit configured to acquire a start time of a purchase right of an item associated with item information corresponding to an identifier of a next session; a determining unit, configured to determine, based on the current time, the start time, a preset minimum pre-loading time for loading in advance the item information corresponding to the identifier of the next session, a preset maximum pre-loading time for loading in advance the item information corresponding to the identifier of the next session, and the identifier of the next session, a pre-loading time for loading in advance the item information corresponding to the identifier of the next session, a remaining time of the current time from the start time, and the item information to be presented; and the sending unit is configured to send the pre-loading time, the remaining time and the article information to be presented to the client so that the client presents the article information to be presented based on the pre-loading time, the remaining time and the article information to be presented.
In a fifth aspect, an embodiment of the present application provides a page rendering apparatus, where the apparatus includes: the system comprises a sending unit, a receiving unit and a sending unit, wherein the sending unit is configured to send a page updating request to a target server, the page updating request comprises an identifier of a next field of a current field, and the field is used for representing a echelon of presenting article information by a client; the receiving unit is configured to receive the preloading time for loading the item information corresponding to the identifier of the next field in advance, the remaining time from the starting time of the purchase authority of the item associated with the item information corresponding to the identifier of the next field by the current time and the item information to be presented, which are returned by the target server, wherein the preloading time, the remaining time and the item information to be presented are determined by the server in response to receiving the page update request based on the current time, the starting time, the preset minimum preloading time for loading the item information corresponding to the identifier of the next field in advance, the preset maximum preloading time for loading the item information corresponding to the identifier of the next field in advance and the identifier of the next field; and the presentation unit is configured to present the item information to be presented based on the preloading time and the remaining time.
In a sixth aspect, an embodiment of the present application further provides a server, including: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the page presentation method provided by the application.
In a seventh aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the page rendering method provided in the present application.
In an eighth aspect, an embodiment of the present application further provides a terminal, including: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the page presentation method provided by the application.
In a ninth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the page rendering method provided in the present application.
According to the page presentation method, the page presentation system and the page presentation device, the preloading time for loading the item information corresponding to the identifier of the next field in advance, the remaining time of the current time from the starting time of the purchase permission of the item associated with the item information corresponding to the identifier of the next field and the item information to be presented are returned to the client in response to the page update request including the identifier of the next field sent by the client, so that the client loads the item information to be presented in advance based on the preloading time and automatically presents the item information to be presented based on the remaining time, the pressure of a network and a server is relieved, and the timeliness of page switching is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a timing diagram for one embodiment of a page rendering system according to the present application;
FIG. 3 is a timing diagram of yet another embodiment of a page rendering system according to the present application;
FIG. 4 is a flow diagram of one embodiment of a page rendering method according to the present application;
FIG. 5 is a flow diagram of yet another embodiment of a page rendering method according to the present application;
FIG. 6 is a schematic block diagram of one embodiment of a page rendering apparatus according to the present application;
FIG. 7 is a schematic structural diagram of yet another embodiment of a page rendering apparatus according to the present application;
fig. 8 is a schematic structural diagram of a computer system suitable for implementing the server or the terminal device according to the embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the page rendering method or page rendering system or page rendering apparatus of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user 110 may use the terminal devices 101, 102, 103 to interact with the server 105 over the network 104 to receive or send messages or the like. Various communication client applications, such as shopping applications, payment applications, instant messaging tools, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like. The terminal devices 101, 102, and 103 may analyze and process the received data such as the preload time, the remaining time, and the article information to be presented, and display the article information to be presented according to the remaining time. For example, the terminal devices 101, 102, 103 may first send a page update request to the server 105; thereafter, the preloading time, the remaining time and the information of the article to be presented, which are returned by the server 105, may be received; and finally, presenting the information of the article to be presented based on the preloading time and the remaining time.
The server 105 may be a server providing various services, such as a background server providing support for page update requests sent by the terminal devices 101, 102, 103. For example, the background server may analyze and the like the received page update request, determine the pre-loading time, the remaining time, and the item information to be presented for loading the item information corresponding to the identifier of the next session in advance, and send the pre-loading time, the remaining time, and the item information to be presented to the terminal devices 101, 102, and 103.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a timing diagram of an embodiment of a page rendering system according to the present application is shown.
The page presentation system of the present embodiment includes: a target server and a client; the target server is used for receiving a page updating request sent by the client, wherein the page updating request comprises an identifier of a next field of a current field, the field is used for representing a gradient of presenting article information by the client, the starting time of purchase permission of an article associated with the article information corresponding to the identifier of the next field is obtained, the preloading time for loading the article information corresponding to the identifier of the next field in advance, the remaining time of the current time from the starting time and the article information to be presented are determined based on the current time, the starting time, the preset minimum preloading time for loading the article information corresponding to the identifier of the next field in advance, the preset maximum preloading time for loading the article information corresponding to the identifier of the next field in advance and the identifier of the next field, and the preloading time, the remaining time of the current time from the starting time and the article information to be presented are sent to the client, Remaining time and item information to be presented; and the client is used for sending a page updating request to the target server, receiving the preloading time, the remaining time and the to-be-presented article information returned by the target server, and presenting the to-be-presented article information based on the preloading time and the remaining time.
As shown in fig. 2, in step 201, the client sends a page update request to the target server.
Here, when the user performs a first-time purchase on the "killing-by-second" item, a refresh operation is performed on the current page presented on the client, for example, a click operation is performed on a refresh icon in the page presented on the client, a pull-down operation is performed on the current page, and the like; and after the client detects the refreshing operation of the user on the current page, the client can send the page updating request to the target server. The second killing is a new mode of on-line auction, and is a selling mode that a network seller issues some commodities with ultra-low prices and all buyers make a robbery purchase at the same time.
In step 202, the target server receives a page update request sent by the client.
Here, the target server may receive a page update request sent by the client, where a process of presenting the item information by the client may be divided into a plurality of stages, each stage is a ladder, and a field may be used to characterize the ladder in which the client presents the item information, for example, when the item information is presented in three stages, a field may be divided into a first field, a second field, and a third field, and the page update request may include an identifier of a field next to a current field, for example, when the current field is the first field, the page update request may include an identifier of the second field. The article information may also include service information, such as service information of a home service, service information of a mobile phone recharging service, and the like. The page update request is a request for obtaining information for page update by a client, and the information for page update may include, but is not limited to, at least one of the following: the method comprises the steps of loading the item information to be presented on the client, the preloading time for loading the item information corresponding to the identifier of the next field in advance and the remaining time (which can also be called 'countdown' time or the remaining time for killing the item from the second time of presenting the next field) from the starting time of the purchase authority of the item associated with the item information corresponding to the identifier of the next field at the current time. The preloading in a WEB page (WEB) may refer to loading some main contents in the WEB page before loading all contents of the WEB page, so as to reduce the waiting time of a user, where the preloading time may be a time when a client requests page information of the WEB page from a server in advance, so as to preload the page information.
In some optional implementations of this embodiment, the target server may synchronize the current Time by using a Network Time Protocol (NTP), so as to ensure that the Time of each system module (e.g., a module that processes a client request) in the target server is uniform, so as to ensure that each client has the right to purchase a next "kill second" item at the same Time as much as possible. The network time protocol is a protocol for synchronizing the time of a computer, which can synchronize the computer to its server or clock source (such as quartz clock, GPS, etc.), provide highly accurate time correction, and prevent malicious protocol attacks via encryption confirmation. The purpose of NTP is to provide accurate and robust time services in an out-of-order network environment.
Here, the target server may include a second killing service module, a cache module, a notification module, and a unified time center.
Here, the cache module may be configured to cache the item information corresponding to the identifier of the next session, and may cache the item information corresponding to the identifier of the next session in the Redis. The Redis is an open-source log-type and Key-Value-type database which is written by using ANSI C language, supports network, can be based on memory and can also be persistent.
Here, the notifying module may be configured to monitor a remaining time between a current time and a time when the "killing-by-second" item of the next session is presented, write item information corresponding to an identifier of the next session into the cache module from a database before the time when the current time is reached, and notify the killing-by-second service module to obtain item information corresponding to the identifier of the next session. As an example, the notification module may notify the second killing service module to obtain the item information corresponding to the identifier of the next session through a Zookeeper, where the Zookeeper is a distributed, open-source distributed application coordination service, which is software that provides a consistency service for the distributed application.
Here, the session killing service module may be configured to receive the notification sent by the notification module and process a request sent by the client. After receiving the notification sent by the notification module, the seckilling service module may obtain the item information corresponding to the identifier of the next session from the cache module and store the item information in a local cache, and calculate the remaining time and the pre-loading time of the seckilling item from the presentation of the next session according to a request sent by the client, and finally may return the item information, the remaining time and the pre-loading time to the client.
Here, the unified time center may be configured to ensure time unification of all machines in the seckilling service module through a network time protocol, so as to ensure that each client has a purchase right for the next "seckilling" item at the same time.
Here, the notification module may first unify the time of the seckilling service module through a network time protocol; then, the notification module may monitor the remaining time for killing the article in seconds until the next time is presented, and when the remaining time is less than a time threshold for writing data into the cache module, may obtain article information corresponding to the identifier of the next time from the database and write the article information into the cache module; then, the notification module can notify the second killing service module to obtain the item information corresponding to the identifier of the next session through the Zookeeper; after receiving the notification sent by the notification module, the sbd service module may read the item information corresponding to the identifier of the next field from the cache module and write the item information into a local cache. By the multi-level caching method, the item information can be updated to the Redis cache module before the item information is switched to kill the item in seconds, and the Zookeeper informs the server to pull the data in the Redis cache module to the local cache, so that the access to the database is reduced, the pressure on the database is relieved, and the access speed to the data is improved.
In step 203, the target server acquires the start time of the purchase right of the item associated with the item information corresponding to the identifier of the next session.
Here, after receiving the identifier of the next session in step 202, the target server may obtain the start time of the purchase authority of the item associated with the item information corresponding to the identifier of the next session, for example, the start time at which the user may purchase the "kill by second" item of the next session, which may also be referred to as "kill by second" start time.
In step 204, the target server determines a pre-loading time for loading the item information corresponding to the identifier of the next session in advance, a remaining time of the current time from the start time, and the item information to be presented, based on the current time, the start time, a preset minimum pre-loading time for loading the item information corresponding to the identifier of the next session in advance, a preset maximum pre-loading time for loading the item information corresponding to the identifier of the next session in advance, and the identifier of the next session.
Here, the target server may set in advance a maximum preloading time for loading in advance the article information corresponding to the identifier of the next session and a minimum preloading time for loading in advance the article information corresponding to the identifier of the next session. As an example, when the maximum preloading time is 3 minutes, the client may load the item information 3 minutes before the start of the second killing at the earliest time; when the minimum preloading time is 1 minute, the client may load the item information at the latest 1 minute before the start of the "second kill".
Here, the target server may determine, based on the current time, the start time acquired in step 203, the maximum preload time, the minimum preload time, and the identifier of the next session, a preload time for loading in advance the item information corresponding to the identifier of the next session, a remaining time of the current time from the start time, and item information to be presented.
Here, the target server may determine a remaining time of the current time from the start time based on the current time and the start time; the target server may determine the preload time based on the remaining time, the maximum preload time, and the minimum preload time; the target server may determine the item information to be presented based on the remaining time, the preload time, and the identifier of the next session.
In some optional implementations of this embodiment, the target server may first determine a difference between the start time and the current time, and use the difference as a remaining time between the current time and the start time; then, it may be determined whether the remaining time is greater than the maximum preload time, and if it is determined that the remaining time is greater than the maximum preload time, any time may be selected as the preload time within an interval greater than the minimum preload time and less than the maximum preload time. As an example, when the starting time having the purchase authority for the next session of the "second kill" item is 12 points, the current time is 11 points and 56 minutes, the maximum preload time is 3 minutes, and the minimum preload time is 1 minute, then the remaining time from which the next session of the "second kill" item can be purchased is 4 minutes, at which time it is determined that the remaining time 4 minutes is greater than the maximum preload time by 3 minutes, then the preload time may be set to any time within an interval that is less than the maximum preload time by 3 minutes and greater than the minimum preload time by 1 minute.
In some optional implementation manners of this embodiment, if it is determined that the remaining time is less than or equal to the maximum preloading time, it may be further determined whether the remaining time is greater than the minimum preloading time, and if it is determined that the remaining time is greater than the minimum preloading time, any time may be selected as the preloading time within an interval greater than the minimum preloading time and less than the remaining time. As an example, when the starting time having the purchase right for the next time of the "second kill" item is 12 points, the current time is 11 points 58 minutes, the maximum preload time is 3 minutes, and the minimum preload time is 1 minute, the remaining time from which the next time of the "second kill" item can be purchased is 2 minutes, at which time, it is determined that the remaining time 2 minutes is less than the maximum preload time 3 minutes and greater than the minimum preload time 1 minute, and the preload time may be set to any time within an interval of greater than the minimum preload time 1 minute and less than the above-mentioned remaining time 2 minutes.
In some optional implementation manners of this embodiment, if it is determined that the remaining time is less than the minimum preloading time, the preloading time may be set to a preset time value, for example, the preloading time is set to 0, the client may not load the item information in advance, and when the remaining time is 0, the client may directly request the server for the item information corresponding to the identifier of the next session.
In some optional implementation manners of this embodiment, the page update request may further include an identifier of a current session, and the target server may determine whether the start time is less than or equal to the current time, and if it is determined that the start time is less than or equal to the current time (the target server has the right to purchase an "kill second" item of a next session), may replace the item information corresponding to the identifier of the current session with the item information corresponding to the identifier of the next session, and use the replaced item information as the item information to be presented. As an example, when the starting time having the purchase right for the "second killing" item in the next session is 12 points, and the current time is 12 points and 1 minute, the current time is greater than the starting time, and the item information corresponding to the identifier in the next session is used to replace the item information corresponding to the identifier in the current session.
In some optional implementations of this embodiment, if the target server determines that the start time is greater than the current time (without the right to purchase the "kill of second" item of the next session), it may further determine whether the remaining time is greater than the preloading time and the item information corresponding to the identifier of the next session exists in the cache of the target server, and if it is determined that the remaining time is greater than the preloading time and the item information corresponding to the identifier of the next session exists in the cache of the target server, acquire the item information corresponding to the identifier of the next session from the cache of the target server and use the acquired item information as the item information to be presented.
In some optional implementation manners of this embodiment, if it is determined that the remaining time is less than or equal to the preloading time or the item information corresponding to the identifier of the next session does not exist in the cache of the target server, the item information corresponding to the identifier of the current session may be acquired as the item information to be presented.
In step 205, the target server sends the client the preloaded time, the remaining time and the item information to be presented.
Here, the target server may send the preloading time, the remaining time, and the information about the article to be presented, which are determined in step 204, to the client, so that the client presents the information about the article to be presented based on the preloading time, the remaining time, and the information about the article to be presented. When the article information to be presented is article information corresponding to the identifier of the next session, the target server can send the preloading time, the remaining time and the article information to be presented to the client in batches; when the item information to be presented is the item information corresponding to the identifier of the current session, the target server may send the preloading time, the remaining time, and the item information to be presented to the client at one time.
In some optional implementations of this embodiment, when the article information to be presented is article information corresponding to an identifier of a next session, the target server may first send the preload time and the remaining time to the client, where the client may determine whether the received preload time is the time value (e.g., 0), if it is determined that the preload time is not the time value, it may further determine whether the current remaining time is equal to the preload time, and if the current remaining time is equal to the preload time, the client may send an article information acquisition request for acquiring the article information corresponding to the identifier of the next session to the target server; and then, when the target server receives the item information acquisition request sent by the client, sending item information corresponding to the identifier of the next field to the client so that when the client determines that the current remaining time is 0, the item information corresponding to the identifier of the next field is presented. The client may determine the current remaining time based on the current time, the remaining time, and the time when the target server return remaining time is received.
In step 206, the client receives the preloading time, the remaining time and the information of the articles to be presented, which are returned by the target server.
Here, the client may receive the preload time, the remaining time, and the item information to be presented, which are returned by the target server. The pre-loading time, the remaining time and the information of the articles to be presented can be returned by the target server in batches or at one time.
In step 207, the client presents the item information to be presented based on the preload time and the remaining time.
Here, the client may determine a start time having an authority to purchase the "killing per second" item of the next session based on the remaining time and the time when the target server returns the remaining time, and may present item information corresponding to the identifier of the next session when the current time reaches the start time.
With further reference to FIG. 3, a timing diagram of yet another embodiment of a page rendering system according to the present application is shown.
As shown in fig. 3, in step 301, the client sends a page update request to the target server.
In step 302, the target server receives a page update request sent by the client.
In step 303, the target server acquires the start time of the purchase right of the item associated with the item information corresponding to the identifier of the next session.
In step 304, the target server determines a pre-loading time for loading the item information corresponding to the identifier of the next session in advance, a remaining time of the current time from the start time, and the item information to be presented, based on the current time, the start time, a preset minimum pre-loading time for loading the item information corresponding to the identifier of the next session in advance, a preset maximum pre-loading time for loading the item information corresponding to the identifier of the next session in advance, and the identifier of the next session.
Here, the operation of step 301-304 is substantially the same as the operation of step 201-204, and is not described herein again.
In step 305, the target server sends the preload time and the remaining time to the client.
Here, after the target server determines the item information to be presented, it may be determined whether the item information to be presented is the item information corresponding to the identifier of the next session, and if the item information corresponding to the identifier of the next session, the target server may first send the preloading time and the remaining time determined in step 304 to the client.
In step 306, the client receives the preload time and the remaining time returned by the target server.
Here, the client may receive the preload time and the remaining time returned by the target server.
In step 307, the client determines whether the preload time is a preset time value.
Here, the client may determine whether the preloading time is a preset time value (determine whether a preloading operation on the item information is required), where the time value may be set by the target server in response to determining that the remaining time is less than or equal to the minimum preloading time, for example, the time value may be 0; if not, step 308 may be performed.
In step 308, the client determines whether the current remaining time is equal to the preload time.
Here, the client may determine the current remaining time based on the current time, the above remaining time, and the time when the return remaining time of the target server is received. The client can add the time when the target server returns the remaining time to obtain the starting time, and subtract the current time from the obtained starting time to obtain the current remaining time; the client can also obtain a time difference by subtracting the time when the target server returns the remaining time from the current time, and then obtain the current remaining time by subtracting the time difference from the remaining time.
Here, when it is determined in step 307 that the preloading time is not the preset time value, the client may determine whether the current remaining time is equal to the preloading time (whether the current time reaches the preloading time for preloading the item information), and if so, may perform step 309.
In step 309, the client sends an item information acquisition request for acquiring item information corresponding to the identifier of the next session to the target server.
Here, when it is determined that the current remaining time is equal to the preloading time (the current time reaches the preloading time for preloading the item information), the client may send an item information acquisition request for acquiring the item information corresponding to the identifier of the next session to the target server.
In step 310, the target server receives an item information acquisition request sent by the client.
Here, the target server may receive an item information obtaining request sent by the client, and obtain item information corresponding to the identifier of the next session in a cache of the target server.
In step 311, the target server sends the item information corresponding to the identifier of the next session to the client.
Here, after the target server acquires the item information corresponding to the identifier of the next session in the cache, the target server may transmit the acquired item information corresponding to the identifier of the next session to the client.
In step 312, the client receives the item information corresponding to the identifier of the next session returned by the target server.
Here, the client may receive the item information corresponding to the identifier of the next session returned by the target server.
In step 313, the client determines whether the current remaining time is equal to 0.
Here, the client may determine whether the current remaining time is 0 (whether the current time reaches the start time of the purchase right of the item associated with the item information corresponding to the identifier of the next session), and if so, may perform step 314.
In step 314, the client presents the item information to be presented.
Here, when it is determined that the current remaining time is 0 (the current time reaches the start time), the client may present the item information corresponding to the identifier of the next session received in step 312.
FIG. 4 shows a flow 400 of one embodiment of a page rendering method according to the present application. The page presentation method comprises the following steps:
step 401, receiving a page update request sent by a client.
In this embodiment, an electronic device (for example, a server shown in fig. 1) on which the page presentation method operates may receive, through a wired connection manner or a wireless connection manner, a page update request sent by a client, where a process of presenting item information by the client may be divided into a plurality of stages, each stage is a ladder, a field may be used to characterize the ladder in which the client presents item information, and the page update request may include an identifier of a field next to a current field. The article information may also include service information, for example, server information of a nail beauty service, and the like.
In this embodiment, when a user buys a second killing item, the user performs a refresh operation on a current page presented on the client; and after the client detects the refreshing operation of the user on the current page, the client can send the page updating request to the electronic equipment. The second killing is a new mode of on-line auction, and is a selling mode that a network seller issues some commodities with ultra-low prices and all buyers make a robbery purchase at the same time.
Step 402, obtaining the starting time of the purchase authority of the item associated with the item information corresponding to the identifier of the next field.
In this embodiment, after receiving the identifier of the next session in step 401, the electronic device may obtain a start time of the purchase authority of the item associated with the item information corresponding to the identifier of the next session, where the start time may also be referred to as a start time of the purchase of the "killing by seconds" item of the next session by the user or a "killing by seconds" start time.
And step 403, determining the preloading time for loading the article information corresponding to the identifier of the next field in advance, the remaining time of the current time from the start time and the article information to be presented based on the current time, the start time, the preset minimum preloading time for loading the article information corresponding to the identifier of the next field in advance, the preset maximum preloading time for loading the article information corresponding to the identifier of the next field in advance and the identifier of the next field.
In this embodiment, the electronic device may preset a maximum preloading time for loading in advance the article information corresponding to the identifier of the next session, and a minimum preloading time for loading in advance the article information corresponding to the identifier of the next session.
In this embodiment, the electronic device may determine, based on the current time, the start time, the maximum preload time, the minimum preload time, and the identifier of the next session, a preload time for loading in advance the item information corresponding to the identifier of the next session, a remaining time of the current time from the start time, and item information to be presented.
In this embodiment, the electronic device may determine the remaining time between the current time and the start time based on the current time and the start time; the electronic device may determine the preload time based on the remaining time, the maximum preload time, and the minimum preload time; the electronic device may determine the item information to be presented based on the remaining time, the preload time, and the identifier of the next session.
In some optional implementations of this embodiment, the electronic device may first determine a difference between the start time and the current time, and use the difference as a remaining time between the current time and the start time; then, it may be determined whether the remaining time is greater than the maximum preload time, and if it is determined that the remaining time is greater than the maximum preload time, any time may be selected as the preload time within an interval greater than the minimum preload time and less than the maximum preload time.
In some optional implementation manners of this embodiment, if it is determined that the remaining time is less than or equal to the maximum preloading time, it may be further determined whether the remaining time is greater than the minimum preloading time, and if it is determined that the remaining time is greater than the minimum preloading time, any time may be selected as the preloading time within an interval greater than the minimum preloading time and less than the remaining time.
In some optional implementation manners of this embodiment, if it is determined that the remaining time is less than or equal to the minimum preloading time, the preloading time may be set to a preset time value, for example, the preloading time is set to 0, the client may not load the item information in advance, and when the remaining time is 0, the client may directly request the server for the item information corresponding to the identifier of the next session.
In some optional implementation manners of this embodiment, the page update request may further include an identifier of a current session, and the electronic device may determine whether the start time is less than or equal to the current time, and if it is determined that the start time is less than or equal to the current time, may replace the item information corresponding to the identifier of the current session with the item information corresponding to the identifier of a next session, and use the replaced item information as the item information to be presented.
In some optional implementations of this embodiment, if the electronic device determines that the start time is greater than the current time, it may further determine whether the remaining time is greater than the preload time and the item information corresponding to the identifier of the next session exists in the cache of the electronic device, and if it is determined that the remaining time is greater than the preload time and the item information corresponding to the identifier of the next session exists in the cache of the electronic device, it may acquire the item information corresponding to the identifier of the next session from the cache of the electronic device and use the acquired item information as the item information to be presented.
In some optional implementation manners of this embodiment, if it is determined that the remaining time is less than or equal to the preloading time or the item information corresponding to the identifier of the next session does not exist in the cache of the target server, the item information corresponding to the identifier of the current session may be acquired as the item information to be presented.
Step 404, sending the preloading time, the remaining time and the article information to be presented to the client for the client to present the article information to be presented based on the preloading time, the remaining time and the article information to be presented.
In this embodiment, the electronic device may send the pre-loading time, the remaining time, and the to-be-presented item information determined in step 403 to a client, so that the client presents the to-be-presented item information based on the pre-loading time, the remaining time, and the to-be-presented item information. When the article information to be presented is article information corresponding to the identifier of the next session, the electronic device can send the preloading time, the remaining time and the article information to be presented to the client in batches; when the item information to be presented is the item information corresponding to the identifier of the current session, the electronic device may send the preloading time, the remaining time, and the item information to be presented to the client at one time.
In some optional implementations of this embodiment, when the article information to be presented is article information corresponding to an identifier of a next session, the electronic device may first send the preload time and the remaining time to a client, where the client may determine whether the received preload time is the time value, if it is determined that the preload time is not the time value, then further determine whether the current remaining time is equal to the preload time, and if the current remaining time is equal to the preload time, the client may send an article information acquisition request for acquiring the article information corresponding to the identifier of the next session to the electronic device; then, when the electronic device receives the item information acquisition request sent by the client, the electronic device may send item information corresponding to the identifier of the next session to the client, so that when the client determines that the current remaining time is 0, the item information corresponding to the identifier of the next session is presented. The client may determine the current remaining time based on the current time, the remaining time, and the time when the target server return remaining time is received.
The method provided by the above embodiment of the application, by responding to a received page update request including an identifier of the next field sent by a client, sends the client a pre-loading time for loading in advance the item information corresponding to the identifier of the next field, a remaining time from a current time to a starting time of a purchase right of an item associated with the item information corresponding to the identifier of the next field, and the item information to be presented, so that the client loads the item information to be presented in advance based on the pre-loading time, and automatically presents the item information to be presented based on the remaining time, thereby reducing the pressure of a network and a server, and improving the timeliness of page switching.
With further reference to FIG. 5, a flow 500 of yet another embodiment of a page rendering method is shown. The process 500 of the page rendering method includes the following steps:
step 501, a page update request is sent to a target server.
In this embodiment, an electronic device (for example, the terminal device shown in fig. 1) on which the page rendering method operates may send the above-mentioned page update request to the target server. When a user buys a second killing object, refreshing a current page presented on the electronic equipment; after the electronic device detects that the user performs a refresh operation on the current page, the page update request may be sent to a target server.
Step 502, receiving the preloading time for loading the item information corresponding to the identifier of the next session in advance, the remaining time from the starting time of the purchase authority of the item associated with the item information corresponding to the identifier of the next session, and the item information to be presented, which are returned by the target server.
In this embodiment, the electronic device may receive, from the target server, a preloaded time for loading in advance the item information corresponding to the identifier of the next session, a remaining time between the current time and a start time of a purchase right of an item associated with the item information corresponding to the identifier of the next session, and the item information to be presented. The preloading time, the remaining time and the information of the articles to be presented can be returned by the target server in batches or at one time.
In some optional implementation manners of this embodiment, the item information to be presented includes item information corresponding to an identifier of a next session, and the electronic device may first receive the preload time and the remaining time returned by the target server; then, it may be determined whether the preloading time is a preset time value, where the time value may be set by the target server in response to determining that the remaining time is less than or equal to the minimum preloading time, and if it is determined that the preloading time is not the time value and the current remaining time is equal to the preloading time, an item information acquisition request for acquiring item information corresponding to the identifier of the next session may be sent to the target server; finally, the item information corresponding to the identifier of the next session returned by the target server can be received.
And 503, presenting the item information to be presented based on the preloading time and the remaining time.
In this embodiment, the electronic device may present the item information to be presented based on the preloading time and the remaining time. The electronic device may determine a start time having a right to purchase a "killing per second" item of a next session based on the remaining time and a time when the target server returns the remaining time, and when a current time reaches the start time, the electronic device may present item information corresponding to an identifier of the next session.
In some optional implementation manners of this embodiment, the electronic device may determine the current remaining time based on the current time, the remaining time, and the time when the target server return remaining time is received. The electronic equipment can add the time when the target server returns the remaining time and the remaining time to obtain the starting time, and subtract the current time from the obtained starting time to obtain the current remaining time; the electronic equipment can also obtain a time difference by subtracting the time when the target server returns the remaining time from the current time, and then obtain the current remaining time by subtracting the time difference from the remaining time. The electronic device may determine whether the current remaining time is 0, and if so, may present the item information corresponding to the identifier of the next session.
In this embodiment, when the received to-be-presented item information is item information corresponding to an identifier of a current session, the electronic device may immediately present the item information corresponding to the identifier of the current session.
According to the method provided by the embodiment of the application, the page updating request is sent to the target server, the preloading time, the remaining time and the article information to be presented, which are returned by the target server, are received, and then the article information to be presented is presented based on the preloading time and the remaining time, so that the target server is accessed in advance through the preloading technology to obtain the article information to be presented, the pressure of a network and a server is relieved, and the timeliness of page switching is improved.
With further reference to fig. 6, as an implementation of the method shown in the above-mentioned figures, the present application provides an embodiment of a page rendering apparatus, which corresponds to the embodiment of the method shown in fig. 4, and which can be applied in various electronic devices.
As shown in fig. 6, the page presentation apparatus 600 of the present embodiment includes: a receiving unit 601, an obtaining unit 602, a determining unit 603, and a transmitting unit 604. The receiving unit 601 is configured to receive a page update request sent by a client, where the page update request includes an identifier of a next session of a current session, and the session is used to represent a echelon of presenting item information by the client; the acquisition unit 602 is configured to acquire a start time of a purchase right of an item associated with item information corresponding to an identifier of a next session; the determining unit 603 is configured to determine, based on the current time, the start time, a preset minimum pre-loading time for loading in advance the item information corresponding to the identifier of the next session, a preset maximum pre-loading time for loading in advance the item information corresponding to the identifier of the next session, and the identifier of the next session, a pre-loading time for loading in advance the item information corresponding to the identifier of the next session, a remaining time of the current time from the start time, and the item information to be presented; the sending unit 604 is configured to send the pre-loading time, the remaining time and the item information to be presented to the client for the client to present the item information to be presented based on the pre-loading time, the remaining time and the item information to be presented.
In this embodiment, the specific processing of the receiving unit 601, the obtaining unit 602, the determining unit 603, and the sending unit 604 of the page presenting apparatus 600 may refer to step 401, step 402, step 403, and step 404 in the corresponding embodiment of fig. 4.
In some optional implementations of the present embodiment, the determining unit 603 may include a first determining module (not shown in the figure), a second determining module (not shown in the figure), and a first selecting module (not shown in the figure). The first determining module may first determine a difference between the start time and the current time, and use the difference as a remaining time between the current time and the start time; the second determining module may determine whether the remaining time is greater than the maximum preload time, and if it is determined that the remaining time is greater than the maximum preload time, the first selecting module may select any time as the preload time within an interval greater than the minimum preload time and less than the maximum preload time.
In some optional implementations of this embodiment, the determining unit 603 may further include a third determining module (not shown in the figure) and a second selecting module (not shown in the figure). If it is determined that the remaining time is less than or equal to the maximum preload time, the third determining module may further determine whether the remaining time is greater than the minimum preload time, and if it is determined that the remaining time is greater than the minimum preload time, the second selecting module may select any time within an interval greater than the minimum preload time and less than the remaining time as the preload time.
In some optional implementations of this embodiment, the determining unit 603 may further include a setting module (not shown in the figure). If it is determined that the remaining time is less than the minimum preload time, the setting module may set the preload time to a preset time value.
In some optional implementations of this embodiment, the determining unit 603 may further include a fourth determining module (not shown in the figure) and a replacing module (not shown in the figure). The page update request may further include an identifier of a current session, and the fourth determining module may determine whether the start time is less than or equal to the current time, and if it is determined that the start time is less than or equal to the current time, the replacing module may replace the item information corresponding to the identifier of the current session with the item information corresponding to the identifier of the next session, and use the replaced item information as the item information to be presented.
In some optional implementations of this embodiment, the determining unit 603 may further include a fifth determining module (not shown in the figure) and a first obtaining module (not shown in the figure). If it is determined that the start time is greater than the current time, the fifth determining module may further determine whether the remaining time is greater than the preloading time and the item information corresponding to the identifier of the next session exists in the cache of the electronic device, and if it is determined that the remaining time is greater than the preloading time and the item information corresponding to the identifier of the next session exists in the cache of the electronic device, the first obtaining module may obtain the item information corresponding to the identifier of the next session from the cache of the electronic device and use the obtained item information as the item information to be presented.
In some optional implementation manners of this embodiment, the determining unit 603 may further include a second obtaining module (not shown in the figure). If it is determined that the remaining time is less than or equal to the preloading time or the item information corresponding to the identifier of the next session does not exist in the cache of the target server, the second obtaining module may obtain the item information corresponding to the identifier of the current session as the item information to be presented.
In some optional implementations of this embodiment, the sending unit 604 may include a first sending module (not shown in the figure) and a second sending module (not shown in the figure). When the article information to be presented is article information corresponding to an identifier of a next session, the first sending module may first send the preloading time and the remaining time to a client, where the client may determine whether the received preloading time is the time value, and if it is determined that the preloading time is not the time value, may further determine whether the current remaining time is equal to the preloading time, and if the current remaining time is equal to the preloading time, the client may send an article information obtaining request for obtaining the article information corresponding to the identifier of the next session; then, when receiving the item information acquisition request sent by the client, the second sending module may send the item information corresponding to the identifier of the next session to the client, so that when the client determines that the current remaining time is 0, the item information corresponding to the identifier of the next session is presented.
In some optional implementations of the present embodiment, the page rendering apparatus 600 may further include a synchronization unit (not shown in the figure). The synchronization unit can ensure that the time of all machines in the second killing service module is uniform through a network time protocol so as to ensure that each client has the purchasing authority of the second killing articles of the next field at the same time as much as possible.
With further reference to fig. 7, as an implementation of the method shown in the above-mentioned figures, the present application provides an embodiment of a page rendering apparatus, which corresponds to the embodiment of the method shown in fig. 5, and which can be applied in various electronic devices.
As shown in fig. 7, the page rendering apparatus 700 of the present embodiment includes: a transmitting unit 701, a receiving unit 702 and a presenting unit 703. The sending unit 701 is configured to send a page update request to a target server, where the page update request includes an identifier of a next session of a current session, and the session is used to represent a echelon of presenting item information by a client; the receiving unit 702 is configured to receive the preloaded time of the item information corresponding to the identifier for loading the next session in advance, the remaining time from the start time of the purchase right of the item associated with the item information corresponding to the identifier for the next session by the current time, and the item information to be presented, which are returned by the target server, where the preloaded time, the remaining time, and the item information to be presented are determined by the server in response to receiving the page update request based on the current time, the start time, the preset minimum preloaded time of the item information corresponding to the identifier for loading the next session in advance, the preset maximum preloaded time of the item information corresponding to the identifier for loading the next session in advance, and the identifier for the next session; the presentation unit 703 is configured to present the item information to be presented based on the preload time and the remaining time.
In this embodiment, the specific processing of the sending unit 701, the receiving unit 702 and the presenting unit 703 of the page presenting apparatus 700 may refer to step 501, step 501 and step 503 in the corresponding embodiment of fig. 5.
In some optional implementations of the present embodiment, the receiving unit 702 may include a first receiving module (not shown in the figure), a determining module (not shown in the figure), a sending module (not shown in the figure), and a second receiving module (not shown in the figure). The article information to be presented includes article information corresponding to an identifier of a next session, and the first receiving module may first receive the preload time and the remaining time returned by the target server; then, the determining module may determine whether the preloading time is a preset time value, where the time value may be set by the target server in response to determining that the remaining time is less than or equal to the minimum preloading time, and if it is determined that the preloading time is not the time value and the current remaining time is equal to the preloading time, the sending module may send an item information obtaining request for obtaining item information corresponding to the identifier of the next session to the target server; finally, the second receiving module may receive the item information corresponding to the identifier of the next session returned by the target server.
In some optional implementation manners of this embodiment, the presenting unit 703 may determine whether the current remaining time is 0, and if so, may present the item information corresponding to the identifier of the next received session.
Referring now to FIG. 8, shown is a block diagram of a computer system 800 suitable for use in implementing a server or terminal device of an embodiment of the present application. The terminal device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 8, the computer system 800 includes a Central Processing Unit (CPU)801 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the system 800 are also stored. The CPU801, ROM 802, and RAM803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, keys, and the like; an output section 807 including a display such as a Liquid Crystal Display (LCD) and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program performs the above-described functions defined in the method of the present application when executed by the Central Processing Unit (CPU) 801. It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, an obtaining unit, a determining unit, and a transmitting unit. The names of these units do not in some cases form a limitation on the unit itself, and for example, the receiving unit may also be described as a "unit that receives a page update request sent by a client".
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a transmitting unit, a receiving unit, and a presenting unit. Where the names of these units do not in some cases constitute a limitation on the unit itself, for example, the sending unit may also be described as a "unit sending a page update request to a target server".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the terminal described in the above embodiments; or may exist separately and not be assembled into the terminal. The computer readable medium carries one or more programs which, when executed by the terminal, cause the terminal to: receiving a page updating request sent by a client; acquiring the starting time of the purchase permission of the item associated with the item information corresponding to the identifier of the next session; determining the preloading time for loading the article information corresponding to the identifier of the next field in advance, the remaining time of the current time from the start time and the article information to be presented based on the current time, the start time, the preset minimum preloading time for loading the article information corresponding to the identifier of the next field in advance, the preset maximum preloading time for loading the article information corresponding to the identifier of the next field in advance and the identifier of the next field; and sending the preloading time, the remaining time and the article information to be presented to the client so that the client presents the article information to be presented based on the preloading time, the remaining time and the article information to be presented. Alternatively, the non-volatile computer storage medium stores one or more programs that, when executed by a device, cause the device to: sending a page updating request to a target server; receiving the preloading time for loading the item information corresponding to the identifier of the next field in advance, the remaining time from the current time to the starting time of the purchase authority of the item associated with the item information corresponding to the identifier of the next field and the item information to be presented, which are returned by the target server; and presenting the item information to be presented based on the preloading time and the remaining time.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (29)

1. A method for rendering a page, the method comprising:
receiving a page updating request sent by a client, wherein the page updating request comprises an identifier of the next field of the current field, and the field is used for representing the echelon of the client for presenting the article information;
acquiring the starting time of the purchase authority of the item associated with the item information corresponding to the identifier of the next field;
determining a preloading time for loading in advance the item information corresponding to the identifier of the next field, a remaining time of the current time from the start time and the item information to be presented based on the current time, the start time, a preset minimum preloading time for loading in advance the item information corresponding to the identifier of the next field, a preset maximum preloading time for loading in advance the item information corresponding to the identifier of the next field and the identifier of the next field;
sending the preloading time, the remaining time and the item information to be presented to the client for the client to present the item information to be presented based on the preloading time, the remaining time and the item information to be presented; and
the sending the preloading time, the remaining time and the information of the items to be presented to the client comprises:
when the article information to be presented is article information corresponding to the identifier of the next session, sending the preloading time, the remaining time and the article information to be presented to the client in batches;
and when the article information to be presented is the article information corresponding to the identifier of the current session, sending the preloading time, the remaining time and the article information to be presented to the client at one time.
2. The method of claim 1, wherein the determining a pre-load time for loading in advance the item information corresponding to the identifier of the next session, a remaining time of a current time from the start time comprises:
determining a difference value between the starting time and the current time, and taking the difference value as the remaining time between the current time and the starting time;
determining whether the remaining time is greater than the maximum preload time;
and in response to the fact that the remaining time is larger than the maximum preloading time, selecting any time from an interval which is larger than the minimum preloading time and smaller than the maximum preloading time as the preloading time for loading the article information corresponding to the identifier of the next session in advance.
3. The method of claim 2, wherein after the determining whether the remaining time is greater than the maximum preload time, the method further comprises:
in response to determining that the remaining time is less than or equal to the maximum preload time, further determining whether the remaining time is greater than the minimum preload time;
and in response to the fact that the remaining time is larger than the minimum preloading time, selecting any time from an interval which is larger than the minimum preloading time and smaller than the remaining time as the preloading time for loading the article information corresponding to the identifier of the next session in advance.
4. The method of claim 3, wherein after the determining whether the remaining time is greater than the minimum preload time, the method further comprises:
in response to determining that the remaining time is less than or equal to the minimum preload time, setting the preload time to a preset time value.
5. The method according to one of claims 1 to 4, wherein the page update request further comprises an identifier of the current session; and
the determining of the item information to be presented includes:
determining whether the start time is less than or equal to the current time;
and in response to the fact that the starting time is less than or equal to the current time, replacing the item information corresponding to the identifier of the current field with the item information corresponding to the identifier of the next field, and taking the replaced item information as the item information to be presented.
6. The method of claim 5, wherein after said determining whether said start time is less than or equal to said current time, said method further comprises:
in response to determining that the start time is greater than the current time, further determining whether the remaining time is greater than the preload time and whether item information corresponding to the identifier of the next session is present in a cache;
and if so, acquiring the article information corresponding to the identifier of the next session as the article information to be presented.
7. The method according to claim 6, wherein after the determining whether the remaining time is greater than the preload time and whether item information corresponding to the identifier of the next session is present in the cache, the method comprises:
and in response to determining that the remaining time is less than or equal to the preloading time or the item information corresponding to the identifier of the next session does not exist in the cache, acquiring the item information corresponding to the identifier of the current session as the item information to be presented.
8. The method of claim 6, wherein the sending the preload time, the remaining time, and the item information to be presented to the client for presentation of the item information to be presented by the client based on the preload time, the remaining time, and the item information to be presented comprises:
sending the pre-loading time and the remaining time to the client for the client to send an item information acquisition request for acquiring item information corresponding to the identifier of the next session based on the pre-loading time and the remaining time;
and in response to receiving the item information acquisition request sent by the client, sending item information corresponding to the identifier of the next session to the client for the client to present the item information corresponding to the identifier of the next session based on the remaining time.
9. The method of claim 1, wherein prior to receiving a page update request sent by a client, the method further comprises:
the current time is synchronized using a network time protocol.
10. A method for rendering a page, the method comprising:
sending a page updating request to a target server, wherein the page updating request comprises an identifier of a next field of a current field, and the field is used for representing a echelon of presenting item information by a client;
receiving a pre-loading time for loading in advance the item information corresponding to the identifier of the next session, a remaining time from a starting time of purchase right of an item associated with the item information corresponding to the identifier of the next session and item information to be presented, wherein the pre-loading time, the remaining time and the item information to be presented are returned by the target server, and are determined by the server in response to receiving the page update request based on the current time, the starting time, a preset minimum pre-loading time for loading in advance the item information corresponding to the identifier of the next session, a preset maximum pre-loading time for loading in advance the item information corresponding to the identifier of the next session and the identifier of the next session;
presenting the item information to be presented based on the pre-loading time and the remaining time; and
the receiving of the preloaded time for loading in advance the item information corresponding to the identifier of the next session, the remaining time from the start time of the purchase right of the item associated with the item information corresponding to the identifier of the next session by the current time, and the item information to be presented, which are returned by the target server, includes:
when the item information to be presented is item information corresponding to the identifier of the next field, receiving the preloading time for loading the item information corresponding to the identifier of the next field in advance, the remaining time from the current time to the starting time of the purchase authority of the item associated with the item information corresponding to the identifier of the next field, and the item information to be presented, which are returned by the target server in batches;
and when the item information to be presented is the item information corresponding to the identifier of the current field, receiving the preloading time for loading the item information corresponding to the identifier of the next field in advance, the remaining time of the current time from the starting time of the purchase authority of the item associated with the item information corresponding to the identifier of the next field, and the item information to be presented, which are returned by the target server at one time.
11. The method according to claim 10, wherein the item information to be presented comprises item information corresponding to the identifier of the next session; and
the receiving of the preloaded time for loading in advance the item information corresponding to the identifier of the next session, the remaining time from the start time of the purchase right of the item associated with the item information corresponding to the identifier of the next session by the current time, and the item information to be presented, which are returned by the target server, includes:
receiving the preloading time for loading the item information corresponding to the identifier of the next field in advance, and the remaining time from the current time to the starting time of the purchase authority of the item associated with the item information corresponding to the identifier of the next field, which are returned by the target server;
determining whether the preload time is a preset time value, wherein the time value is set by the target server in response to determining that the remaining time is less than or equal to the minimum preload time;
in response to determining that the pre-loading time is not the time value and in response to determining that a current remaining time is equal to the pre-loading time, sending an item information acquisition request for acquiring item information corresponding to an identifier of the next session to the target server, wherein the current remaining time is determined based on a current time and the remaining time;
and receiving the item information corresponding to the identifier of the next session returned by the target server.
12. The method according to claim 10 or 11, wherein the presenting the item information to be presented based on the preload time and the remaining time comprises:
and presenting the item information to be presented in response to the current remaining time being equal to 0.
13. A page rendering system, the system comprising:
the target server is used for receiving a page updating request sent by a client, wherein the page updating request comprises an identifier of a next field of a current field, the field is used for representing a gradient of presenting article information by the client, and acquiring a starting time of purchase permission of an article associated with the article information corresponding to the identifier of the next field, and based on the current time, the starting time, a preset minimum preloading time for loading the article information corresponding to the identifier of the next field in advance, a preset maximum preloading time for loading the article information corresponding to the identifier of the next field in advance and the identifier of the next field, determining a preloading time for loading the article information corresponding to the identifier of the next field in advance, a remaining time of the current time from the starting time and article information to be presented, sending the preloading time, the remaining time and the information of the articles to be presented to the client; and
the target server is further configured to send the preloading time, the remaining time and the item information to be presented to the client in batches when the item information to be presented is item information corresponding to an identifier of a next session;
the target server is further configured to send the preloading time, the remaining time and the item information to be presented to the client once when the item information to be presented is item information corresponding to an identifier of a current session;
the client is used for sending a page updating request to a target server, receiving the preloading time, the remaining time and the to-be-presented article information returned by the target server, and presenting the to-be-presented article information based on the preloading time and the remaining time.
14. The system of claim 13,
the target server is further configured to determine a difference between the start time and the current time, use the difference as a remaining time between the current time and the start time, determine whether the remaining time is greater than the maximum preloading time, and select any time within an interval greater than the minimum preloading time and less than the maximum preloading time as a preloading time for loading in advance the item information corresponding to the identifier of the next session in response to determining that the remaining time is greater than the maximum preloading time.
15. The system of claim 14,
and the target server is further used for responding to the fact that the remaining time is smaller than or equal to the maximum preloading time, further determining whether the remaining time is larger than the minimum preloading time, responding to the fact that the remaining time is larger than the minimum preloading time, and selecting any time from an interval which is larger than the minimum preloading time and smaller than the remaining time as the preloading time for loading the article information corresponding to the identifier of the next time in advance.
16. The system of claim 15,
the target server is further configured to set the preload time to a preset time value in response to determining that the remaining time is less than or equal to the minimum preload time.
17. The system according to any of claims 13-16, wherein said page update request further comprises an identifier of a current session; and
the target server is further configured to determine whether the start time is less than or equal to the current time, replace, in response to determining that the start time is less than or equal to the current time, the item information corresponding to the identifier of the current session with the item information corresponding to the identifier of the next session, and use the replaced item information as the item information to be presented.
18. The system of claim 17,
and the target server is further used for responding to the determination that the starting time is greater than the current time, further determining whether the remaining time is greater than the preloading time and whether the item information corresponding to the identifier of the next field exists in a cache, and if so, acquiring the item information corresponding to the identifier of the next field as the item information to be presented.
19. The system of claim 18,
and the target server is also used for responding to the fact that the article information corresponding to the identifier of the next field does not exist in the cache, and acquiring the article information corresponding to the identifier of the current field as the article information to be presented.
20. The system of claim 18,
the target server is further configured to send the preload time and the remaining time to the client, so that the client sends an item information acquisition request for acquiring item information corresponding to the identifier of the next session based on the preload time and the remaining time, and in response to receiving the item information acquisition request sent by the client, send the item information corresponding to the identifier of the next session to the client, so that the client presents the item information corresponding to the identifier of the next session based on the remaining time.
21. The system of claim 13,
the target server is further configured to synchronize the current time using a network time protocol.
22. The system according to claim 13, wherein the item information to be presented comprises item information corresponding to the identifier of the next session; and
the client is further used for receiving a preloading time for loading the item information corresponding to the identifier of the next field in advance, a remaining time from a starting time of purchase authority of an item associated with the item information corresponding to the identifier of the next field returned by the target server, and determining whether the preloading time is a preset time value, wherein the time value is set by the target server in response to determining that the remaining time is less than or equal to the minimum preloading time, in response to determining that the preloading time is not the time value, and in response to determining that the current remaining time is equal to the preloading time, sending an item information acquisition request for acquiring the item information corresponding to the identifier of the next field to the target server, wherein the current remaining time is determined based on the current time and the remaining time, and receiving the item information corresponding to the identifier of the next session returned by the target server.
23. The system of claim 13 or 22,
the client is further used for responding to the current remaining time equal to 0 and presenting the article information to be presented.
24. A page rendering apparatus, characterized in that the apparatus comprises:
the system comprises a receiving unit, a display unit and a display unit, wherein the receiving unit is configured to receive a page updating request sent by a client, the page updating request comprises an identifier of a next field of a current field, and the field is used for representing a echelon of presenting article information by the client;
an acquisition unit configured to acquire a start time of a purchase right of an item associated with item information corresponding to an identifier of the next session;
a determining unit, configured to determine, based on the current time, the start time, a preset minimum pre-loading time for loading in advance the item information corresponding to the identifier of the next session, a preset maximum pre-loading time for loading in advance the item information corresponding to the identifier of the next session, and the identifier of the next session, a pre-loading time for loading in advance the item information corresponding to the identifier of the next session, a remaining time of the current time from the start time, and item information to be presented;
a sending unit, configured to send the pre-loading time, the remaining time, and the item information to be presented to the client, so that the client presents the item information to be presented based on the pre-loading time, the remaining time, and the item information to be presented; and
the sending unit is further configured to send the preloading time, the remaining time and the item information to be presented to the client in batches when the item information to be presented is item information corresponding to an identifier of a next session;
the sending unit is further configured to send the preloading time, the remaining time, and the item information to be presented to the client at one time when the item information to be presented is item information corresponding to an identifier of a current session.
25. A page rendering apparatus, characterized in that the apparatus comprises:
the system comprises a sending unit, a receiving unit and a display unit, wherein the sending unit is configured to send a page updating request to a target server, the page updating request comprises an identifier of a next field of a current field, and the field is used for representing a echelon of presenting article information by a client;
a receiving unit, configured to receive a preload time for loading in advance the item information corresponding to the identifier of the next session, a remaining time from a start time of purchase right of an item associated with the item information corresponding to the identifier of the next session, and item information to be presented, where the preload time, the remaining time, and the item information to be presented are determined by the server in response to receiving the page update request based on the current time, the start time, a preset minimum preload time for loading in advance the item information corresponding to the identifier of the next session, a preset maximum preload time for loading in advance the item information corresponding to the identifier of the next session, and the identifier of the next session;
the presentation unit is configured to present the item information to be presented based on the preloading time and the remaining time; and
the receiving unit is further configured to receive, when the item information to be presented is item information corresponding to an identifier of a next session, preloaded time for loading the item information corresponding to the identifier of the next session in advance, remaining time from the current time to start time of purchase permission of an item associated with the item information corresponding to the identifier of the next session, and the item information to be presented, which are returned by the target server in batches;
the receiving unit is further configured to receive, when the item information to be presented is item information corresponding to an identifier of a current session, pre-loading time used for loading in advance the item information corresponding to the identifier of the next session, remaining time from the current time to start time of purchase permission of an item associated with the item information corresponding to the identifier of the next session, and the item information to be presented, which are returned by the target server at one time.
26. A server, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-9.
27. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-9.
28. A terminal, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 10-12.
29. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 10-12.
CN201710397922.4A 2017-05-31 2017-05-31 Page presentation method, system and device Active CN107203629B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710397922.4A CN107203629B (en) 2017-05-31 2017-05-31 Page presentation method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710397922.4A CN107203629B (en) 2017-05-31 2017-05-31 Page presentation method, system and device

Publications (2)

Publication Number Publication Date
CN107203629A CN107203629A (en) 2017-09-26
CN107203629B true CN107203629B (en) 2021-02-26

Family

ID=59906764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710397922.4A Active CN107203629B (en) 2017-05-31 2017-05-31 Page presentation method, system and device

Country Status (1)

Country Link
CN (1) CN107203629B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108089894A (en) * 2017-12-15 2018-05-29 福建中金在线信息科技有限公司 Display methods, device and the electronic equipment of the page
CN109977168B (en) * 2019-03-18 2021-11-05 武汉达梦数据库股份有限公司 Database data synchronization method and device based on data page preloading
CN111177628A (en) * 2019-12-27 2020-05-19 北京达佳互联信息技术有限公司 Access entrance control method and device and electronic equipment
CN113763097A (en) * 2020-12-14 2021-12-07 北京沃东天骏信息技术有限公司 Method and device for updating article information
CN112801753B (en) * 2021-02-09 2024-04-23 深圳市富途网络科技有限公司 Page display method, device and medium
CN113610603B (en) * 2021-08-09 2024-04-16 京东科技控股股份有限公司 Page information processing method and device, electronic equipment and storage medium
CN114222148B (en) * 2021-11-03 2024-03-01 广州方硅信息技术有限公司 Countdown control method and device, storage medium and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346891A (en) * 2010-07-30 2012-02-08 阿里巴巴集团控股有限公司 Network transaction method and server
CN102855318A (en) * 2012-08-31 2013-01-02 北京搜狗信息服务有限公司 Method and system for preloading of webpages
US8473350B1 (en) * 2005-03-31 2013-06-25 Nokia Corporation Apparatus, methods and systems for ad-hoc applications based on advertisement
CN103246526A (en) * 2012-02-07 2013-08-14 腾讯科技(深圳)有限公司 Client pre-loading method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8473350B1 (en) * 2005-03-31 2013-06-25 Nokia Corporation Apparatus, methods and systems for ad-hoc applications based on advertisement
CN102346891A (en) * 2010-07-30 2012-02-08 阿里巴巴集团控股有限公司 Network transaction method and server
CN103246526A (en) * 2012-02-07 2013-08-14 腾讯科技(深圳)有限公司 Client pre-loading method and device
CN102855318A (en) * 2012-08-31 2013-01-02 北京搜狗信息服务有限公司 Method and system for preloading of webpages

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种秒杀场次自动切换的方法和***;Adventure;《http://adventure0123.github.io/yuanjianwei/2017/04/17/seckill/》;20170417;第1-7页 *

Also Published As

Publication number Publication date
CN107203629A (en) 2017-09-26

Similar Documents

Publication Publication Date Title
CN107203629B (en) Page presentation method, system and device
US11038975B2 (en) Information pushing method and device
CN107302597B (en) Message file pushing method and device
CN109150929B (en) Data request processing method and device under high concurrency scene
CN109447712B (en) Consultation method, consultation device, electronic equipment and storage medium
CN108810047B (en) Method and device for determining information push accuracy rate and server
CN110619078B (en) Method and device for pushing information
CN110473036B (en) Method and device for generating order number
CN108600329B (en) Method and equipment for pushing information and displaying information
CN111597486A (en) Information processing method and device and electronic equipment
CN113822745A (en) Article display method and device
CN112559898B (en) Item information sending method, item information sending device, electronic equipment and computer readable medium
CN108874836B (en) Method and device for transferring electronic ticket
CN110619101B (en) Method and apparatus for processing information
CN113378346A (en) Method and device for model simulation
CN112000746B (en) Data management method and device and server
CN113824675B (en) Method and device for managing login state
CN113535740B (en) Inventory management method and device
CN113741888A (en) Service processing method and device
CN111784376B (en) Method and device for processing information
CN113760929A (en) Data synchronization method and device, electronic equipment and computer readable medium
CN108811036B (en) Method and apparatus for displaying wireless access point information
US20160300269A1 (en) Usage-based hardware or software upgrades
CN109426997B (en) Method and device for processing information and server
CN111652694A (en) Order processing method and device and electronic equipment

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
GR01 Patent grant
GR01 Patent grant