CN112199617B - Service data refreshing and pushing method and device, equipment and medium thereof - Google Patents

Service data refreshing and pushing method and device, equipment and medium thereof Download PDF

Info

Publication number
CN112199617B
CN112199617B CN202011119090.8A CN202011119090A CN112199617B CN 112199617 B CN112199617 B CN 112199617B CN 202011119090 A CN202011119090 A CN 202011119090A CN 112199617 B CN112199617 B CN 112199617B
Authority
CN
China
Prior art keywords
data
server
version information
service data
latest version
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
CN202011119090.8A
Other languages
Chinese (zh)
Other versions
CN112199617A (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.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN202011119090.8A priority Critical patent/CN112199617B/en
Publication of CN112199617A publication Critical patent/CN112199617A/en
Application granted granted Critical
Publication of CN112199617B publication Critical patent/CN112199617B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a service data refreshing and pushing method, a device, equipment and a medium thereof, wherein the refreshing method comprises the following steps: acquiring latest version information of business data referenced by a current webpage from a version server at regular time; comparing the latest version information with the current version information corresponding to the loaded business data of the current webpage to obtain a comparison result; when the comparison result indicates that the latest version information is inconsistent with the current version information, submitting a refreshing request to a data server to acquire service data corresponding to the latest version information; and replacing the business data referenced by the current webpage with the business data of the latest version information, and replacing the current version information with the latest version information. The application makes the web page of the terminal equipment request the service data from the server only when the referenced service data changes, thereby saving various computer and network resource spending of the terminal equipment side and the server side.

Description

Service data refreshing and pushing method and device, equipment and medium thereof
Technical Field
The application belongs to the technical field of Internet, and particularly relates to a service data refreshing method, and a corresponding device, electronic equipment and a nonvolatile storage medium thereof; meanwhile, the application relates to a service data pushing method, and a corresponding device, electronic equipment and a nonvolatile storage medium thereof.
Background
In web page programs based on HTML protocol, there are usually embedded some presentation modules of service data in a web page, and after the service data acquired from a server is processed locally, the service data is presented in the page by using such presentation modules, so as to update corresponding data in a graphical user interface in time. These service data sometimes need to be continuously acquired from a remote server providing the service data in order to achieve timely updates. The common application scenarios of these business data are numerous and have different functions, such as stock market data provided for reflecting stock real-time market, case data provided for reflecting epidemic situation related dynamics, user speaking data provided for supporting web chat, message data provided for supporting page acquisition of latest notification messages, barrage data provided for supporting barrages of webcast houses, payment result data provided for payment interfaces for supporting interactive processes of online payment, etc. Business data such as these is commonplace and when updated, is stored in a cloud-deployed database so that the associated terminal or user can be obtained from the database via a remote server.
In order to update the service data in time, the page of the terminal equipment is generally and simply refreshed by refreshing the page at regular time, requesting the remote server to push the latest service data for the page, and the remote server queries a database to acquire the relevant service data in response to the request of the terminal equipment, pushes the relevant service data to the terminal equipment, and then the terminal equipment displays the relevant service data in the page when analyzing the webpage. Therefore, the method for the webpage business data is simple but rough, the page of the terminal equipment cannot be updated according to the timing rule only, and the page refreshing operation can be executed no matter whether the business data in the cloud database is updated or not, so that the remote server is inevitably tired to cope with various requests to frequently access the database, not only is the server resource wasted greatly, but also network overhead is occupied, and the overall service quality of a system for providing the webpage is inevitably influenced when more concurrent accesses are carried out in the current network.
Therefore, with the development of the internet, how to adapt to the update of the business data in the web page to develop a new implementation scheme becomes a pain point to be solved in the industry.
Disclosure of Invention
The primary object of the present application is to provide a service data refreshing method, and a corresponding device, electronic equipment and nonvolatile storage medium thereof.
Another object of the present application is to provide a service data pushing method, and a corresponding apparatus, an electronic device, and a non-volatile storage medium thereof.
In order to meet the purposes of the application, the application adopts the following technical scheme:
the service data refreshing method provided by the application suitable for one of the purposes comprises the following steps:
Acquiring latest version information of business data referenced by a current webpage from a version server at regular time;
Comparing the latest version information with the current version information corresponding to the loaded business data of the current webpage to obtain a comparison result;
When the comparison result indicates that the latest version information is inconsistent with the current version information, submitting a refreshing request to a data server to acquire service data corresponding to the latest version information;
And replacing the business data referenced by the current webpage with the business data of the latest version information, and replacing the current version information with the latest version information.
In some embodiments, the method further comprises the preliminary steps of:
when the current web page is first parsed and loaded by the browser, a timer is started so that subsequent steps are performed in response to the timed triggering of the timer.
In some embodiments, the method further comprises the preliminary steps of:
When the current webpage is analyzed and loaded for the first time by a browser, the business data which needs to be referenced and has the latest version information is acquired from the data server, and the latest version information is stored as local current version information.
In some embodiments, the method comprises the steps of:
When the current webpage is accessed by the browser for the first time, creating a session associated with the current webpage between the browser and the data server, and associating unique characteristic information for the session;
in the step of regularly acquiring the latest version information of the business data referenced by the current webpage from the version server, submitting the unique characteristic information of the session to the version server to determine the latest version information associated with the session;
And the data server sends the relation data between the unique characteristic information and the latest version information to the version server after the latest version information of the service data corresponding to the session is updated.
In a further embodiment, the latest version information is compared with the current version information corresponding to the loaded service data of the current webpage, and after a comparison result is obtained, when the comparison result indicates that the latest version information is consistent with the current version information, no instruction is executed.
In some embodiments, the refresh request is a current page refresh request, and the request drives the browser to acquire the current page from the data server again and parse the current page to obtain the service data of the latest version of information.
In some other embodiments, the refresh request is a service data refresh request, where the request drives the browser to obtain only the service data of the latest version of information from the data server.
In a preferred embodiment, the print server and the data server are packaged locally as callable remote interfaces, each sharing the same network address but having a different service port.
The service data pushing method provided by the application suitable for one of the purposes comprises the following steps:
Pushing business data quoted by a webpage in response to the terminal equipment opening a session to access the webpage;
Monitoring the update of the service data, and after the service data is updated, updating the latest version information of the service data correspondingly;
Maintaining data synchronization about the latest version information with a version server so that the terminal equipment can acquire the latest version information from the version server;
and during the session maintenance period, responding to the refresh request of the terminal equipment, and pushing the service data corresponding to the latest version information to the terminal equipment so as to refresh the service data of the webpage.
In the step of maintaining data synchronization with the version server about the latest version information, the relationship data between the unique feature information of the session and the latest version information is synchronized to the version server, so that the terminal device can acquire the corresponding latest version information by querying the unique feature information.
As a deepened embodiment, the updating of the service data is monitored, and after the service data is updated, the latest version information is correspondingly updated, wherein the latest version information is characterized by an argument in a memory.
A service data refreshing apparatus provided in accordance with one of the objects of the present application includes:
the edition acquisition unit is used for acquiring latest edition information of the business data referenced by the current webpage from the edition server at regular time;
The version comparison unit is used for comparing the latest version information with the current version information corresponding to the loaded business data of the current webpage to obtain a comparison result;
The data acquisition unit is used for submitting a refreshing request to the data server when the comparison result represents that the latest version information is inconsistent with the current version information, and acquiring service data corresponding to the latest version information;
and the data refreshing unit is used for replacing the business data referenced by the current webpage with the business data of the latest version information and replacing the current version information with the latest version information.
A service data pushing method according to one of the objects of the present application includes:
the session starting unit is used for responding to the terminal equipment to start the session to access the webpage and pushing the business data referenced by the webpage;
the data monitoring unit is used for monitoring the updating of the service data, and after the service data is updated, the latest version information of the service data is correspondingly updated;
the version synchronization unit is used for maintaining data synchronization about the latest version information with a version server so that the terminal equipment can acquire the latest version information from the version server;
and the refreshing response unit is used for responding to the refreshing request of the terminal equipment during the session maintenance period and pushing the service data corresponding to the latest version information to the terminal equipment so as to realize refreshing of the service data of the webpage.
An electronic device adapted to one of the objects of the present application comprises a central processor and a memory, said central processor being adapted to invoke a computer program stored in said memory for executing said traffic data refreshing/pushing method.
A non-volatile storage medium is provided in accordance with one of the objects of the application in the form of computer readable instructions for storing a computer program implemented as described in accordance with the traffic data refreshing/pushing method, which computer program, when invoked by a computer, performs the steps comprised by the method.
Compared with the prior art, the application carries out the version information management on the business data in principle, marks the latest version information for the business data at the data server, when the webpage at the terminal equipment side invokes the business data quoted by the business data, the data server can track the business data, and when the business data is updated, the latest version information is triggered to update, thereby the data server can synchronize the information to the version server specially responsible for version information inquiry, the terminal equipment acquires the latest version information of the business data quoted by the terminal equipment through inquiring the version server, and compares the latest version information with the locally stored current version information, and when the latest version information is inconsistent with the latest version information, the latest version information is understood to be updated to the data server, so that the business data in the webpage is refreshed. The current version information is the latest version information corresponding to the last service data of the webpage, namely, the latest version information of the service data is stored as the local current version information after being updated in the webpage each time, and can be used for next updating and checking, so that a closed loop which is convenient for circulating and continuously verifying is formed, and the operation by a timing mechanism is facilitated.
It will be appreciated that the various aspects of the application implemented according to this principle can exhibit at least several advantages as follows:
Firstly, although the application sets a timing mechanism, the web page and/or service data are not refreshed unconditionally by each time of timing triggering, but the service data are updated through the data server only after the latest version information is queried through the version server and is changed by comparing the latest version information with the locally stored current version information, so that the data server provides the service data corresponding to the latest version information. Therefore, the refresh request related to the service data which the data server needs to respond to is greatly reduced, the database is not required to be frequently accessed to acquire the service data, and the corresponding service data is acquired and pushed to the terminal equipment only when the service data is actually updated, so that the load of the data server and the related cloud database is greatly reduced, and the service quality of the system is greatly improved.
Secondly, on one side of the terminal equipment, the opened timing mechanism does not directly trigger the refresh request submitted to the data server, but preferentially inquires the latest version information from the version server, and the refresh request is only initiated when the latest version information is changed, so that the workload and the page refresh rate of the terminal equipment are greatly reduced, the network flow of a user can be saved due to lower page refresh frequency, the interaction efficiency is improved, and better man-machine interaction experience is ensured.
Thirdly, the application focuses on refreshing the service data rather than being limited to indirectly achieving the purpose of refreshing the service data through web page refreshing, therefore, the web page can achieve the purpose through implanting a related script program module for acquiring the latest service data, the latest service data is expressed in a corresponding display block of the web page after being acquired, the expression and the updating of the service data in the page are achieved, and the web page itself saves related background computing resources of terminal equipment because the web page is not refreshed and is not parsed again, and smoother interface operation can be provided for a user.
Drawings
The foregoing and/or additional aspects and advantages of the application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
fig. 1 is a schematic diagram of a typical network deployment architecture related to implementing the technical solution of the present application.
Fig. 2 is a flowchart of an exemplary embodiment of a service data pushing method according to the present application.
Fig. 3 is a flowchart of an exemplary embodiment of a service data refreshing method according to the present application.
Fig. 4 is a schematic block diagram of an exemplary embodiment of a service data pushing device according to the present application.
Fig. 5 is a functional block diagram of an exemplary embodiment of a traffic data refreshing apparatus of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As used herein, "client," "terminal device," and "terminal device" are understood by those skilled in the art to include both devices that include only wireless signal receivers without transmitting capabilities and devices that include receiving and transmitting hardware capable of two-way communication over a two-way communication link. Such a device may include: a cellular or other communication device such as a personal computer, tablet, or the like, having a single-line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service, personal communications System) that may combine voice, data processing, facsimile and/or data communications capabilities; PDA (Personal DIGITAL ASSISTANT ) that may include a radio frequency receiver, pager, internet/intranet access, web browser, notepad, calendar and/or GPS (Global Positioning System ) receiver; a conventional laptop and/or palmtop computer or other appliance that has and/or includes a radio frequency receiver. As used herein, "client," "terminal device" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or adapted and/or configured to operate locally and/or in a distributed fashion, at any other location(s) on earth and/or in space. As used herein, a "client," "terminal device," or "terminal device" may also be a communication terminal, an internet terminal, or a music/video playing terminal, for example, may be a PDA, a MID (Mobile INTERNET DEVICE ), and/or a Mobile phone with a music/video playing function, or may also be a device such as a smart tv, a set top box, or the like.
The application refers to hardware such as a server, a client, a service node, and the like, which essentially is an electronic device with personal computer and other functions, and is a hardware device with necessary components disclosed by von neumann principles such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, an output device, and the like, wherein a computer program is stored in the memory, and the central processing unit calls the program stored in the memory to run, executes instructions in the program, and interacts with the input and output devices, thereby completing specific functions.
It should be noted that the concept of the present application, called "server", is equally applicable to the case of server clusters. The servers should be logically partitioned, physically separate from each other but interface-callable, or integrated into a physical computer or group of computers, according to network deployment principles understood by those skilled in the art. Those skilled in the art will appreciate this variation and should not be construed as limiting the implementation of the network deployment approach of the present application.
Referring to fig. 1, the hardware base required for implementing the related technical solution of the present application may be deployed according to the architecture shown in the figure. The print server 800 and the data server 808 of the present application are deployed in the cloud, and each server 800, 808 can serve as a front-end server of its own associated service cluster to provide services for related terminal devices, such as the smart phone 81 and the personal computer 82 shown in the figure. The smart phone and the personal computer can access the internet through a well-known network access mode, and establish a data communication link with various servers 800 and 808 in the cloud so as to run application programs related to services provided by the cloud server.
The layout server 800 is mainly used for storing layout information of service data referenced by the web page of the present application, so that the terminal device can inquire the latest layout information of related service data.
The data server 808 may be a server adapted to provide web access services and which is adapted to invoke a database storing the service data in order to be able to provide web pages and the service data to the terminal device.
The present application has various application forms, and is essentially used for realizing various computer functions, so that the functions can be expressed by calling a third-party browser to access a webpage and executing program modules implanted in the webpage, or can be expressed by developing various APPs suitable for being installed in terminal equipment, embedding relevant function logic of the browser in the APPs, calling a remote webpage and executing various codes when the APPs are run. Thus, in a sense that a browser is not a distinct concept from an application, for web-based development of online services, the application may have a built-in browser for accessing web pages, while accessing web pages through a separate browser may also achieve the same functionality of the application. In the face of a wave of technology for developing terminal applications based on page technology, it will be appreciated by those skilled in the art.
The web page related to the present application is typically published to the data server 808, and the terminal device inputs the web address of the target web page through the browser, or accesses the corresponding web address through executing the APP by executing the code with the equivalent browser function in the APP, so as to initiate access to the web page in the data server 808. The access to the web page is regarded as an access request to the target web page by the browser, so that a request is sent to the data server 808 to obtain the corresponding target web page, the data server 808 pushes the HTML code of the target web page after responding to the request, the browser analyzes and executes the HTML code, and finally the content of the target web page is displayed in the graphical user interface.
The browser according to the application recommends the use of a browser supporting the HTML5 protocol, which supports the local storage feature and provides relevant settings, e.g. google browser is provided with LocalStorage settings for the user to access its local storage space. Unlike the Cookie feature, the feature LocalStorage typically supports only 4 kbytes, but LocalStorage can support a larger storage space, so that the problem of insufficient Cookie storage space is avoided by using the local storage space of LocalStorage instead of the Cookie, and the Cookie storage space is used for storing data with higher requirements on storage space. In addition, data can be permanently stored in LocalStorage, so that the long-term maintenance is more convenient for the webpage session with longer life cycle. The current layout information related to the application can be stored in LocalStorage or Cookies, and of course, the current layout information can also be stored in the memory of the computer only.
The program module in the webpage related to the application refers to program codes embedded in the target webpage, such as codes written in Javascript, which run along with the analysis of the codes in the target webpage by a browser in the process of loading the target webpage. A program module is typically packaged as a method (function) for performing a relatively independent function or for performing a relatively independent task, such as the timer of the present application and associated code for implementing the service data update, in this way.
Referring to fig. 2, a service data pushing method of the present application may be programmed to be implemented as a functional module of the data server to open a corresponding service, and an exemplary embodiment thereof includes the following steps:
step S11, responding to the terminal equipment to open the session to access the webpage and pushing the business data referenced by the webpage:
The data server provides services of accessing the web page and providing service data for the web page, wherein the service data can be user instant communication data required by web page chatting, execution state data in an online payment process, notification data of a website system, user barrage data of a network video live broadcast platform and the like, and a program module carried by the web page at a terminal device is generally responsible for continuously acquiring various updated data from the data server.
The service data is stored in a cloud database which can be accessed by the data server, and can be used as the cloud database, and can be stored in a local storage address of the data server or other external storage addresses which can be accessed by the data server. For some business data that is temporarily calculated and does not need to be archived, the database is not relied on, and the data server only maintains the change process through memory variables.
When the terminal equipment accesses a certain webpage, the data server identifies a request submitted by the terminal equipment, calls the webpage corresponding to the request and pushes the webpage to the terminal equipment, after the terminal equipment receives the webpage, the webpage is analyzed through an analysis mechanism of the browser, and an analysis result is displayed in the browser page.
The web page accessed by the terminal device according to the application contains references to the service data to be displayed in the web page and the latest change state of the service data needs to be tracked. Thus, when a web page is parsed and the service data is acquired from the data server for the first time, a long link can be established between the terminal device and the data server to realize a session between each other based on the web page. When the terminal equipment opens an account to access the webpage, the session is started together with the data server; when the terminal device's access to the web page is over, the session may be deleted.
To maintain this session, typically, a unique characteristic information corresponding to the session is agreed upon between the data server and the terminal device at the time of session creation, in a flexible manner. For example, a UID may be generated for the terminal device based on its unique characteristics, associating the session therewith; or if the web page is logged in by a user identifiable by the data server, i.e., there is a logged-in user, the UID of the logged-in user may be invoked for associating the session. Subsequently, the corresponding UID can be used as the unique characteristic information between the terminal equipment and the data server for uniquely corresponding to the session, so that the data communication interaction of the determined object about the webpage among the interaction ends related to the application is realized.
After the terminal device opens the session to access the webpage, the data server responds to the request of the terminal device to push the webpage to the terminal device, and the terminal device then analyzes the webpage to display corresponding webpage content in the graphical user interface. In this process, the web page contains a reference to the service data, so the data server is also responsible for pushing the service data used by the web page to the terminal device, and the web page displays the service data to the corresponding area of the web page of the browser in a certain format according to the instruction represented by the source code thereof in the process of being analyzed, thereby realizing the display of the service data on the graphical user interface.
Step S12, monitoring the updating of the service data, and after the service data is updated, updating the latest version information correspondingly:
the data server is responsible for maintaining updates to the business data referenced by the web page. The service data can be the latest data provided by other terminal equipment besides the data server and the server, such as user speaking data of webpage chat; but may also be up-to-date data provided by a data server or other server, such as broadcast data of a system message. After these latest data are transmitted to the data server, the data server stores them in the corresponding database or memory variable, thereby causing the original service data to be updated.
The data server listens for such update events at the same time and is also responsible for registering version change information, i.e. layout information, of said service data. Once the business data is updated, the data server modifies the corresponding version information to mark the business data with the latest version information.
The means for marking the latest version information is also very flexible, in one embodiment, a field can be set in the database for the corresponding data record of the service data to record the version number thereof to characterize the version information, and the latest version information is modified by modifying the version number; in another embodiment, an internal memory argument may be set for the service data, and an initialized version number such as "0" is given, and when the service data is updated once, the service data is added once, so as to implement modification of the latest version information. And so on, can be flexibly implemented by those skilled in the art.
This step can be run as an independent task to monitor for multiple terminal devices in a unified way the variation of the different service data referenced by the web pages they access.
Step S13, maintaining data synchronization of the latest version information with a version server so that the terminal equipment can acquire the latest version information from the version server:
Similarly, the step can be constructed as an independent task and run concurrently with tasks constructed by other steps, so that data synchronization is processed in a centralized manner, and the cooperation efficiency is improved.
And the data server and the version server need to realize the synchronization of the latest version information related to the session so that the version server relatively and intensively manages the latest state of each service data and serves the terminal equipment needing to inquire the latest state of the service data. Therefore, a data synchronization mechanism is established between the data server and the layout server, and the data server sends the latest version information of the business data corresponding to each session to the layout server for inquiry. In a specific embodiment, the data server may construct the unique feature information of the session to which the service data belongs and the latest version information of the service data as relationship data, and send the relationship data to the version server for storage and investigation.
The data synchronization between the data server and the layout server can be real-time synchronization relation realized by software configuration, or the data server responds to a business data update event and unidirectionally transmits the data to the layout server, and then the layout server processes the data according to self program business logic. It can be understood that, in order to meet the requirement of the terminal device on higher updating efficiency of the service data, the data synchronization between the data server and the version server is theoretically better, but in practice, due to the consideration of various situations that cannot be overcome by network delay and the like, the practical requirement can be basically met as long as the synchronization duration of the data synchronization can be kept smaller than one interval duration required by the terminal device to refresh the service data, so that a person skilled in the art can grasp the implementation of the technology related to the data synchronization between the data server and the version server as far as possible, and consider the situations in all aspects as possible.
After the print server acquires the relation data of the unique characteristic information about the session and the latest version information transmitted by the data server, the relation data is stored in a local database thereof and can be used for inquiring the terminal equipment. For the same unique characteristic information, the print server only needs to store one latest record, so that confusion caused by providing a plurality of different latest version information about the same service data to the terminal equipment at the same time is avoided.
The terminal device will periodically submit a query request for the service data to the layout server according to its timing mechanism based on the service data refresh requirements of the web pages it accesses. Because the terminal equipment, the data server and the layout server all realize data association by the unique characteristic information corresponding to the conversation of the webpage, the inquiry request contains the unique characteristic information for the corresponding inquiry of the layout server.
After receiving the inquiry request of the terminal equipment, the print server analyzes the unique characteristic information, inquires a unique latest version information corresponding to the unique characteristic information from a local database, and sends the latest version information to the terminal equipment.
After receiving the latest version information, the terminal equipment can compare the current version information of the business data of the web page with the latest version information, and when the latest version information and the current version information are inconsistent, the terminal equipment knows that the business data at the data server has changed, so that the terminal equipment can further request the data server to refresh the business data.
Step S14, during the session maintenance, responding to the refresh request of the terminal equipment, pushing the service data corresponding to the latest version information to the terminal equipment so as to realize the refresh of the service data of the webpage:
The web page accessed by the terminal device is maintained until it is not closed. During the period that the session is maintained, the terminal equipment queries the latest version information of the service data from the version server at the timing of the terminal equipment, and finds that the latest version information is inconsistent with the current version information, and particularly, when the latest version information is generally larger than the current version information, a refresh request can be initiated to the data server at the moment.
The current version information is the latest version information when the business data referenced by the webpage is refreshed last time, and is temporarily stored in the terminal equipment, so that after each business data is refreshed, the latest version information is used as the current version information to be stored locally.
The refreshing request mainly aims at refreshing business data in the current webpage, and the cooperation mode between the refreshing request and the data server is flexible and various, so that the refreshing direct object and the information required by the construction request can be flexibly and correspondingly realized by the terminal equipment and the data server based on different cooperation modes of the refreshing request. For ease of understanding, the following disclosure is provided for reference to several embodiments:
In one embodiment, the refresh request is a current page refresh request, and aims to refresh the service data by refreshing the current web page and re-acquiring the service data by the web page in the process of being analyzed, so that the refreshed service data is the latest service data in the data server. In this way, the refresh request need not contain the latest version information acquired by the terminal device from the version server, but is only used for re-acquiring the current web page. In this regard, the data server does not need to perform complex processing on the refresh request, but pushes the web page again to the terminal device after receiving the refresh request, and pushes the current latest service data when the web page is analyzed and executed again by the browser of the terminal device. The method is the most simple and convenient, and is mainly suitable for application scenes which are not frequently updated in service and are insensitive to the synchronous requirement of service data, such as epidemic situation dynamic display scenes.
In another embodiment, the refresh request is a service data refresh request, and the update is realized only by re-acquiring the service data under the condition of maintaining not to update the page, so that the service data obtained by re-acquiring is the latest service data in the data server. In this way, the refresh request does not need to contain the latest version information acquired by the terminal device from the version server, and the data server simply responds to the refresh request to call the latest version service data in the database and push the latest version service data to the terminal device to realize service data update. The method is mainly applicable to application scenes in which the service data is updated relatively frequently but is insensitive to the service data synchronization requirement, such as a system message synchronization scene.
In still another embodiment, the refresh request is a service data refresh request, and the update is realized only by re-acquiring the service data under the condition of maintaining not to update the web page, but the service data of the corresponding version is acquired according to the latest version information specified by the terminal device, so as to ensure that the service data meets a certain data synchronization requirement. Therefore, in this way, the refresh request needs to include the latest version information obtained by the terminal device from the version server, after the data server receives the refresh request, the latest version information is parsed, then the service data corresponding to the latest version information designated by the terminal device is queried, the service data is pushed to the terminal device as a response to the refresh request, and then the terminal device presents the service data to the page thereof, thereby realizing service data update. In this case, even if there are a plurality of versions of the service data in the data server, even including a version newer than the latest version information specified by the terminal device, the data server provides its corresponding service data based on only the latest version information specified by the terminal device. It can be understood that this way is beneficial to ensuring that the data server, the print server and the terminal device realize data synchronization based on the latest version information, and is more suitable for application scenes with more frequent service data updating and higher synchronization requirements, for example, scenes about web chat, video barrage and the like in network video live broadcast service are more suitable for adopting this way.
Therefore, by implementing the service data pushing method on the data server, the service data is subjected to version marking, and the version server specially responsible for version inquiry is separated, so that the terminal equipment can inquire the service data change state of the version server, and request the service data from the data server when the service data is changed, thereby greatly reducing the load pressure of the data server.
Referring to fig. 3, the service data refreshing method of the present application is suitable for being implemented in a web page, so as to be implemented in an operation manner when a terminal device accesses the web page, so as to interact with the data server implementing the service data pushing method, and access the web page through the service opened by the data server, thereby ensuring that the service data in the web page is updated in time. In its exemplary embodiment, the method comprises the steps of:
Step S21, acquiring latest version information of business data referenced by a current webpage from a version server at regular time:
As previously mentioned, the terminal device accesses the target web page, either through a browser or through an application running on the basis of the web page, in particular the HTML5 web page, and after the web page is parsed, the contents of the web page are presented in the graphical user interface. The web page may contain script program modules for performing formatting and interface rendering of the business data, and interactions with the data server, layout server, etc. may also be performed by such program modules to obtain the business data.
Similarly, in the foregoing, the latest version information of the service data is synchronized with the version server by the data server, and the terminal device can query and acquire the latest version information with the version server.
After the terminal equipment accesses the webpage, namely the current webpage, a session based on long links is established based on the current webpage and the data server, a UID is associated for the session, and the session belongs to unique characteristic information, can be generated by machine information and network information of the terminal equipment, and can also be indicated by the UID of a login user of the current webpage. Thus, for the data server, there is a unique feature information for each session, and during the interaction with the data server, the terminal device can identify whether the communication data belongs to the object processed by the terminal device. When the data server is synchronous with the edition server, the data server is mainly synchronous with the relationship data between the unique characteristic information and the latest edition information of the service data, so that the relationship data corresponding to the terminal equipment can be determined by the unique characteristic information in the same way as the latest edition information.
After the terminal equipment accesses the webpage, namely the current webpage realizes the first loading, the timer built in the webpage is started and activated, and the timer is used for periodically triggering the starting execution of each step of the method so as to periodically detect the latest version information of the service data and send a refresh request related to the current webpage to a data server when needed. The timing interval of the timer, that is, the interval duration of the inquiry request of the latest version information sent by the terminal device to the version server, can be flexibly determined by a person skilled in the art according to the updating frequency requirement of the service data. It can be seen that this step acts as an initial step in the method, which is performed in response to each timed trigger event of the timer, which event is also invoked once by the timer to perform the method.
Once the step is executed under the triggering of the timing triggering event of the timer, under the running control of the corresponding program module of the webpage, the terminal equipment submits a query request of the latest version information of the service data in the current webpage to the version server, wherein the query request contains the unique characteristic information.
After receiving the inquiry request, the print server analyzes the unique characteristic information, inquires the relation data of the unique characteristic information in a local database, obtains the latest version information corresponding to the unique characteristic information from the relation data, and feeds the latest version information back to the terminal equipment to complete the response to the inquiry request.
After receiving the result fed back by the print server, the terminal equipment analyzes the latest version information in the print server, namely the latest version information marked on the server side by the service data referenced by the current webpage.
Step S22, comparing the latest version information with the current version information corresponding to the loaded business data of the current webpage to obtain a comparison result:
as described above, the terminal device may store the current version information corresponding to each version of service data through the local storage space, cookies, memory variables, and the like, and for the latest version information of the service data obtained again, the current version information is actually the latest version information of the service data of the previous version, so that the difference between the current version information and the latest version information is essentially the difference between the version number of the old version and the version number of the new version.
When the current webpage is loaded by the browser of the terminal equipment for the first time, according to the realization of the program codes in the webpage, the service data to be referenced can be acquired from the data server, and the latest version information corresponding to the service data is acquired and then stored as the current version information. Subsequently, for any version of service data, the latest version information corresponding to the service data can be replaced and stored as the current version information. Therefore, when the step is executed, the latest version information acquired by the terminal equipment from the version server can be compared with the current version information, and a comparison result is acquired. It will be appreciated that the comparison may be a Boolean type (Boolean) value, both Boolean values characterizing whether the latest version information obtained from the version server, respectively, is consistent with the locally stored current version information.
In the embodiment of individual variation, when the current webpage is loaded for the first time, the latest version information corresponding to the service data is not required to be acquired and used for storing the current version information, and only the current version information is required to be set to be a null value or to be set to be a lowest version value such as 0.
It can be understood that if the service data is changed at the data server, the latest version information obtained by the terminal device from the version server is inconsistent with the current version information stored locally, and the updating of the service data needs to be implemented by means of the subsequent steps of the method; on the contrary, if the latest version information is found to be consistent with the current version information after comparison by the terminal equipment, the service data at the data server is unchanged, so that the method is suitable for the implementation under the condition, no instruction is required to be executed, the service data is maintained unchanged in the current timing period, a refreshing request is not required to be sent to the data server, and the work load of the data server is omitted.
Step S23, when the comparison result shows that the latest version information is inconsistent with the current version information, submitting a refreshing request to a data server to acquire service data corresponding to the latest version information:
As described above, when the comparison result obtained by comparing the latest version information with the locally stored current version information indicates that the latest version information is inconsistent with the current version information, this generally means that the version number of the latest version information is higher than that of the current version information, and the service data at the data server is updated. In this case, the terminal device may start to interact with the data server, and update the service data in the current web page by sending the refresh request to the data server to obtain a response from the data server.
As described above, the effect of the refresh request is mainly to realize the refresh of the service data in the current web page, and the collaboration mode between the refresh request and the data server is flexible and diverse, so that the refresh direct object and the information required for constructing the request can be flexibly and correspondingly realized by the terminal device and the data server based on different collaboration modes of the refresh request. For ease of understanding, the following disclosure is provided for reference to several embodiments:
In one embodiment, the refresh request is a current page refresh request, and aims to refresh the service data by refreshing the current web page and re-acquiring the service data by the web page in the process of being analyzed, so that the refreshed service data is the latest service data in the data server. In this way, the refresh request need not contain the latest version information acquired by the terminal device from the version server, but is only used for re-acquiring the current web page. In this regard, the data server does not need to perform complex processing on the refresh request, but pushes the web page again to the terminal device after receiving the refresh request, and pushes the current latest service data when the web page is analyzed and executed again by the browser of the terminal device. The method is the most simple and convenient, and is mainly suitable for application scenes which are not frequently updated in service and are insensitive to the synchronous requirement of service data, such as epidemic situation dynamic display scenes.
In another embodiment, the refresh request is a service data refresh request, and the update is realized only by re-acquiring the service data under the condition of maintaining not to update the page, so that the service data obtained by re-acquiring is the latest service data in the data server. In this way, the refresh request does not need to contain the latest version information acquired by the terminal device from the version server, and the data server simply responds to the refresh request to call the latest version service data in the database and push the latest version service data to the terminal device to realize service data update. The method is mainly applicable to application scenes in which the service data is updated relatively frequently but is insensitive to the service data synchronization requirement, such as a system message synchronization scene.
In still another embodiment, the refresh request is a service data refresh request, and the update is realized only by re-acquiring the service data under the condition of maintaining not to update the web page, but the service data of the corresponding version is acquired according to the latest version information specified by the terminal device, so as to ensure that the service data meets a certain data synchronization requirement. Therefore, in this way, the refresh request needs to include the latest version information obtained by the terminal device from the version server, after the data server receives the refresh request, the latest version information is parsed, then the service data corresponding to the latest version information designated by the terminal device is queried, the service data is pushed to the terminal device as a response to the refresh request, and then the terminal device presents the service data to the page thereof, thereby realizing service data update. In this case, even if there are a plurality of versions of the service data in the data server, even including a version newer than the latest version information specified by the terminal device, the data server provides its corresponding service data based on only the latest version information specified by the terminal device. It can be understood that this way is beneficial to ensuring that the data server, the print server and the terminal device realize data synchronization based on the latest version information, and is more suitable for application scenes with more frequent service data updating and higher synchronization requirements, for example, scenes about web chat, video barrage and the like in network video live broadcast service are more suitable for adopting this way.
Step S24, replacing business data referenced by the current webpage with business data of the latest version information, and replacing the current version information with the latest version information:
As described above, the terminal device and the data server maintain the same session based on the long link, and during the session, the data server can provide the service data referred to by the terminal device for the current page of the terminal device again in response to the refresh request of the terminal device, and the service data is the latest version data.
After receiving the latest version of service data, the terminal equipment submits the service data to a script program module which is embedded in a webpage and is responsible for representing the service data to carry out formatting and interface representation, so that the service data can be output to the page of the current webpage, the corresponding content of the service data on the graphical user interface is correspondingly changed, and an operating user can read the service data. For example, update of epidemic situation dynamic business data can present the latest confirmed cases, suspected cases and the like through execution of the step; in another example, the update of the business data of the web chat can present new user speaking data through the execution of this step. And so on, it is not enumerated.
After the service data of the latest version information is updated to the page, the updating of the service data in a timing period is ended, and before the updating, in order to facilitate the version comparison of the service data to be carried out later, in this step, the latest version information is replaced and stored as the current version information, so that the data object of the current version information always represents the associated version number of the service data referenced in the page of the current webpage, and when each step of the method is carried out later again in another timing period, the current version information which is just replaced can be used as a version judgment basis for comparing with the latest version information in the future.
In the above, the exemplary embodiment of the service data refreshing method of the present application and its modified embodiments are constructed. To further enrich the meaning of the present application, the following will be briefly summarized as follows, along with various variant embodiments and other possible implementations, and links, compatible relationships between these embodiments, etc:
In one embodiment, the service data refreshing method further includes the steps preceding step S21 but not shown: when the current webpage is analyzed and loaded for the first time by a browser, the business data which needs to be referenced and has the latest version information is acquired from the data server, and the latest version information is stored as local current version information. By applying the embodiment, the initialization step of the method and the programming logic in the webpage can be standardized, so that a programmer only needs a set of unified codes to replace and store the latest version information to a storage position corresponding to the local current version information, thereby simplifying the development logic and optimizing the development flow.
In one embodiment, the service data refreshing method includes the following steps:
Firstly, a step S21 is preceded, and when a current webpage is accessed by a browser for the first time, a session associated with the current webpage is created between the browser and the data server, and the unique characteristic information is associated for the session;
then, in step S21, that is, the step of regularly acquiring the latest version information of the service data referenced by the current web page from the version server, submitting the unique characteristic information of the session to the version server to determine the latest version information associated with the session;
As described above, the relationship data between the unique feature information and the latest version information is sent to the version server after the latest version information is updated due to the update of the service data corresponding to the session by the data server.
The embodiment aims to embody the programming development guidance of the application, and the association among a plurality of interaction ends is implemented through the unique characteristic information, so that the communication efficiency can be greatly improved, and the data interaction difficulty is reduced.
It will be appreciated that the steps of the two embodiments and the contents defined by the steps may be implemented in combination with other embodiments of the present application, so as to further enrich the technical content of the present application.
In yet another embodiment, the layout server and the data server may be considered logical concepts, with both servers being locally encapsulated as callable remote interfaces, each sharing the same network address but having different service ports. That is, the layout server and the data server may be physically independent as in the foregoing embodiments, and may be respectively provided with independent network addresses and service ports, or may be distinguished from each other by configuring the computer devices pointed to by the same network address to simultaneously serve as the layout server and the data server, and by being provided with different service ports. It can be seen that, no matter how the print server and the data server are deployed at the cloud end, two remote interfaces respectively representing the print server and the data server can be inspected through the webpage code at the side of the terminal device, and even if the two remote interfaces have the same network address, the two remote interfaces should be regarded as equivalent implementation modes of the foregoing embodiments of the present application as long as the two remote interfaces respectively play roles similar to the print server and the data server.
Therefore, by applying the service data refreshing method of the application, the terminal equipment does not need to update the service data to the data server frequently, but only initiates a refreshing request to the data server to acquire the latest service data when the version server knows that the latest version information of the service data changes, so that the terminal equipment side does not need to refresh frequently, the occupation of computer power resources and network overhead can be reduced, the man-machine interaction experience can be improved, and correspondingly, the server side also inevitably reduces the work load along with the reduction of the request, and further the network resources are saved.
Further, by performing functionalization on each embodiment of the service data pushing method, a service data pushing device of the present application may be constructed, and according to this idea, please refer to fig. 4, in an exemplary embodiment, the device includes:
a session initiation unit 11, configured to respond to a terminal device opening a session to access a web page and push service data referenced by the web page;
A data monitoring unit 12, configured to monitor an update of the service data, and update the latest version information of the service data when the service data is updated;
A print synchronization unit 13, configured to maintain data synchronization with a print server regarding the latest print information, so that the terminal device obtains the latest print information from the print server;
And the refresh response unit 14 is configured to respond to the refresh request of the terminal device during the session maintenance period, and push service data corresponding to the latest version of information to the terminal device, so as to implement refreshing of the service data of the web page.
Further, by performing the functionalization of each embodiment of the service data refreshing method, a service data refreshing device of the present application may be constructed, and according to this concept, please refer to fig. 5, in an exemplary embodiment, the device includes:
A print acquisition unit 21, configured to acquire latest print information of service data referenced by a current web page from a print server at regular time;
A print comparison unit 22, configured to compare the latest print information with current print information corresponding to the service data loaded by the current web page, so as to obtain a comparison result;
A data obtaining unit 23, configured to submit a refresh request to a data server when the comparison result indicates that the latest version information is inconsistent with the current version information, and obtain service data corresponding to the latest version information;
and the data refreshing unit 24 is configured to replace service data referenced by a current webpage with service data of latest version information, and replace the current version information with the latest version information.
In order to facilitate the execution of the present application, an electronic device is provided comprising a central processor and a memory, said central processor being adapted to invoke the steps of running a computer program stored in said memory for performing a traffic data pushing/refreshing method as described above.
It can be seen that the memory is preferably a non-volatile storage medium, and the method is implemented as a computer program, and the computer program is installed in an electronic device such as a mobile phone, so that relevant program codes and data are stored in the non-volatile storage medium of the electronic device, and the program is further executed by a central processing unit of the electronic device, and is transferred from the non-volatile storage medium to a memory for operation, thereby achieving the desired purpose of the application. It will thus be appreciated that in one embodiment of the application there may also be provided a non-volatile storage medium storing in the form of computer readable instructions a computer program implemented in accordance with the various embodiments of the traffic data push/refresh method, the computer program when executed by a computer to perform the steps comprised by the method.
In summary, the application makes the web page of the terminal device request the service data from the server only when the referenced service data changes, thereby saving various computer and network resource costs of the terminal device side and the server side.
Those skilled in the art will appreciate that the present disclosure is directed to apparatus for performing one or more of the operations, methods described herein. These devices may be specially designed and constructed for the required purposes, or may comprise known devices in general purpose computers. These devices have computer programs stored within their memories that are selectively activated or reconfigured. Such a computer program may be stored in a device (e.g., a computer) readable medium or any type of medium suitable for storing electronic instructions and respectively coupled to a bus, including, but not limited to, any type of disk (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROMs (Read-Only memories), RAMs (Random Access Memory, random access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (ELECTRICALLY ERASABLE PROGRAMMABLE READ-Only memories), flash memories, magnetic cards, or optical cards. That is, a readable medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer).
It will be understood by those within the art that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. Those skilled in the art will appreciate that the computer program instructions can be implemented in a processor of a general purpose computer, special purpose computer, or other programmable data processing method, such that the blocks of the block diagrams and/or flowchart illustration are implemented by the processor of the computer or other programmable data processing method.
Those of skill in the art will appreciate that the various operations, methods, steps in the flow, acts, schemes, and alternatives discussed in the present application may be alternated, altered, combined, or eliminated. Further, other steps, means, or steps in a process having various operations, methods, or procedures discussed herein may be alternated, altered, rearranged, disassembled, combined, or eliminated. Further, steps, measures, schemes in the prior art with various operations, methods, flows disclosed in the present application may also be alternated, altered, rearranged, decomposed, combined, or deleted.
The foregoing is only a partial embodiment of the present application, and it should be noted that it will be apparent to those skilled in the art that modifications and adaptations can be made without departing from the principles of the present application, and such modifications and adaptations are intended to be comprehended within the scope of the present application.

Claims (8)

1. The service data refreshing method is characterized by being applied to terminal equipment and comprising the following steps of:
when the current webpage is accessed by a browser with a local storage characteristic for the first time, creating a session associated with the current webpage between the browser and a data server, and associating unique characteristic information for the session;
The method comprises the steps that unique characteristic information of a session is submitted to a layout server to determine latest version information related to the session, latest version information of business data referenced by a current webpage is acquired from the layout server at regular time, wherein the relationship data between the unique characteristic information and the latest version information is sent to the layout server after the latest version information is updated due to the fact that the business data corresponding to the session are updated by the data server, a data synchronization mechanism is established between the data server and the layout server, and the latest version information of the business data corresponding to each session is sent to the layout server by the data server for inquiry;
Comparing the latest version information with the current version information corresponding to the loaded business data of the current webpage to obtain a comparison result;
When the comparison result indicates that the latest version information is inconsistent with the current version information, submitting a refreshing request to a data server to acquire service data corresponding to the latest version information;
and replacing the business data referenced by the current webpage with the business data of the latest version information, and replacing the current version information stored in the local storage space of the browser with the latest version information.
2. The method according to claim 1, characterized in that the method comprises the following pre-steps:
When the current webpage is analyzed and loaded for the first time by the browser, starting a timer so that the subsequent steps are executed in response to the timing trigger of the timer;
or comprises the following pre-steps:
When the current webpage is analyzed and loaded for the first time by a browser, the business data which needs to be referenced and has the latest version information is acquired from the data server, and the latest version information is stored as local current version information.
3. The method of claim 1, wherein:
the refresh request is a current page refresh request, and the request drives a browser to acquire the current page again from a data server for analysis to acquire the service data of the latest version of information;
Or:
The refresh request is a service data refresh request, and the request drives a browser to only acquire service data of the latest version information from a data server.
4. The service data pushing method is characterized by being applied to a data server and comprising the following steps of:
Responding to the terminal equipment to open a session to access a webpage and pushing service data referenced by the webpage, and associating unique characteristic information for the session;
Monitoring the update of the service data, and after the service data is updated, updating the latest version information of the service data correspondingly;
maintaining data synchronization about the latest version information with a version server so that the terminal equipment can acquire the latest version information from the version server; a data synchronization mechanism is established between the data server and the version server, and the data server synchronizes the relationship data between the unique characteristic information of the session and the latest version information to the version server so that the terminal equipment can inquire and acquire the corresponding latest version information by the unique characteristic information;
and during the session maintenance period, responding to the refresh request of the terminal equipment, and pushing the service data corresponding to the latest version information to the terminal equipment so as to refresh the service data of the webpage.
5. A service data refreshing device, which is applied to a terminal device, and comprises:
when the current webpage is accessed by a browser with a local storage characteristic for the first time, creating a session associated with the current webpage between the browser and a data server, and associating unique characteristic information for the session;
the system comprises a edition acquisition unit, a edition server and a data server, wherein the edition acquisition unit is used for periodically acquiring the latest edition information of service data referenced by a current webpage from the edition server by submitting the unique characteristic information of the session to the edition server to determine the latest edition information related to the session, the relationship data between the unique characteristic information and the latest edition information is sent to the edition server after the latest edition information is updated due to the fact that the service data corresponding to the session is updated by the data server, a data synchronization mechanism is established between the data server and the edition server, and the latest edition information of the service data corresponding to each session is sent to the edition server by the data server for inquiry;
The version comparison unit is used for comparing the latest version information with the current version information corresponding to the loaded business data of the current webpage to obtain a comparison result;
The data acquisition unit is used for submitting a refreshing request to the data server when the comparison result represents that the latest version information is inconsistent with the current version information, and acquiring service data corresponding to the latest version information;
And the data refreshing unit is used for replacing the business data referenced by the current webpage with the business data of the latest version information and replacing the current version information with the latest version information stored in the local storage space of the browser.
6. A service data pushing device, which is applied to a data server, and comprises:
The session starting unit is used for responding to the terminal equipment to start a session to access the webpage and pushing the business data referenced by the webpage, and associating the unique characteristic information for the session;
the data monitoring unit is used for monitoring the updating of the service data, and after the service data is updated, the latest version information of the service data is correspondingly updated;
The version synchronization unit is used for maintaining data synchronization about the latest version information with a version server so that the terminal equipment can acquire the latest version information from the version server; a data synchronization mechanism is established between the data server and the version server, and the data server synchronizes the relationship data between the unique characteristic information of the session and the latest version information to the version server so that the terminal equipment can inquire and acquire the corresponding latest version information by the unique characteristic information;
and the refreshing response unit is used for responding to the refreshing request of the terminal equipment during the session maintenance period and pushing the service data corresponding to the latest version information to the terminal equipment so as to realize refreshing of the service data of the webpage.
7. An electronic device comprising a central processor and a memory, characterized in that the central processor is adapted to invoke a computer program stored in the memory for performing the steps of the method according to any of claims 1-4.
8. A non-volatile storage medium, characterized in that it stores in form of computer readable instructions a computer program implemented according to the method of any one of claims 1 to 4, which when invoked by a computer, performs the steps comprised by the method.
CN202011119090.8A 2020-10-19 2020-10-19 Service data refreshing and pushing method and device, equipment and medium thereof Active CN112199617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011119090.8A CN112199617B (en) 2020-10-19 2020-10-19 Service data refreshing and pushing method and device, equipment and medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011119090.8A CN112199617B (en) 2020-10-19 2020-10-19 Service data refreshing and pushing method and device, equipment and medium thereof

Publications (2)

Publication Number Publication Date
CN112199617A CN112199617A (en) 2021-01-08
CN112199617B true CN112199617B (en) 2024-08-23

Family

ID=74009365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011119090.8A Active CN112199617B (en) 2020-10-19 2020-10-19 Service data refreshing and pushing method and device, equipment and medium thereof

Country Status (1)

Country Link
CN (1) CN112199617B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115967812A (en) * 2021-10-09 2023-04-14 北京字节跳动网络技术有限公司 Signaling data updating method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546912A (en) * 2012-07-09 2014-01-29 中兴通讯股份有限公司 Method, device and system for upgrading version of base station
CN107301051A (en) * 2017-06-27 2017-10-27 深圳市金立通信设备有限公司 The caching of terminal dynamic data and exchange method, terminal, system and computer-readable recording medium
CN111767074A (en) * 2020-05-12 2020-10-13 Oppo(重庆)智能科技有限公司 Configuration updating method, device, terminal and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101282453B (en) * 2007-04-03 2010-08-11 华为技术有限公司 Method for updating electric service instruction, server, terminal and system
CN103916373A (en) * 2013-01-07 2014-07-09 腾讯科技(深圳)有限公司 Data updating method, server, client side and system
CN106033361A (en) * 2015-03-13 2016-10-19 阿里巴巴集团控股有限公司 Method and device for showing application page, and method and device for updating application page data
CN106325925A (en) * 2016-08-18 2017-01-11 乐视控股(北京)有限公司 Browser service information updating method and device
CN109359259A (en) * 2018-09-27 2019-02-19 广州酷狗计算机科技有限公司 Load the method and device of webpage
CN111061977A (en) * 2018-09-28 2020-04-24 北京国双科技有限公司 Website updating method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546912A (en) * 2012-07-09 2014-01-29 中兴通讯股份有限公司 Method, device and system for upgrading version of base station
CN107301051A (en) * 2017-06-27 2017-10-27 深圳市金立通信设备有限公司 The caching of terminal dynamic data and exchange method, terminal, system and computer-readable recording medium
CN111767074A (en) * 2020-05-12 2020-10-13 Oppo(重庆)智能科技有限公司 Configuration updating method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN112199617A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
US20210377335A1 (en) Delivery of instructions in host applications
US7467389B2 (en) System and methodology providing service invocation for occasionally connected computing devices
US9485134B2 (en) Managing configurations of system management agents in a distributed environment
CN110971655B (en) Offline client playback and synchronization
EP2180663B1 (en) Trickle sync protocol
US10069942B2 (en) Method and apparatus for changing configurations
US10990605B2 (en) Instance data replication
US10534698B2 (en) Stateless self-sufficient test agents
US11436066B2 (en) System for offline object based storage and mocking of rest responses
US20170149915A1 (en) System and method of feed data transmission
WO2020258666A1 (en) Distributed system and data processing method
CN104156300A (en) Log management system and log management method
CN113452617B (en) Dynamic gateway route management method, device and storage medium
CN111182065A (en) Message processing method and device based on MQTT protocol and computer equipment
CN112231106A (en) Access data processing method and device for Redis cluster
CN112199617B (en) Service data refreshing and pushing method and device, equipment and medium thereof
CN114928620B (en) User information synchronization method, apparatus, device, storage medium, and program product
CN112416641B (en) Method for detecting restarting of controlled end node in master-slave architecture and master control end node
CN110288309B (en) Data interaction method, device, system, computer equipment and storage medium
CN116781780A (en) Request processing method, device, server and storage medium
CN113660988A (en) Data processing method, device, system, equipment and computer readable storage medium
CN113472638A (en) Edge gateway control method, system, device, electronic equipment and storage medium
CN113760868B (en) Data processing method, device and storage service system
CN115580605A (en) Request processing method and device based on microservice
CN117560416A (en) Message processing method, device, apparatus, storage medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant