A method and device for updating page data

By setting up subscription components in the financial sector client and receiving the subscription update message pushed by the server, the real -time automatic update of the page data is realized, the problem of strong passiveness and large server load in existing technologies, support system upgrades and maintenance.

CN111008032BActive Publication Date: 2025-01-28WEBANK (CHINA)
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201911398628.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-30
Publication Date
2025-01-28
Estimated Expiration
2039-12-30

AI Technical Summary

Technical Problem

The existing technology has strong passiveness in the financial field of page data update methods. Users need to actively operate to obtain the latest data. The polling mechanism increases the server load, making it difficult to support system upgrade and maintenance.

Method used

By setting up subscription components on the client, receiving the subscription update message pushed by the server, obtaining the update of the data object in real time, realizing the automatic page rendering, and reducing user operation and server load.

Benefits of technology

The real -time automatic update of page data is realized, reducing the pressure of the server processing, supporting the system upgrade and maintenance, and no need to take the initiative to inquire or set the inquiry mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111008032B_ABST
    Figure CN111008032B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for updating page data, the method comprising: a first subscription component receives a subscription update message sent by a first server during a period when a first client displays a first page, the subscription update message is used to indicate that a first data object subscribed by the first page has changed; the subscription update message is generated by the first server after receiving a first push request sent by a second server based on an update of the first page; the first subscription component obtains the first data object from the second server according to the subscription update message; the first subscription component renders the first page according to the first data object. In this way, the present application implements that the first client can update data in real time without the need for the user of the first client to perform a query operation and the first client to send a query request to the server in a polling mechanism, thereby reducing the processing pressure of the server. In addition, the first subscription component has no coupling relationship with the first page data, and can support system upgrades and maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data technology in Fintech, and in particular to a method and device for updating page data. Background Art

[0002] With the development of computer technology, more and more technologies are applied in the financial field. Traditional finance is gradually transforming to Fintech. However, due to the security and real-time requirements of the financial industry, higher requirements are also placed on technology. With the rapid development of the Internet, most financial services can be directly processed by computers. This method greatly saves human resources, and can quickly and accurately process financial services, improving the accuracy and real-time performance of financial service processing.

[0003] At present, the general architecture of computer processing business generally includes three parts, namely, client, server, and database. When acquiring data, the client sends a query data request to the server. After receiving the query data request, the server obtains the latest data from the database and sends the latest data to the client. In the process, the user needs to actively perform corresponding operations to send the query data request and obtain the latest data. If the user does not perform corresponding operations, the latest data cannot be obtained. In order to change this passive way of updating data, an asynchronous request polling mechanism is added to the client, that is, within a certain time interval, the client can actively send a query data request every fixed time period without user operation. After receiving the query data request, the server obtains the latest data from the database. If the latest data is different from the client data, the latest data is sent to the client. This method realizes active data update, but also increases the consumption of the server. For example, a client polling mechanism has a time interval of one minute, and sends a query data request every minute. The server will receive and process 60 query data requests in one hour. If there are one thousand clients, each client sends a query data request every minute, and the server will receive 60,000 query data requests in one hour.

[0004] In addition, if the client pages of the above two methods contain variable data, generally speaking, each one or more local variables will have a corresponding maintenance mechanism, and the maintenance mechanism has a coupling relationship with the corresponding variables; in this way, as the system upgrade functions increase, a large number of variable data changes in the system correspond to corresponding changes in the maintenance mechanism, thus causing the data change operations to increase exponentially, resulting in the ultimate inability to perform system upgrades.

[0005] Therefore, there is an urgent need for a page data updating method and device that can support system upgrade and maintenance and can achieve real-time automatic data updating. Summary of the invention

[0006] The embodiment of the present invention provides a page data updating method and device, which can support system upgrading and maintenance and realize real-time automatic updating of data.

[0007] In a first aspect, an embodiment of the present invention provides a method for updating page data, the method comprising:

[0008] During the period when the first client displays the first page, the first subscription component receives a subscription update message sent by the first server, and the subscription update message is used to indicate that a first data object subscribed by the first page has changed; the subscription update message is generated by the first server after receiving a first push request sent by the second server based on the update of the first page; the first subscription component obtains the first data object from the second server according to the subscription update message; and the first subscription component renders the first page according to the first data object.

[0009] By adopting the above method, by setting the first subscription component on the first client, when the first client displays the first page, it can receive the subscription update message sent by the second server to the first server and sent by the first server, so that the first page of the first client is re-rendered through the first subscription component, and the first page displays the updated data. In this way, compared with the prior art, the first client needs the user to perform corresponding query operations to send data query messages to obtain the latest data, or the first client uses a polling mechanism to continuously send data query messages. In this way, the present application implements that the first client can instantly obtain subscription update messages and obtain the latest updated data without the user of the first client performing query operations and the first client continuously sending query requests to the server, thereby reducing the processing pressure of the server. In addition, compared with the prior art in which the data maintenance mechanism is coupled with the data, the first subscription component of the present application has no coupling relationship with the first page data, and can support system upgrades and maintenance.

[0010] In a possible design, before receiving the subscription update message sent by the first server, it also includes: the first component of the first subscription component determines the data objects to be subscribed from the first page and sends them to the second component of the first subscription component; the second component of the first subscription component sends a subscription request for the first page to the first server, and the subscription request includes the data objects to be subscribed.

[0011] By adopting the above method, the data object in the first page is determined by the first component in the first subscription component, and the unique identifier of each data object is obtained in the first component, and the subscription request is sent to the first server through the second component. In this way, the channel between the first client and the first server is established, and the message transmission is realized, thus completing the action of sending the subscription request.

[0012] In a possible design, the first subscription component obtains the first data object from the second server according to the subscription update message, including: the second component of the first subscription component obtains the first data object from the second server according to the subscription update message; the first subscription component renders the first page according to the first data object, including: the first component of the first subscription component obtains the first data object from the second component of the first subscription component; the first component of the first subscription component renders the first page according to the first data object.

[0013] Using the above method, the second component of the first subscription component obtains the updated first data object from the second server, and the first component obtains the updated first data object from the second component to render the first page. In this way, the first client can obtain the subscription update message from the first server through the second component of the first subscription component, and obtain the updated first data object from the second server according to the subscription update message, so that after the first server actively informs the first client of the update message, the first client obtains the updated first data object. In other words, the user does not need to perform query operations or set a polling mechanism on the client to receive the updated data, which improves the simplicity and timeliness of the data update of the first client and reduces the processing pressure of the server. In addition, because the first subscription component is not coupled with the first page data, it can support system upgrades and maintenance.

[0014] In one possible design, the method further includes:

[0015] After operating the second data object in the second page displayed by the first client, the first subscription component sends a data change request to the second server; the data change request is used to trigger the second server to send a second push request to the first server based on the update of the second page; the first client obtains the updated second data object from the second server, and renders the second page according to the updated second data object.

[0016] Using the above method, the first subscription component sends a data change request to the second server, the second server sends a second push request to the first server, and the first client obtains the updated second data object from the second server and re-renders the second page. In this way, the first client implements data update, the first server receives the push request, and notifies other clients subscribing to the data of the data update message, so that other clients subscribing to the data obtain the updated second data object. Real-time data update is achieved.

[0017] In a second aspect, an embodiment of the present invention provides a method for updating page data, the method comprising:

[0018] The first server receives a first push request sent by the second server; the first push request is used to indicate that a first data object of a first page has changed; the first server determines a first client that subscribes to the first data object; the first server sends a subscription update message to a first subscription component of the first client, and the subscription update message is used to instruct the first subscription component to obtain the first data object for rendering the first page from the second server.

[0019] With the above method, when the first server receives the first push request and determines that the second client has modified the first data object, it sends a subscription update message to the first client, so that the first subscription component obtains the first data object from the second server. In this way, whenever the first client has data changes, it can obtain the latest data in a timely manner.

[0020] In one possible design, the method further includes:

[0021] Before the first server receives the first push request sent by the second server, the method further includes:

[0022] The first server receives a subscription request for the first page sent by the second component of the first subscription component, wherein the subscription request includes each data object to be subscribed; the each data object to be subscribed is determined by the first component of the first subscription component from the first page and sent to the second component of the first subscription component.

[0023] Using the above method, the first server receives a subscription request including each data object to be subscribed, so that the first server always keeps the information of the second client at this time. In this way, when the first server receives a push request sent by the second server, it can send a data change message to the second client in time, so that the second client can obtain the latest data from the second server, thereby realizing real-time update of data.

[0024] In a third aspect, an embodiment of the present invention provides a method for updating page data, the method comprising:

[0025] After the second server determines that the first data object of the first page has changed, the second server sends a first push request for the first page to the first server; the first push message is used by the first server to send a subscription update message to a first subscription component of a first client that subscribes to the first data object; the second server provides the first data object to the first subscription component based on the subscription update message; the first subscription component is used to render the first page displayed by the first client according to the first data object.

[0026] With the above method, after the second server determines that the first data object has changed, it sends a first push request to the first server, so that the first server notifies all second clients that the data has changed, so that all second clients obtain the latest data. After the second server sends the first push request to the first server, the second clients respectively obtain the latest data from the second server to render the display page, so as to achieve timely data update.

[0027] In a fourth aspect, an embodiment of the present invention provides a page data updating device, the device comprising:

[0028] A transceiver module, configured to receive a subscription update message sent by a first server during a period in which a first subscription component displays a first page on a first client, wherein the subscription update message is used to indicate that a first data object subscribed to by the first page has changed; the subscription update message is generated by the first server after receiving a first push request sent by a second server based on an update of the first page;

[0029] An acquisition module, configured for the first subscription component to acquire the first data object from the second server according to the subscription update message;

[0030] A processing module is used for the first subscription component to render the first page according to the first data object.

[0031] In a fifth aspect, an embodiment of the present application further provides a computing device, comprising: a memory for storing program instructions; a processor for calling the program instructions stored in the memory, and executing the method described in various possible designs of the first aspect according to the obtained program.

[0032] In a sixth aspect, an embodiment of the present application further provides a computer-readable non-volatile storage medium, comprising computer-readable instructions. When a computer reads and executes the computer-readable instructions, the computer executes the method described in the various possible designs of the first aspect.

[0033] These implementations or other implementations of the present application will be more concise and understandable in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0035] Figure 1A schematic diagram of a flow chart of a page data updating method provided by an embodiment of the present invention;

[0036] Figure 2 A schematic diagram of a flow chart of another page data updating method provided by an embodiment of the present invention;

[0037] Figure 3 A schematic diagram of a flow chart of another page data updating method provided by an embodiment of the present invention;

[0038] Figure 4 A schematic diagram of the architecture of a page data updating system provided by an embodiment of the present invention;

[0039] Figure 5 A schematic diagram of a flow chart of a page data updating method provided by an embodiment of the present invention;

[0040] Figure 6 A schematic diagram of a device for updating page data provided by an embodiment of the present invention;

[0041] Figure 7 A schematic diagram of a device for updating page data provided by an embodiment of the present invention;

[0042] Figure 8 A schematic diagram of a device for updating page data provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] The corresponding data of the page browsed by the client comes from the database in the server, and the data changes are also made in the database of the server. In the prior art, the server cannot actively push the latest data to the client, nor can it notify the client of data change messages. Therefore, when the data in the server's database changes, the client cannot be informed of the data change message. Therefore, the user needs to perform corresponding operations such as refreshing the page or setting a polling mechanism on the client, that is, sending data acquisition requests to the server at certain time intervals. These two methods prevent the data from being updated in real time, and also cause cumbersome user operations or high server processing pressure. Based on this, an embodiment of the present application provides a process of a page data update method, such as Figure 1 As shown, including:

[0045] Step 101: During a period when a first client displays a first page, a first subscription component receives a subscription update message sent by a first server, wherein the subscription update message is used to indicate that a first data object subscribed to by the first page has changed; the subscription update message is generated by the first server after receiving a first push request sent by a second server based on an update of the first page;

[0046] Here, before the first client displays the first page, when the first client opens the first page, the first component of the first subscription component determines the data objects to be subscribed from the first page and sends them to the second component of the first subscription component; the second component of the first subscription component sends a subscription request for the first page to the first server, and the subscription request includes the data objects to be subscribed.

[0047] Among them, the first client can be an electronic device with a display screen such as a computer, a mobile phone, an IPAD, etc. The first page can be a display interface of an application software such as an APP or a browser. The first subscription component is a plug-in installed in an application software such as an APP or a browser, or a plug-in loaded by an application software such as an APP or a browser during the application process. The first subscription component includes a first component and a second component. The first component can be a label in the first page and other parts of the page to form a page, such as a data agent-Data De l egate; the second component can store data and send and receive information. The second component can include two parts, one part does logical work such as internal data storage and management, such as a data engine-Data Engine; and the other part is responsible for sending and receiving messages. The first server is a server with a broadcast function, for example: the first server can be a websocket server+red is. The second server can be a server+Database, and the data object can be system requirements, business requirements, tasks, defects, test cases, etc.

[0048] That is, before the first client displays the first page, it first needs to obtain the data objects that need to be subscribed in the first page. Therefore, the first component in the first subscription component first obtains the data type and data ID of each data object that needs to be subscribed from the first page, and combines the data type and ID to form Figure 1The unique data identifier in the entire system architecture. The data identifier of each data object is sent to the second component of the first subscription component. The second component stores the data type, data ID, data identifier and other related information. Then, according to the data type, data ID and data identifier of the ID data object, each object is taken as the smallest unit, and its data identifier and data type, data ID and other related data are stored in the memory in the form of key-value. At the same time, the method of subscribing, obtaining and transmitting data is exposed to the outside, so that the first component can obtain individual data objects. The second component then sends the subscription request containing the data identifier of the data object to the first server, so that the first server knows the information of the currently subscribed client. When receiving the subscription update message sent by the second server, it knows that the first data object is changed in the subscription update message. The first server sends the subscription update message to the first client of the first page that contains the first data object and is being displayed. After receiving the subscription update message, the first client obtains the changed first data object.

[0049] Step 102: The first subscription component obtains the first data object from the second server according to the subscription update message;

[0050] Here, the second component of the first subscription component obtains the first data object from the second server according to the subscription update message;

[0051] That is, in step 101, the first client receives a subscription update message, that is, the second component in the first subscription component of the first client obtains the subscription update message, and obtains the current latest first data object of the modified first data object in the subscription update message from the second server.

[0052] Step 103: The first subscription component renders the first page according to the first data object.

[0053] Here, the first component of the first subscription component obtains the first data object from the second component of the first subscription component; and the first component of the first subscription component renders the first page according to the first data object.

[0054] That is to say, after the second component obtains the current latest first data object from the second server in step 102, the first component in the first subscription component obtains the current latest first data object from the second group, and the first component replaces the original first data object in the first page according to the current latest first data object, renders the first page, and obtains the first page containing the current latest first data object.

[0055] In addition, when the data in the first client is changed: the first subscription component sends a data change request to the second server after operating the second data object in the second page displayed by the first client; the data change request is used to trigger the second server to send a second push request to the first server based on the update of the second page; the first client obtains the updated second data object from the second server, and renders the second page according to the updated second data object.

[0056] The second data object is a data object that is changed in the first client. For example, in the second page of the first client, there is a data object (second data object) story-A (data object), 251 (ID), which is modified to story-B (data object), 251 (ID). The second page is a display page corresponding to the second data object.

[0057] That is, when the second data object in the second page of the first client is changed, the first subscription component sends a data change request to the second server. After the second server obtains the data change request, it updates the second data object in the local database according to the data change request, and returns the updated second data object to the first subscription component of the first client; at the same time, it sends a second push request to the first server. In this way, the first subscription component of the first client obtains the updated second data object and replaces the original second data object in the second page, and renders the second page. At the same time, the first server receives the second push request and initiates a broadcast to the data that has subscribed to the second data object, informing the second user that the data object has been changed.

[0058] By adopting the above method, by setting the first subscription component on the first client, when the first client displays the first page, it can receive the subscription update message sent by the second server to the first server and sent by the first server, so that the first page of the first client is re-rendered through the first subscription component, and the first page displays the updated data. In this way, compared with the prior art, the first client needs the user to perform corresponding query operations to send data query messages to obtain the latest data, or the first client uses a polling mechanism to continuously send data query messages. In this way, the present application implements that the first client can instantly obtain subscription update messages and obtain the latest updated data without the user of the first client performing query operations and the first client continuously sending query requests to the server, thereby reducing the processing pressure of the server. In addition, compared with the prior art in which the data maintenance mechanism is coupled with the data, the first subscription component of the present application has no coupling relationship with the first page data, and can support system upgrades and maintenance.

[0059] Based on the above process, the embodiment of the present application provides another process of a page data update method, such as Figure 2 As shown, including:

[0060] Step 201: A first server receives a first push request sent by a second server; the first push request is used to indicate that a first data object of a first page has been changed;

[0061] Here, before the first server receives the first push request sent by the second server, the process further includes:

[0062] The first server receives a subscription request for the first page sent by the second component of the first subscription component, wherein the subscription request includes each data object to be subscribed; the each data object to be subscribed is determined by the first component of the first subscription component from the first page and sent to the second component of the first subscription component.

[0063] That is to say, before the first server receives the first push request sent by the second server, the first server receives the first subscription component in the first client and sends the first component to the second component, and the first server receives the subscription request for the first page that the first client is about to open and browse, and the subscription request contains the data objects that need to be subscribed to the first page. At this time, the first server stores the data object information of the first page currently subscribed by the first client. In this way, a channel is established between the first server and the first client, and the interaction between the first client and the first server is realized.

[0064] Here, when the first data object in the first page of the first client is changed, the first client sends a data change request to the second server, and the second server returns the updated data of the first data object and sends a first push request to the first server at the same time. That is, the second server informs the first server that the first data object is changed.

[0065] Step 202: The first server determines a first client that subscribes to the first data object;

[0066] Here, in step 201, the first server stores the information of each data object of the first page currently subscribed by the first client. In this way, when the first push request is subsequently received, it can be determined that the client set currently subscribed to the first data object includes the first client, and the first client and all other clients in the set are notified of the message that the first data object has been changed by broadcasting.

[0067] Step 203: The first server sends a subscription update message to the first subscription component of the first client, where the subscription update message is used to instruct the first subscription component to obtain the first data object for rendering the first page from the second server.

[0068] Here, as described in step 202, the first server sends a subscription update message to the first subscription component of the first client, notifying the first client that the first data object has been changed, and the first data object currently displayed by the first client is outdated and needs to be re-acquired. Therefore, the first subscription component sends a request to obtain the first data object to obtain the new first data object.

[0069] based on Figure 1 and Figure 2 The present application embodiment provides another method for updating page data. Figure 3 As shown, including:

[0070] Step 301: After determining that a first data object of a first page has been changed, the second server sends a first push request for the first page to the first server; the first push message is used by the first server to send a subscription update message to a first subscription component of a first client that subscribes to the first data object;

[0071] Here, when the first data object in the first page of the first client is changed, a request to obtain the first data object is sent to the second server. At this time, the second server determines that the first data object of the first page has been changed, and then sends a first push request to the first server. After receiving the first push request, the first server sends a subscription update message to the first client.

[0072] Step 302: The second server provides the first data object to the first subscription component based on the subscription update message; the first subscription component is used to render the first page displayed by the first client according to the first data object.

[0073] Here, after the first subscription component of the first client receives the subscription update message sent by the first server, it determines that the first data object has changed. At this time, the first data object is an outdated data object, so a request to obtain the first data object is sent to the second server. The second server returns the current latest first data object according to the request to obtain the first data object. The first subscription component replaces the original first data object according to the current latest first data object and renders the first page.

[0074] The present application embodiment provides a schematic diagram of a system architecture for updating page data, such as Figure 4 As shown, it includes: a first client and a first subscription component in the first client and a first component and a second component in the first subscription component, subscription components of other second clients and the first component and the second component in the subscription components, and a second server including a database and a first database including a storage system.

[0075] First, the first client and the second client need to send a subscription request to the first server to establish an interactive channel between the first server and the first client and the second client. The first server stores the subscription information and sends the subscription information to the second server. The first client and other second clients send a data acquisition request to the second server to obtain the data object corresponding to the current page. When the first client or other second clients change one or more data objects in the data object corresponding to the current page, a request to obtain the changed data object is sent to the second server. The second server returns the changed data object and sends a notification to the first server to notify the first server that the data object has been changed. The first server sends a subscription update message to the second component. The second component receives the subscription update message and learns that the data object has been changed. Then, it goes to the second server to obtain the current latest data object. After obtaining it, the second component sends the latest data object before the point or exposes the current latest data object to the first component, or uses other methods to enable the first component to obtain the current latest data object. The first component renders the current page according to the current latest data object.

[0076] based on Figure 4 The system architecture of this application provides another process of a page data update method, such as Figure 5 As shown, including:

[0077] Step 501: When the first client displays the first page, the first component in the first client assembles the data object types and IDs of the first page into data object identifiers corresponding to each data object, and sends them to the second component. Step 502: The second component generates a subscription request containing the identifiers of each data object and sends it to the first server. In order to make the first server contain the data object information subscribed by the first client, it is convenient to receive the subscription update message broadcast by the first server if the subscribed data object of the first client is changed by other second clients in the future. Step 503: The second component generates a data object acquisition request containing the identifiers of each data object and sends it to the second server. In order to obtain the data object in the first page opened by the first client, so that the first client can display the first page, the database in the second server stores the data object information required to display the first page.

[0078] Step 504: The first server sends a subscription request to the second server.

[0079] Step 505: The second server sends the corresponding data object to the second component of the first client according to the data object acquisition request. After the second component of the first client receives the data object, the first component of the first client acquires the data object so that the first page is displayed.

[0080] The above steps are implemented when the client opens a page for the first time. On the one hand, the second server is used to obtain the information currently displayed on the page. On the other hand, the first server is used to subscribe to the data object of the page. This allows the client's page to be updated in real time when the subscribed data object changes.

[0081] Step 506: The second client sends a data change request to the second server.

[0082] Step 507: The second server receives the data change request, generates a first push request according to the data change information in the data change request, and sends the first push request to the first server.

[0083] Step 508: The first server broadcasts a subscription update message to the client cluster including the first client. The subscription update message may also be broadcast to all clients, and the client determines whether to receive the message. The subscription update message sent by the first server is generated based on the first push request.

[0084] Step 509: When the second server receives the data change request, it sends the changed data to the second client that sent the request.

[0085] Step 510: After receiving the subscription update message sent by the first server, the second component of the first client sends a data acquisition request to the second server to obtain the changed data.

[0086] Step 511: The second server sends the changed data to the second component of the first client according to the data acquisition request.

[0087] Step 512: The second component receives and stores the changed data.

[0088] Step 513: The first component obtains the changed data in the second component and replaces the original data with the changed data.

[0089] The above steps reflect how to achieve automatic update of a first client subscribed to the same data object when a second client updates the data object.

[0090] Step 514: If the first client user modifies the first page data, the first component obtains the first page data modification request and notifies the second component that the data object corresponding to the data identifier is requested to be modified.

[0091] Step 515: The second component generates a data change request to the second server.

[0092] Step 516: After receiving the data change request, the second server sends a first push request to the first server.

[0093] Step 517: The changed data on the second server is sent to the second component and saved by the second component.

[0094] Step 518: After receiving the first push request, the first server sends a subscription update message to other second clients.

[0095] Step 519: Other second clients that receive the subscription update message send data acquisition requests to the second server.

[0096] The above steps and processes implement how the second client can automatically update when the first client sends a data object update.

[0097] In this way, the page data is actively updated without the need for a corresponding query operation or polling mechanism, which simplifies the update operation of the user's browsing page and greatly reduces the processing pressure of the server. In addition, because the first component and the second component are not coupled with the data object, the system upgrade can be supported.

[0098] It should be noted that the above process sequence is only one possibility, and other sequences may also be used. For example, step 510 may be performed first, and then step 509. There is no specific limitation on this.

[0099] Based on the same concept, the embodiment of the present invention provides a page data updating device. Figure 6 A schematic diagram of a page data updating device provided in an embodiment of the present application is shown in FIG. Figure 6 Including:

[0100] The transceiver module 601 is used for the first subscription component to receive a subscription update message sent by a first server during the period when the first client displays the first page, wherein the subscription update message is used to indicate that a first data object subscribed by the first page has changed; the subscription update message is generated by the first server after receiving a first push request sent by a second server based on the update of the first page;

[0101] An acquisition module 602 is configured for the first subscription component to acquire the first data object from the second server according to the subscription update message;

[0102] The processing module 603 is used for the first subscription component to render the first page according to the first data object.

[0103] In a possible design, the transceiver module 601 is also used for: the first component of the first subscription component determines the data objects to be subscribed from the first page and sends them to the second component of the first subscription component; the second component of the first subscription component sends a subscription request for the first page to the first server, and the subscription request includes the data objects to be subscribed.

[0104] In a possible design, the acquisition module 602 is specifically used for: the second component of the first subscription component obtains the first data object from the second server according to the subscription update message; the first subscription component renders the first page according to the first data object, including: the first component of the first subscription component obtains the first data object from the second component of the first subscription component; the first component of the first subscription component renders the first page according to the first data object.

[0105] In one possible design, the transceiver module 601 is further used for:

[0106] After operating the second data object in the second page displayed by the first client, the first subscription component sends a data change request to the second server; the data change request is used to trigger the second server to send a second push request to the first server based on the update of the second page; the first client obtains the updated second data object from the second server, and renders the second page according to the updated second data object.

[0107] Based on the same concept, the embodiment of the present invention provides a page data updating device. Figure 7 A schematic diagram of a page data updating device provided in an embodiment of the present application is shown in FIG. Figure 7 Including:

[0108] The transceiver module 701 is used for the first server to receive a first push request sent by the second server; the first push request is used to indicate that a first data object of the first page is changed;

[0109] A determination module 702, configured for the first server to determine a first client that subscribes to the first data object;

[0110] The transceiver module 701 is also used for the first server to send a subscription update message to the first subscription component of the first client, and the subscription update message is used to instruct the first subscription component to obtain the first data object for rendering the first page from the second server.

[0111] In one possible design, the transceiver module 701 further includes:

[0112] The first server receives a subscription request for the first page sent by the second component of the first subscription component, wherein the subscription request includes each data object to be subscribed; the each data object to be subscribed is determined by the first component of the first subscription component from the first page and sent to the second component of the first subscription component.

[0113] Based on the same concept, the embodiment of the present invention provides a page data updating device. Figure 8 A schematic diagram of a page data updating device provided in an embodiment of the present application is shown in FIG. Figure 8 Including:

[0114] The transceiver module 801 is used for sending a first push request for the first page to the first server after the second server determines that the first data object of the first page has changed; the first push message is used for the first server to send a subscription update message to the first subscription component of the first client that subscribes to the first data object; the second server provides the first data object to the first subscription component based on the subscription update message; the first subscription component is used to render the first page displayed by the first client according to the first data object.

[0115] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0116] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0117] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0118] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0119] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A page data updating method, characterized in that: include: During the period when the first client displays the first page, the first subscription component receives a subscription update message sent by the first server, wherein the subscription update message is used to indicate that a first data object subscribed by the first page has changed; The subscription update message is generated by the first server after receiving a first push request sent by the second server based on an update of the first page; Before receiving the subscription update message sent by the first server, the method further includes: a first component of the first subscription component determines each data object to be subscribed from the first page and sends the data object to the second component of the first subscription component; the second component of the first subscription component sends a subscription request for the first page to the first server, wherein the subscription request includes each data object to be subscribed; The first subscription component obtains the first data object from the second server according to the subscription update message; wherein the first subscription component obtains the first data object from the second server according to the subscription update message, including: the second component of the first subscription component obtains the first data object from the second server according to the subscription update message; The first subscription component renders the first page according to the first data object; wherein, the first subscription component renders the first page according to the first data object, including: the first component of the first subscription component obtains the first data object from the second component of the first subscription component; the first component of the first subscription component renders the first page according to the first data object.

2. The method according to claim 1, characterized in that The method further comprises: After operating the second data object in the second page displayed by the first client, the first subscription component sends a data change request to the second server; the data change request is used to trigger the second server to send a second push request to the first server based on the update of the second page; The first client obtains the updated second data object from the second server, and renders the second page according to the updated second data object.

3. A page data updating method, characterized in that: include: The first server receives a first push request sent by the second server; The first push request is used to indicate that a first data object of a first page is changed; The first server determines a first client that subscribes to the first data object; The first server sends a subscription update message to a first subscription component of the first client, where the subscription update message is used to instruct the first subscription component to obtain the first data object for rendering the first page from the second server; The first subscription component obtains the first data object for rendering the first page from the second server, including: the second component of the first subscription component obtains the first data object from the second server according to the subscription update message; the first component of the first subscription component obtains the first data object from the second component of the first subscription component; the first component of the first subscription component renders the first page according to the first data object; The method further comprises: Before the first server receives the first push request sent by the second server, it also includes: the first server receives a subscription request for the first page sent by the second component of the first subscription component, and the subscription request includes each data object to be subscribed; the each data object to be subscribed is determined by the first component of the first subscription component from the first page and sent to the second component of the first subscription component.

4. A page data updating method, characterized in that: include: After determining that the first data object of the first page is changed, the second server sends a first push request for the first page to the first server; The first push request is used by the first server to send a subscription update message to a first subscription component of a first client that subscribes to the first data object; The second server provides the first data object to the first subscription component based on the subscription update message; The second server provides the first data object to the first subscription component based on the subscription update message, including: the second server provides the first data object to the second component of the first subscription component based on the subscription update message; the first subscription component is used to render the first page displayed by the first client according to the first data object, and the first subscription component is used to render the first page displayed by the first client according to the first data object, including: the first component of the first subscription component obtains the first data object from the second component of the first subscription component; the first component of the first subscription component renders the first page displayed by the first client according to the first data object; The method further comprises: Before sending the first push request for the first page to the first server, it also includes: the first component of the first subscription component determines the data objects to be subscribed from the first page and sends them to the second component of the first subscription component; the second component of the first subscription component sends a subscription request for the first page to the first server, and the subscription request includes the data objects to be subscribed.

5. A page data updating device, characterized in that: The device comprises: A transceiver module, used for, during the period when the first subscription component displays the first page on the first client, receiving a subscription update message sent by the first server, the subscription update message is used to indicate that the first data object subscribed by the first page has changed; the subscription update message is generated by the first server after receiving the first push request sent by the second server based on the update of the first page; before receiving the subscription update message sent by the first server, the transceiver module is also used to determine the data objects to be subscribed from the first page and send them to the second component of the first subscription component, and send a subscription request for the first page to the first server, the subscription request including the data objects to be subscribed; An acquisition module, used for the first subscription component to acquire the first data object from the second server according to the subscription update message; the acquisition module is specifically used for the second component of the first subscription component to acquire the first data object from the second server according to the subscription update message; A processing module, used for the first subscription component to render the first page according to the first data object; the processing module is specifically used for the first component of the first subscription component to obtain the first data object from the second component of the first subscription component, and for the first component of the first subscription component to render the first page according to the first data object.

6. A computing device, characterized in that include: A memory for storing program instructions; A processor, configured to call the program instructions stored in the memory, and execute the method according to any one of claims 1 to 4 according to the obtained program.

7. A computer-readable non-volatile storage medium, characterized in that: The method comprises computer-readable instructions, and when a computer reads and executes the computer-readable instructions, the computer is caused to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Real-time synchronization method and device

    CN106850745A

  • Data updating method, apparatus and system

    CN109284305A