CN105827580B - Page access method, device and system - Google Patents

Page access method, device and system Download PDF

Info

Publication number
CN105827580B
CN105827580B CN201510012597.6A CN201510012597A CN105827580B CN 105827580 B CN105827580 B CN 105827580B CN 201510012597 A CN201510012597 A CN 201510012597A CN 105827580 B CN105827580 B CN 105827580B
Authority
CN
China
Prior art keywords
abstract
processing result
request
server
processing
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
CN201510012597.6A
Other languages
Chinese (zh)
Other versions
CN105827580A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510012597.6A priority Critical patent/CN105827580B/en
Priority to PCT/CN2015/099542 priority patent/WO2016110206A1/en
Publication of CN105827580A publication Critical patent/CN105827580A/en
Application granted granted Critical
Publication of CN105827580B publication Critical patent/CN105827580B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a page access method, a device and a system, wherein the method comprises the following steps: sending a first request to a server, wherein the first request carries a first abstract, the first abstract is an abstract of a first processing result, and the first processing result is a processing result of the server on a last request; receiving a first response message returned by the server, where the first response message carries first difference information, the first difference information is a difference between a second processing result and the first processing result, and the second processing result is a processing result of the server on the first request; and updating a display page according to the first difference information. The application can reduce the data transmitted in the mobile internet, so that the time consumed in the transmission process is short, especially under the condition of poor network quality, the loading speed of the page content can be accelerated, the user can see the page content in a short time, and the user experience is improved.

Description

Page access method, device and system
Technical Field
The present application relates to the field of mobile internet technologies, and in particular, to a method, an apparatus, and a system for accessing a page.
Background
The user experience of a mobile internet shopping platform depends largely on the network quality of the device. The existing network quality is uneven, the requirements of all users cannot be met, especially when a lot of data needs to be loaded, network congestion is easily caused, the time required by loading is long, even the situation of loading failure occurs, and the user experience is greatly damaged.
The home page on some mobile internet shopping platforms typically requires a lot of content to be presented. The contents displayed on the home page mainly comprise latest commodity activities, classification navigation, recommended merchants and commodities. Moreover, these contents are usually dynamically changed, so that each time a user accesses a home page, the user needs to download data from the server to enable the user to see the latest contents. Downloading all the content each time not only consumes a large amount of traffic but also makes the transmission time longer in case of bad network, and makes the user wait for a longer time.
Disclosure of Invention
The application aims to provide a page access method, a page access device and a page access system, and solve the problem that in the mobile internet, especially when the network quality is poor, the number of data to be loaded is large, so that network congestion is caused, and the transmission time is long.
The application provides a page access method, which comprises the following steps:
sending a first request to a server, wherein the first request carries a first abstract, the first abstract is an abstract of a first processing result, and the first processing result is a processing result of the last request by the server, so that the server determines the first processing result according to the first abstract;
receiving a first response message returned by the server, where the first response message carries first difference information, the first difference information is a difference between a second processing result and the first processing result, and the second processing result is a processing result of the server on the first request;
and updating a display page according to the first difference information.
In another aspect, the present application further provides a page access method, where the method includes:
receiving a first request sent by a client, wherein the first request carries a first abstract, and the first abstract is an abstract of a processing result of a last request before the first request;
determining to obtain a first processing result according to the first abstract, wherein the first processing result is a processing result of a last request of the server to the client;
processing the first request to obtain a second processing result;
comparing the second processing result with the first processing result to obtain first difference information;
and sending a first response message to the client, wherein the first response message comprises first difference information.
In another aspect, the present application further provides a client, configured on a mobile terminal, where the client includes:
a sending unit, configured to send a first request to a server, where the first request carries a first digest, the first digest is a digest of a first processing result, and the first processing result is a processing result of a last request of the client from the server, so that the server determines the first processing result according to the first digest;
a receiving unit, configured to receive a first response message returned by the server, where the first response message carries first difference information, the first difference information is a difference between a second processing result and the first processing result, and the second processing result is a processing result of the server on the first request;
and the processing unit is used for updating a display page according to the first difference information received by the receiving unit.
In yet another aspect, the present application further provides a server, including:
a receiving unit, configured to receive a first request sent by a client, where the first request carries a first digest, and the first digest is a digest of a processing result of a last request before the first request;
the processing unit is used for determining to obtain a first processing result according to the first abstract, wherein the first processing result is a processing result of the last request of the server to the client;
the processing unit is further configured to process the first request to obtain a second processing result;
the processing unit is further configured to compare the second processing result with the first processing result to obtain first difference information;
and the sending unit is used for sending a first response message to the client, wherein the first response message comprises the first difference information obtained by the processing unit.
In another aspect, the present application further provides a page access system, including: a client and a server;
the client sends a first request to a server, wherein the first request carries a first abstract, the first abstract is an abstract of a first processing result, and the first processing result is a processing result of the last request of the server to the client;
the server determines to obtain the first processing result according to the first abstract;
the server processes the first request to obtain a second processing result;
the server compares the second processing result with the first processing result to obtain first difference information;
the server sends a first response message to the client, wherein the first response message comprises first difference information;
and the client updates a display page according to the first difference information.
According to the page access method, the device and the system, the data are transmitted in the mode of transmitting the abstract and the difference part of the data, the data transmitted in the mobile internet can be reduced, the time consumed in the transmission process is short, especially when dynamic page data are loaded under the condition of poor network quality, the transmission delay is shortened, the loading speed of page content can be accelerated, a user can see the page content in a short time, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic structural diagram of a page access system according to an embodiment of the present application;
fig. 2 is a flowchart of a page access method provided in an embodiment of the present application;
fig. 3 is a flowchart of a page access method on a client side according to an embodiment of the present application;
fig. 4 is a flowchart of a page access method at a server according to an embodiment of the present application;
fig. 5 is a flowchart of another page access method provided in the embodiment of the present application;
fig. 6 is a flowchart of another page access method on the client side according to an embodiment of the present application;
fig. 7 is a flowchart of another page access method at the server according to the embodiment of the present application;
fig. 8 is a schematic diagram of a client apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram of an apparatus of a server according to an embodiment of the present application;
fig. 10 is a schematic diagram of a device of a client according to an embodiment of the present application;
fig. 11 is a schematic device diagram of another server according to an embodiment of the present application.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The page access method, the page access device and the page access system are suitable for various mobile internet display platforms, particularly for mobile internet shopping platforms with more categories and large data volumes, and comprise a server and a client.
Fig. 1 is a schematic structural diagram of a page access system provided in an embodiment of the present application, and as shown in fig. 1, the system includes: the system comprises a server 1 and a mobile terminal 2, wherein the mobile terminal is provided with a client 3, a user initiates a request through the client 3, the server 1 performs corresponding processing operation when receiving the request sent by the client 3, and a processing result is returned to the client 3 so as to be displayed to the user on the client 3.
Fig. 2 is a schematic diagram of a page access method of the page access system in fig. 1 provided in an embodiment of the present application, and as shown in fig. 2, the page access method includes:
s101, the client sends a first request to the server.
A user initiates a request through a client, where a first request sent by the client may include information such as a Uniform Resource Locator (URL) of a website requested by the user, for example, a URL of a home page of a certain shopping website.
When a user opens a client (APP) of a shopping website, the client sends a request for a home page of the website. Or, when the user browses a certain category of goods, the client sends a request for accessing a list page of the category of goods to the server. Or when the user clicks a certain commodity on the client, the client sends a request for accessing the commodity detail page to the server.
S102, the server processes the first request to obtain a first processing result and a first abstract obtained after the first processing result is subjected to abstract processing.
And the server processes the first request to obtain a first processing result and performs summary processing on the first processing result to obtain a first summary.
The first request is here a page request, i.e. a request to access page data of a page. And processing the first request, namely acquiring corresponding page data according to the first request.
In some pages, the page data may be adaptively configured according to information of the user initiating the page request. In the page, different page data may be configured according to characteristics of different users. Therefore, the page data herein may include shared data and personalized data. The shared data is the same portion of page data that is configured in the page for any user. The personalized data is a page data part which is correspondingly configured aiming at the personalized information of the user initiating the page request in the page. Different personalization data can be configured for different users. For example, in a display page of an e-commerce website, the personalized data may be personalized commodity data recommended according to historical transaction data, browsing records and the like of a user.
Therefore, in some embodiments, the method for summarizing the first processing result may include summarizing the shared data and the personalized data of the page respectively to obtain the shared data summary and the personalized data summary respectively. That is, the first digest may include a shared data digest and a personalized data digest.
The first abstract is a reducible abstract which is formed by splicing a shared data abstract and a personalized abstract through symbols. For example, the shared data summary and the personalized data summary may be composed of alphabetical, numerical, and/or punctuation coincidences. Thus, the shared data summary and the personalized summary may be obtained by parsing the first summary, respectively. The server which subsequently receives the first abstract can obtain the first processing result by utilizing the first abstract restoration.
Specifically, after obtaining the first processing result and the first digest, the server may store the first digest and the first processing result in a database of the server in a one-to-one correspondence manner, form a mapping table of a correspondence relationship between a reducible digest and a corresponding processing result in the database of the server, and use the reducible digest as an index of the processing result. After the server obtains the reducible summary, the processing result corresponding to the reducible summary can be obtained by querying the mapping table. When the server obtains the first abstract, a first processing result corresponding to the first abstract can be obtained by querying the mapping table.
Optionally, the first processing result is subjected to a summarization process to obtain a first summary, and the following calculation may be performed: s1021, performing abstract calculation on the shared data to obtain an abstract of the shared data; s1022, extracting the personalized data, and performing summary calculation on the extracted personalized data to obtain a personalized data summary; and S1023, performing character string splicing processing on the shared data abstract and the personalized data abstract to obtain a first abstract.
Specifically, if RD represents the first digest, S represents the shared data, SD represents the shared data digest, P represents the personalized data, PD represents the personalized data digest, join represents the string concatenation processing procedure, extract represents the extraction procedure of the personalized data, and digest represents the digest calculation procedure, the shared data digest, the personalized data digest, and the first digest may be represented as:
SD=digest(S);
PD=digest(extract(P));
RD=join(SD,PD)=join(digest(S),digest(extract(P)))。
the digest calculation may be performed by the digest algorithm (e.g., MD5) commonly used in the prior art.
Because the personalized data is data which is different from person to person, the aim of reducing storage cannot be achieved by a repeated elimination mode like shared data, and in order to achieve the aim of reducing storage, the personalized data is extracted and only key information in the personalized data is stored. For example, in the commodity data of personalized recommendation of a certain shopping website, only the Identification (ID) of the commodity can be extracted to represent the commodity information, so that the storage amount of the personalized data can be greatly reduced.
S103, the server sends a first response message to the client.
The first response message carries the first processing result and the first abstract.
The first processing result is a processing result of the server for the first request. For example, if the first request is a request for accessing a top page of a website, the server returns a processing result to the client as a corresponding webpage. If the second request is to access a detail page of a certain commodity, the server returns a processing result to the client as the detail page of the commodity.
And S104, the client generates a first display page according to the first processing result.
And if the processing result returned by the server received by the client is the webpage of the website home page, generating a corresponding webpage and displaying the webpage to the user. And if the detail page of the commodity is received by the client, generating the detail page of the corresponding commodity and displaying the detail page to the user.
S105, the client sends a second request to the server.
The second request carries a first abstract.
The client sends the first abstract to the server, so that the server can determine the processing result received by the client from the server last time according to the first abstract.
S106, the server processes the second request to obtain a second processing result.
The second request may be a request for updating the first processing result corresponding to the first request, for example, a request for updating or partially updating a page corresponding to the first request. And if the page is updated, the second processing result is the updated page data.
S107, the server determines the first processing result through the first abstract, and performs difference comparison on the first processing result and the second processing result to obtain first difference information.
In some embodiments of the present application, the first processing result and the first digest corresponding to the first processing result may be stored in a distributed cache of the server. In this step, the server may find the first processing result corresponding to the first abstract in the distributed cache according to the obtained first abstract.
The first difference information is obtained by comparing the difference between the second processing result and the first processing result by the server.
And S108, the server sends a second response message to the client.
The first difference information in the second response message.
S109, the client updates the first display page according to the first difference information.
And the client updates the display page according to the received first difference information.
The incremental transmission mode only transmitting the difference information is beneficial to reducing the transmission content, an updating mode is well defined in a transmission protocol between the client and the server, the client knows how to process the incremental difference information, and the specific processing details are related to a specific service scene. For example, it may be assumed that both the client and the server support incremental updating of a picture, and then the server needs to transmit a link and a content ID of a picture when the incremental transmission is met, and after receiving the link, the client finds a corresponding component through the ID and updates the picture of the component to a new link.
Optionally, after the server obtains the first processing result and the first summary in S102, the method further includes: and storing the first processing result and the first abstract in a memory of a server. In an embodiment of the present application, in order to reduce access response time, the first processing result and the first digest may be stored in a distributed cache.
The type of memory may use different storage media according to different needs. For example, when the use demand requires that the response time is as short as possible, a storage medium implemented based on a memory may be selected, such as a high-performance distributed memory object cache system memcache, a structured data storage system tair, a structured data storage redis, and the like; when the use requirement has no requirement on response time but needs to support massive users, storage facilities realized based on disk storage, such as a database system mysql, a database system hbase and a database Oracle, can be selected.
Similarly, the step S106 of processing the second request by the server to obtain a second processing result further includes:
and performing abstract processing on the second processing result to obtain a second abstract. The second processing result and the second digest may be further stored in a memory of the server, for example, in a distributed cache of the server. Further, the second digest may also be carried in the second response message.
And when the client initiates a next request, the client sends the second abstract to the server, and the server determines a second processing result according to the second abstract, compares the second processing result with a processing result obtained after the next request is processed to obtain new difference information and sends the new difference information to the client. And the client side updates according to the new difference information.
After the client receives the first response message, the client may store the first digest in the first response message on a memory of the mobile terminal, so that the first digest is persisted locally to the client. Similarly, after the client receives the second response message, the client stores the second abstract in the second response message to the memory of the mobile terminal, so that the second abstract is persisted to the local of the client.
Specifically, the method flows required by the embodiments of the present application on the client side and the server side are described in detail below with reference to fig. 3 and 4.
Fig. 3 is a flowchart of a client-side page access method provided in an embodiment of the present application, and as shown in fig. 3, the page access method of the present application includes:
s201, sending a first request to a server.
S202, receiving a first response message returned by the server.
The first response message carries a first processing result responding to the first request and a first abstract of the first processing result.
S203, generating a first display page according to the first processing result.
And S204, sending a second request to the server, wherein the second request carries the first abstract.
And S205, receiving a second response message returned by the server.
The second response message carries first difference information. The first difference information is obtained by comparing the difference between the second processing result and the first processing result by the server.
S206, updating the first display page according to the first difference information.
Optionally, the first request sent by the client further carries a first service parameter; the first processing result received by the client is the processing result of the server to the first request according to the first service parameter. And if the second request also carries a second service parameter, the second processing result is a processing result of the server on the second request according to the second service parameter. The first service parameter and the second service parameter may include context information and the like when the client sends the request.
Optionally, the second response message received in S205 further carries a second digest, where the second digest is a digest of a processing result of the second request by the server. When the next request is sent after S206, the client sends the second digest to the server.
The specific processing procedure of the above steps may correspond to the processing procedure of the client side shown in fig. 2, and is not described herein again.
Corresponding to fig. 3, fig. 4 is a flowchart of a page access method of a server side provided in this embodiment, and as shown in fig. 4, the page access method of the present application includes:
s301, the server receives a first request sent by the client.
S302, the server processes the first request to obtain a first processing result and a first abstract obtained after the first processing result is subjected to abstract processing.
And the server processes the first request to obtain a first processing result and performs summary processing on the first processing result to obtain a first summary.
S303, the server sends a first response message to the client.
The first response message carries the first processing result and the first abstract.
S304, the server receives the second request sent by the client.
The second request carries the first digest.
S305, the server processes the second request to obtain a second processing result.
S306, the server obtains the first processing result through the first abstract reduction, and performs difference comparison on the first processing result and the second processing result to obtain first difference information.
S307, the server sends a second response message to the client.
The second response message carries the first difference information.
Also optionally, in S305, the server processes the second request to obtain a second processing result, further including: and the server performs abstract processing on the second processing result to obtain a second abstract. The second response message sent in S307 also carries the second digest. The second abstract is formed by symbol splicing of the shared data abstract and the personalized abstract, which are the same as the first abstract. When the client sends the update request again, the request carries a second abstract, and the server determines the processing result received by the client from the server last time according to the second abstract.
Optionally, if the first request sent by the client carries the first service parameter, the server processes the result of the first request according to the first service parameter. And if the second request also carries a second service parameter, the second processing result is a processing result of the server on the second request according to the second service parameter.
The specific processing procedure of each step may correspond to the processing procedure on the server side shown in fig. 2, and is not described herein again.
In addition, if the client does not access for the first time, or the mobile terminal where the client is located already stores the corresponding summary, the client may also directly send a first request carrying the first summary to the server, specifically as shown in fig. 5, including:
s401, the client sends a first request to the server, wherein the first request carries a first abstract.
The first abstract is an abstract of a first processing result, and the first processing result is a processing result of the server on a last request.
The processing for the last request is performed before S401, and specifically includes: and the client sends the last request to the server, receives a response message returned by the server to the last request, wherein the response message carries the first processing result and the first abstract, and then generates the display page according to the first processing result.
S402, the server determines a first processing result according to the first abstract carried in the first request.
The server determines the first processing result according to a first abstract carried in a first request sent by a client, namely determines the processing result of the last request of the client by the server.
S403, the server processes the first request to obtain a second processing result.
S404, the server compares the second processing result with the first processing result to obtain first difference information.
S405, the server sends a first response message to the client, wherein the first response message comprises first difference information.
S406, the client updates the display page according to the first difference information.
Optionally, in S403, the server processes the first request to obtain a second processing result, further including: and the server performs abstract processing on the second processing result to obtain a second abstract. In S405, the second digest is also carried in the first response message sent by the server.
The second abstract comprises a shared data abstract and an individualized data abstract, the shared data abstract is obtained after the server performs abstract calculation on shared data in the processing result of the first request, and the individualized data abstract is obtained after the server performs abstract calculation on individualized data in the processing result of the first request.
Optionally, after obtaining the second processing result and the second summary, the method further includes: and the server stores the second processing result and the second abstract in the memory.
The steps of the embodiment of fig. 5 are the same as those of steps S105 to S109 of the embodiment of fig. 2, and are not repeated herein.
Correspondingly, the corresponding client-side and server-side method flow diagrams in the embodiment of fig. 5 are shown in fig. 6 and 7.
Fig. 6 is a flowchart of a page access method on a client side according to an embodiment of the present application, and as shown in fig. 6, the page access method includes:
s501, the client sends a first request to the server.
The first request carries a first abstract, and the first abstract is an abstract of a processing result (a first processing result) of a last request of the client from the server. The server may determine, according to the first digest, a processing result (first processing result) of the last request of the client from the server.
S502, the client receives a first response message returned by the server.
The first response message carries first difference information.
The first difference information is a difference between a processing result (second processing result) of the first request of the client by the server and a processing result (first processing result) of a last request of the client by the server.
Optionally, the first response message further carries a second digest, where the second digest is a digest of a processing result (a second processing result) of the first request by the server.
The second abstract comprises a shared data abstract and an individualized data abstract, the shared data abstract is obtained by performing abstract calculation on shared data in the processing result (second processing result) of the first request by the server, and the individualized data abstract is obtained by performing abstract calculation on individualized data in the processing result (second processing result) of the first request by the server.
And S503, the client updates the display page according to the first difference information.
Optionally, after receiving the first response message at S502, the method further includes: and the client stores the second abstract into a memory of the mobile terminal.
Optionally, the first request further carries a first service parameter; the second abstract is an abstract of a processing result of the server on the first request according to the first service parameter.
Corresponding to fig. 6, fig. 7 is a flowchart of a page access method of the server side provided in this embodiment, as shown in fig. 7, including:
s601, the server receives a first request sent by the client.
The first request carries a first abstract, and the first abstract is an abstract of a processing result of a last request before the first request.
S602, the server determines a first processing result according to the first abstract, wherein the first processing result is a processing result of the last request of the server to the client.
S603, the server processes the first request to obtain a second processing result.
S604, the server compares the second processing result with the first processing result to obtain first difference information.
S605, the server sends a first response message to the client, wherein the first response message comprises first difference information.
It should be noted that the steps of S602 and S603 may not be in sequence.
Optionally, after S603, the method further includes: and the server performs abstract processing on the second processing result to obtain a second abstract. In S605, the first response message sent by the server may further include a second digest, so that the client sends the second digest to the server when sending the next request, the server determines to obtain a second processing result according to the second digest, compares the obtained second processing result with a new processing result obtained by processing the received next request to obtain new difference information and a new digest, and sends the new difference information and the new digest to the client, and the client updates the new difference information and so on.
Optionally, after obtaining the second processing result and the second summary in S603, the method further includes: and the server stores the second processing result and the second abstract in the memory.
According to the page access method provided by the embodiment of the application, the data is transmitted in a mode of transmitting the abstract and the difference part of the data, the data transmitted in the mobile internet can be reduced, the time consumed by transmission is short, especially when dynamic page data are loaded under the condition of poor network quality, the transmission delay is shortened, the loading speed of page content is accelerated, a user can see the page content in a short time, and the user experience is improved.
The above is a detailed description of the page access method provided in the embodiment of the present application, and the following is a detailed description of the page access device provided in the present application.
Correspondingly to fig. 3, fig. 8 is a schematic device diagram of a client according to an embodiment of the present application, and as shown in fig. 8, the client includes: a first transmitting unit 701, a first receiving unit 702, a first processing unit 703, a second transmitting unit 704, a second receiving unit 705, and a second processing unit 706.
The first sending unit 701 is configured to send a first request to a server.
The first receiving unit 702 is configured to receive a first response message returned by the server.
The first response message carries a first processing result and a first abstract, the first processing result is a processing result of the server on the first request, and the first abstract is an abstract of the first processing result.
The first processing unit 703 is configured to generate a first display page according to the first processing result received by the first receiving unit 702.
The second sending unit 704 is configured to send a second request to the server.
The second request carries the first digest received by the first receiving unit.
The second receiving unit 705 is configured to receive a second response message returned by the server.
The second response message carries first difference information, and the first difference information is obtained by comparing the difference between the second processing result and the first processing result by the server.
The second processing unit 706 is configured to update the first display page according to the first difference information received by the second receiving unit 705.
Optionally, the second response message received by the second receiving unit 705 further carries the second digest, where the second digest is a digest of a second processing result.
Optionally, the first request sent by the first sending unit 701 further carries a first service parameter; the first processing result received by the first receiving unit 702 is a processing result of the first request by the server according to the first service parameter.
Optionally, the client further includes: a storage unit, configured to store the first digest in the memory after the first receiving unit 702 receives the first response message returned by the server, and store the second digest in the memory after the second receiving unit 705 receives the second response message returned by the server.
The first sending unit 701 and the second sending unit 704 may be the same module, the first receiving unit 702 and the second receiving unit 705 may be the same module, and the first processing unit 703 and the second processing unit 706 may be the same module.
The functions of the units may correspond to the processing steps of the page access method described in detail in fig. 3, and are not described herein again.
Correspondingly to fig. 4, fig. 9 is a schematic apparatus diagram of a server according to an embodiment of the present application, and as shown in fig. 9, the server includes: a first receiving unit 801, a first processing unit 802, a first transmitting unit 803, a second receiving unit 804, a second processing unit 805, a third processing unit 806 and a second transmitting unit 807.
The first receiving unit 801 is configured to receive a first request sent by a client.
The first processing unit 802 is configured to process the first request received by the first receiving unit 801 to obtain a first processing result and a first summary.
The first sending unit 803 is configured to send a first response message to the client.
The first response message carries the first processing result and the first summary obtained by the first processing unit.
The second receiving unit 804 is configured to receive a second request sent by the client, where the second request carries the first digest.
The second processing unit 805 is configured to process the second request received by the second receiving unit 804, so as to obtain a second processing result.
The third processing unit 806 is configured to determine to obtain the first processing result through the first summary received by the second receiving unit 804, and compare the first processing result with the second processing result obtained by the second processing unit 805 to obtain first difference information.
The second sending unit 807 is configured to send a second response message to the client.
The second response message carries the first difference information obtained by the third processing unit 806.
Optionally, the second processing unit 805 is further configured to perform a digest processing on the second processing result to obtain a second digest. The second response message sent by the second sending unit 807 also carries the second digest obtained by the second processing unit 805.
Optionally, the server further includes: a storage unit, configured to store the first processing result and the first summary in a memory after the first processing unit 802 obtains the first processing result and the first summary, and store the second processing result and the second summary in the memory after the second processing unit 805 obtains the second processing result and the second summary.
The first receiving unit 801 and the second receiving unit 804 may be the same module, the first sending unit 803 and the second sending unit 807 may be the same module, and the first processing unit 802, the second processing unit 805, and the third processing unit 806 may be the same module.
The functions of the units may correspond to the processing steps of the page access method described in detail in fig. 4, and are not described herein again.
Correspondingly to fig. 6, fig. 10 is a schematic device diagram of a client according to an embodiment of the present application, and as shown in fig. 10, the client includes: a transmitting unit 901, a receiving unit 902 and a processing unit 903.
The sending unit 901 is configured to send a first request to the server, where the first request carries a first digest existing in the client.
The first summary is a summary of a processing result (first processing result) of the last request of the client from the server, so that the server determines the processing result (first processing result) of the last request of the client from the server according to the first summary.
The receiving unit 902 is configured to receive a first response message returned by the server.
The first response message carries first difference information, where the first difference information is a difference between a processing result (second processing result) of the first request from the server to the client and a processing result (first processing result) of a last request from the server to the client.
The processing unit 903 is configured to update a display page according to the first difference information received by the receiving unit 902.
Optionally, the first response message further carries a second digest, where the second digest is a digest of a second processing result obtained by processing the first request by the server.
Optionally, the first request sent by the sending unit 901 further carries the first service parameter, and the second digest received by the receiving unit 902 is a digest of a processing result of the first request by the server according to the first service parameter.
Optionally, the client further includes: a storage unit, configured to store the second digest in a memory after the receiving unit receives the first response message.
The functions of the above units may correspond to the processing steps of the page access method described in detail in fig. 6, and are not described herein again.
Correspondingly to fig. 7, fig. 11 is a schematic apparatus diagram of a server according to an embodiment of the present application, and as shown in fig. 11, the server includes: receiving section 1001, processing section 1002, and transmitting section 1003.
The receiving unit 1001 is configured to receive a first request sent by a client, where the first request carries a first digest, and the first digest is a digest of a processing result of a last request before the first request.
The processing unit 1002 is configured to determine to obtain a first processing result according to the first abstract, where the first processing result is a processing result of a last request of the client from the server.
The processing unit 1002 is further configured to process the first request to obtain a second processing result.
The processing unit 1002 is further configured to compare the second processing result with the first processing result to obtain first difference information.
The sending unit 1003 is configured to send a first response message to the client, where the first response message includes the first difference information obtained by the processing unit.
Optionally, after the processing unit 1002 processes the first request to obtain a second processing result, the processing unit is further configured to perform a digest processing on the second processing result to obtain a second digest. The first response message sent by the sending unit 1003 further includes the second digest.
Optionally, the server further includes: a storage unit, configured to store the second processing result and the second digest in the memory after the processing unit 1002 obtains the second processing result and the second digest.
The functions of the above units may correspond to the processing steps of the page access method described in detail in fig. 7, and are not described herein again.
According to the page access method, the device and the system, the data are transmitted in the mode of transmitting the abstract and the difference part of the data, the data transmitted in the mobile internet can be reduced, the time consumed by transmission is short, especially when dynamic page data are loaded under the condition of poor network quality, the transmission delay is shortened, the loading speed of page content is accelerated, a user can see the page content in a short time, and the user experience is improved.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments, objects, technical solutions and advantages of the present application are described in further detail, it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present application, and are not intended to limit the scope of the present application, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present application should be included in the scope of the present application.

Claims (9)

1. A method for page access, the method comprising:
sending a first request to a server, wherein the first request is a page request and carries a first service parameter;
receiving a first response message returned by the server to the first request, wherein the first response message carries a first processing result and a first abstract; the first processing result is page data acquired by the server according to the first request; the page data comprises shared data and personalized data, and the first abstract is obtained by performing character string splicing processing on a first shared data abstract and a first personalized data abstract;
generating a display page according to the first processing result;
sending a second request to a server, wherein the second request carries a first abstract and a second service parameter;
receiving a second response message returned by the server, where the second response message carries first difference information and a second summary, the first difference information is a difference between a second processing result and the first processing result, and the second processing result is a processing result of the server on the second request; the second abstract is an abstract of the second processing result, and is obtained by performing character string splicing processing on a second shared data abstract and a second individualized data abstract;
updating a display page according to the first difference information;
the shared data abstract is obtained after the server performs abstract calculation on shared data in the processing result, and the personalized data abstract is obtained after the server performs abstract calculation on personalized data in the requested processing result;
the first service parameter and the second service parameter include context information when the request is sent.
2. The method of claim 1, further comprising:
and storing the first processing result and the first abstract and the second processing result and the second abstract in a memory.
3. A method for page access, the method comprising:
receiving a first request sent by a client, wherein the first request is a page request and carries a first service parameter;
processing the first request to obtain a first processing result, wherein the first processing result is obtained page data, and the page data comprises shared data and personalized data;
performing abstract processing on the first processing result to obtain a first abstract, wherein the first abstract is obtained by performing character string splicing processing on a first shared data abstract and a first personalized data abstract;
returning a response message of the first request to the client, wherein the response message carries the first processing result and the first abstract;
receiving a second request sent by a client, wherein the second request carries a first abstract and a second service parameter;
determining to obtain a first processing result according to the first abstract;
processing the second request to obtain a second processing result;
performing abstract processing on the second processing result to obtain a second abstract, wherein the second abstract is obtained by performing character string splicing processing on a second shared data abstract and a second personalized data abstract;
comparing the second processing result with the first processing result to obtain first difference information;
sending a first response message to the client, wherein the first response message comprises first difference information and the second summary;
the shared data abstract is obtained by performing abstract calculation on shared data in the processing result, and the personalized data abstract is obtained by performing abstract calculation on personalized data in the requested processing result;
the first service parameter and the second service parameter include context information when the request is sent.
4. The method of claim 3, further comprising, after said obtaining the second summary:
and storing the first processing result and the first abstract, and the second processing result and the second abstract in a memory.
5. A client for use on a mobile terminal, the client comprising:
a sending unit, configured to send a first request to a server, where the first request is a page request and carries a first service parameter;
a receiving unit, configured to receive a first response message returned by the server for the first request, where the first response message carries a first processing result and a first digest; the first processing result is page data acquired by the server according to the first request; the page data comprises shared data and personalized data, and the first abstract is obtained by performing character string splicing processing on a first shared data abstract and a first personalized data abstract;
the processing unit is used for generating a display page according to the first processing result;
the sending unit is further configured to: sending a second request to a server, wherein the second request carries a first abstract and a second service parameter;
the receiving unit is further configured to: receiving a second response message returned by the server, where the second response message carries first difference information and a second summary, the first difference information is a difference between a second processing result and the first processing result, and the second processing result is a processing result of the server on the second request; the second abstract is an abstract of the second processing result, and is obtained by performing character string splicing processing on a second shared data abstract and a second individualized data abstract;
the processing unit is further to: updating a display page according to the first difference information received by the receiving unit;
the shared data abstract is obtained after the server performs abstract calculation on shared data in the processing result, and the personalized data abstract is obtained after the server performs abstract calculation on personalized data in the requested processing result;
the first service parameter and the second service parameter include context information when the request is sent.
6. The client of claim 5, further comprising:
and the storage unit is used for storing the first processing result, the first abstract and the second abstract into a memory.
7. A server, characterized in that the server comprises:
the system comprises a receiving unit, a sending unit and a processing unit, wherein the receiving unit is used for receiving a first request sent by a client, the first request is a page request, and the first request also carries a first service parameter;
the processing unit is used for processing the first request to obtain a first processing result, wherein the first processing result is acquired page data, and the page data comprises shared data and personalized data; performing abstract processing on the first processing result to obtain a first abstract, wherein the first abstract is obtained by performing character string splicing processing on a first shared data abstract and a first personalized data abstract;
a sending unit, configured to return a response message of the first request to the client, where the response message carries the first processing result and the first digest;
the receiving unit is further configured to: receiving a second request sent by a client, wherein the second request carries a first abstract and a second service parameter;
the processing unit is further to: determining to obtain a first processing result according to the first abstract, wherein the first processing result is a processing result of the last request of the server to the client; processing the second request to obtain a second processing result; performing abstract processing on the second processing result to obtain a second abstract, wherein the second abstract is obtained by performing character string splicing processing on a second shared data abstract and a second personalized data abstract; comparing the second processing result with the first processing result to obtain first difference information;
the sending unit is further configured to: sending a first response message to the client, wherein the first response message comprises the first difference information and the second abstract obtained by the processing unit;
the shared data abstract is obtained by performing abstract calculation on shared data in the processing result, and the personalized data abstract is obtained by performing abstract calculation on personalized data in the requested processing result;
the first service parameter and the second service parameter include context information when the request is sent.
8. The server of claim 7, further comprising:
and the storage unit is used for storing the first processing result and the first abstract as well as the second processing result and the second abstract into a memory.
9. A page access system, the system comprising: a client and a server;
the client sends a first request to a server, wherein the first request is a page request and carries a first service parameter;
the server processes the first request to obtain a first processing result, wherein the first processing result is obtained page data, and the page data comprises shared data and personalized data;
the server performs abstract processing on the first processing result to obtain a first abstract, wherein the first abstract is obtained by performing character string splicing processing on a first shared data abstract and a first personalized data abstract;
the server returns a response message of the first request to the client, wherein the response message carries the first processing result and the first abstract;
the client generates a display page according to the first processing result;
the client sends a second request to the server, wherein the second request carries a first abstract and a second service parameter;
the server determines to obtain the first processing result according to the first abstract;
the server processes the first request to obtain a second processing result;
the server performs abstract processing on the second processing result to obtain a second abstract, wherein the second abstract is obtained by performing character string splicing processing on a second shared data abstract and a second personalized data abstract;
the server compares the second processing result with the first processing result to obtain first difference information;
the server sends a first response message to the client, wherein the first response message comprises first difference information and the second abstract;
the client updates a display page according to the first difference information;
the shared data abstract is obtained by performing abstract calculation on shared data in the processing result, and the personalized data abstract is obtained by performing abstract calculation on personalized data in the requested processing result;
the first service parameter and the second service parameter include context information when the request is sent.
CN201510012597.6A 2015-01-09 2015-01-09 Page access method, device and system Active CN105827580B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510012597.6A CN105827580B (en) 2015-01-09 2015-01-09 Page access method, device and system
PCT/CN2015/099542 WO2016110206A1 (en) 2015-01-09 2015-12-29 Method, device and system for page access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510012597.6A CN105827580B (en) 2015-01-09 2015-01-09 Page access method, device and system

Publications (2)

Publication Number Publication Date
CN105827580A CN105827580A (en) 2016-08-03
CN105827580B true CN105827580B (en) 2020-04-10

Family

ID=56355512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510012597.6A Active CN105827580B (en) 2015-01-09 2015-01-09 Page access method, device and system

Country Status (2)

Country Link
CN (1) CN105827580B (en)
WO (1) WO2016110206A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333787B (en) * 2020-11-13 2023-09-12 Oppo广东移动通信有限公司 Data transmission method, device, storage medium, terminal and network access point equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169501A (en) * 2011-04-26 2011-08-31 北京百度网讯科技有限公司 Method and device for generating abstract based on type information of document corresponding with searching result
CN103188097A (en) * 2011-12-30 2013-07-03 金蝶软件(中国)有限公司 Method, device and system achieving patch management
CN103200219A (en) * 2013-02-05 2013-07-10 北京小米科技有限责任公司 Data package updating method, device, terminal equipment and server
CN103593466A (en) * 2013-11-26 2014-02-19 优视科技有限公司 Webpage loading method, client side and server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100169364A1 (en) * 2008-06-30 2010-07-01 Blame Canada Holdings Inc. Metadata Enhanced Browser

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169501A (en) * 2011-04-26 2011-08-31 北京百度网讯科技有限公司 Method and device for generating abstract based on type information of document corresponding with searching result
CN103188097A (en) * 2011-12-30 2013-07-03 金蝶软件(中国)有限公司 Method, device and system achieving patch management
CN103200219A (en) * 2013-02-05 2013-07-10 北京小米科技有限责任公司 Data package updating method, device, terminal equipment and server
CN103593466A (en) * 2013-11-26 2014-02-19 优视科技有限公司 Webpage loading method, client side and server

Also Published As

Publication number Publication date
WO2016110206A1 (en) 2016-07-14
CN105827580A (en) 2016-08-03

Similar Documents

Publication Publication Date Title
US11546418B2 (en) Method, client, server, and system for sharing content
CA2732540C (en) Methods for optimizing a web content proxy server and devices thereof
US20190166216A1 (en) Information pushing method and device
CN104253741B (en) A kind of method for sending information, relevant apparatus and system
US9473592B2 (en) Methods for optimizing a web content proxy server and devices thereof
CN107391277B (en) Information processing method and device
CN109857577B (en) Access control method, device, medium, and electronic apparatus
CN107918617B (en) Data query method and device
CN107844488B (en) Data query method and device
US20140281882A1 (en) Methods for compressing web page menus and devices thereof
CN102868711A (en) Method, device and system for generating picture at instant communication client
WO2014176896A1 (en) System and method for updating information in an instant messaging application
US20120054598A1 (en) Method and system for viewing web page and computer Program product thereof
EP2787454A1 (en) Methods for optimizing a web content proxy server and devices thereof
CN107329945B (en) Short message display processing method and device and mobile terminal
CN113761565B (en) Data desensitization method and device
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
CN111078219B (en) Page display method, device and system, electronic equipment and storage medium
CN105827580B (en) Page access method, device and system
CN108614844B (en) Multimedia file generation method and device
US10965781B2 (en) Method and server for displaying access content
US10193965B2 (en) Management server and operation method thereof and server system
WO2016069951A1 (en) Method and system of content caching and transmission
CN110175305B (en) Data processing method, data processing device, computer equipment and storage medium
CN113452539B (en) Source station switching method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1227192

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant