CN114928610A - Data update notification method, data processing method, device, equipment and medium - Google Patents

Data update notification method, data processing method, device, equipment and medium Download PDF

Info

Publication number
CN114928610A
CN114928610A CN202210517191.3A CN202210517191A CN114928610A CN 114928610 A CN114928610 A CN 114928610A CN 202210517191 A CN202210517191 A CN 202210517191A CN 114928610 A CN114928610 A CN 114928610A
Authority
CN
China
Prior art keywords
data
server
client
updated
notification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210517191.3A
Other languages
Chinese (zh)
Inventor
沈天诗
蔡文盛
彭木贤
卓宝链
邹小强
蒋胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yougarage Network Technology Development Shenzhen Co ltd
Original Assignee
Yougarage Network Technology Development Shenzhen 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 Yougarage Network Technology Development Shenzhen Co ltd filed Critical Yougarage Network Technology Development Shenzhen Co ltd
Priority to CN202210517191.3A priority Critical patent/CN114928610A/en
Publication of CN114928610A publication Critical patent/CN114928610A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Abstract

The application provides a notification method, a data processing method, a device, equipment and a medium for data updating. The method comprises the following steps: after detecting that the data in the database server is updated, inquiring whether a cache server comprises the data; if the cache server comprises the data, updating the data; and sending notification marks to all clients establishing long links with the application server so that the clients know that the data in the database server are updated. The client is informed that the data is updated in a mode that the server actively pushes the mark, so that the client can automatically delete and update locally outdated data, the data used by a user is current and latest, the data is updated more timely, the data of the server and the client are effectively synchronized, the processing efficiency of data synchronization is improved, the client does not need to request the server frequently, the request pressure of the server is reduced, and the use experience of the user is improved.

Description

Data update notification method, data processing method, device, equipment and medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a notification method of data update, a data processing method, an apparatus, a device, and a medium.
Background
In the field of data processing, with the development of information technology, the number of users browsing network data is increasing, the data access frequency is also increasing, and when data is updated, the timeliness of people for acquiring data is increasing, namely, the requirement on data synchronization is increasing, so that the load pressure of a server is increased.
In the prior art, data synchronization is performed at a server, a client actively sends a request for synchronizing data to the server, and the server sends the synchronized data to the client after processing. By the method, the client can indeed obtain the data synchronized with the server, but the user needs to actively initiate a request to the server, and the user cannot know the data when the data is updated, so that the user cannot know and obtain the data updated in real time in time, the data synchronization processing efficiency is low, and the user experience is influenced.
Disclosure of Invention
In view of this, the present invention provides a data update notification method, a data processing method, an apparatus, a device, and a medium, which solve the problem of low efficiency of current data synchronization processing.
The embodiment of the disclosure provides a notification method, a data processing method, a device, equipment and a medium for data updating.
In a first aspect, an embodiment of the present disclosure provides a notification method for data update, which is applied to a server, where the server includes an application server, a database server, and a cache server, and the method includes:
after detecting that the data in the database server is updated, inquiring whether the cache server comprises the data;
if the cache server comprises the data, updating the data;
and sending notification marks to all the clients establishing the long link with the application server so that the clients know that the data in the database server are updated.
Further, after the updating the data, the method further includes:
and sending the updated data to the client through the application server.
Further, the data update notification method further includes:
controlling the application server to establish a long link with the client according to a long link establishment request sent by the client;
and sending notification marks within a preset number of days to all the clients establishing the long link with the application server so that the clients know that the data within the preset number of days in the application server are updated.
In a second aspect, an embodiment of the present disclosure provides a data processing method applied to a client, where the method includes:
receiving a notification mark sent by a server to know that data in the server is updated;
judging whether the cache of the client comprises data corresponding to the notification mark;
and if so, deleting the data from the cache of the client.
Further, after the data is deleted from the cache of the client, the method further includes:
judging whether the current use data of the client comprises data corresponding to the notification mark;
if yes, sending a data acquisition request to a server;
and receiving updated data sent by the server, storing the updated data into a cache of the client, and updating the current use data according to the updated data.
Further, the data processing method further comprises:
sending a long link establishment request to the server;
after the long link is established with the server, receiving a notification mark sent by the server within a preset number of days;
judging whether the cache of the client comprises data corresponding to the notification marks in the preset number of days or not;
and if so, deleting the data corresponding to the notification marks in the preset days from the cache of the client.
In a third aspect, an embodiment of the present disclosure provides an apparatus for notifying a data update, which is applied to a server, and the apparatus includes:
the query module is used for querying whether the cache server comprises the data or not after detecting that the data in the database server is updated;
the updating module is used for updating the data in the cache server;
and the sending module is used for sending notification marks to all the clients establishing the long links with the application server so that the clients know that the data in the server are updated.
In a fourth aspect, an embodiment of the present disclosure provides a data processing apparatus, which is applied to a client, and the apparatus includes:
the receiving module is used for receiving the notification mark sent by the server so as to know that the data in the server is updated;
the judging module is used for judging whether the cache of the client comprises data corresponding to the notification mark or not;
and the deleting module is used for deleting the data corresponding to the notification mark from the cache of the client.
In a fifth aspect, an embodiment of the present disclosure provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the data update notification method in the first aspect or the data processing method in the second aspect when executing the computer program.
In a sixth aspect, the present disclosure provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method for notifying a data update described in the first aspect or the steps of the method for processing data described in the second aspect.
The technical scheme provided by the embodiment of the application has the following advantages:
according to the technical scheme, the notification method and the data processing method for data updating provided by the embodiment of the application inform the client that the data is updated in a mode that the server actively pushes the mark, so that the client can automatically delete and update locally outdated data, the current latest data used by a user is ensured, the data is updated more timely, the data of the server and the client are effectively synchronized, the processing efficiency of data synchronization is improved, and the user experience is improved. In addition, according to the technical scheme of the application, the client does not need to request the server frequently, and the request pressure of the server is reduced.
In order to make the aforementioned and other objects, features and advantages of the present invention more comprehensible and obvious, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart illustrating a notification method for data update according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a data processing method according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram illustrating a notification apparatus for data update according to an embodiment of the present application;
fig. 4 is a schematic structural diagram illustrating a data processing apparatus according to an embodiment of the present application;
fig. 5 shows a hardware architecture diagram of a computer device provided in an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention and are not to be construed as limiting the present invention.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. In contrast, when an element is referred to as being "directly on" another element, there are no intervening elements present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for illustrative purposes only.
In the present invention, unless otherwise explicitly stated or limited, the terms "mounted," "connected," "fixed," and the like are to be construed broadly, e.g., as being permanently connected, detachably connected, or integral; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
Unless defined otherwise, all 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. The terminology used in the description of the templates herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The application provides a notification method and a data processing method for data updating, and relates to a server and a client. The server comprises an application server, a database server and a cache server. The client can be a user device such as a mobile phone, a tablet computer, a notebook computer and the like supporting the third-party application software.
Example 1
As shown in fig. 1, which is a flowchart of a data update notification method in an embodiment of the present application, the data update notification method provided in the embodiment of the present application is applied to a server, where the server includes an application server, a database server, and a cache server, and the method includes the following steps:
step 110, after detecting that the data in the database server is updated, inquiring whether the cache server comprises the data;
specifically, a large amount of data is stored in the database server, and whether the data in the database server is updated or not is actively detected, that is, a query request can be sent to the database server at a predetermined time interval to determine whether the updated data exists or not. And when the data updating is detected, inquiring whether the cache server comprises the data or not.
Optionally, the application may set a time interval, and detect whether the data in the database server is updated according to a predetermined time interval. The set time interval may be three minutes, ten minutes, half an hour, or the like, and may be set according to actual requirements, which is not limited in the embodiment of the present application.
Step 120, if the cache server includes the data, updating the data;
specifically, if the cache server includes the data and proves that the data is expired, the expired data in the cache server needs to be updated, so that the updated data is sent to the client terminal subsequently.
Step 130, sending notification marks to all the clients establishing the long link with the application server, so that the clients know that the data in the database server is updated.
Specifically, when the client is started, a long link is established between the client and the application server through a Socket communication protocol, so that after data is updated, a corresponding notification identifier can be set for each updated data, and notification marks are sent to all clients establishing long links with the application server, where the notification marks are used for enabling the client to know that the data in the server is updated.
In an optional embodiment, after the updating the data, the method further includes:
step 140, sending the updated data to the client through the application server.
Specifically, the application server sends the updated data to the client, may directly send the updated data to the client together with the notification flag, or send the updated data according to a request for obtaining the updated data from the client, where the two methods are usually only performed in one of the two ways. If the application server actively sends the update data to the client, the client does not apply for obtaining the update data from the application server again as the client knows that the data is updated; if the application server does not send the update data to the client, the application server receives a request for obtaining the update data from the client, and then sends the update data to the client.
In an optional embodiment, the method further comprises:
step 150, controlling the application server to establish a long link with the client according to a long link establishment request sent by the client;
step 160, sending notification marks within a preset number of days to all the clients establishing the long link with the application server, so that the clients know that the data within the preset number of days in the application server are updated.
Specifically, the application server may send notification marks within a preset number of days to all the clients that establish long links with the server, so that when the client is started and after the long links are established with the server, the client can automatically know that the data within the preset number of days in the server are updated, thereby performing a deletion operation of corresponding outdated data, and ensuring that the data in the cache of the client is the latest data within the preset number of days.
According to the data updating notification method provided by the embodiment of the application, the application server can actively detect the updated data and can actively push the notification mark to the client, so that the client knows that the data is updated, and the client can automatically delete and update the locally expired data. When the client is started, the notification mark in the preset number of days sent by the application server can be automatically received, so that the client deletes the expired data in the corresponding preset number of days, the data used by the client can be ensured to be the current latest data, the data of the server and the client are effectively synchronized, the processing efficiency of data synchronization is improved, and the use experience of a user is improved.
Example 2
As shown in fig. 2, which is a flowchart of a data processing method in an embodiment of the present application, the data processing method provided in the embodiment of the present application is applied to a client, and the method includes the following steps:
step 201, receiving a notification mark sent by a server to know that data in the server is updated;
step 202, judging whether the cache of the client includes data corresponding to the notification mark;
step 203, if the cache of the client includes the data corresponding to the notification flag, deleting the data from the cache of the client.
It can be understood that, after receiving the notification flag sent by the server, the client queries and determines whether the local cache includes data corresponding to the notification flag, and if so, proves that the data in the local cache of the client is outdated, so that the outdated data needs to be deleted. And after the overdue data is deleted, judging whether the data currently used by the client is the data corresponding to the notification mark, if so, proving that the data currently used by the client is overdue, acquiring the updated data, searching the overdue data in the local cache corresponding to the updated data, and replacing the overdue data in the local cache by using the updated data to achieve the purpose of data processing. And meanwhile, the current use page of the client is automatically refreshed, so that the client can use the latest data in the first time.
In an optional implementation manner, after the deleting the data from the cache of the client, the method further includes:
step 240, judging whether the current usage data of the client includes data corresponding to the notification flag;
step 250, if yes, sending a data acquisition request to a server;
step 206, receiving the updated data sent by the server, storing the updated data in the cache of the client, and updating the current usage data according to the updated data.
Specifically, the updated data may be directly sent together when the application server sends the notification flag, or may be sent by the application server when the client actively initiates a request for obtaining the updated data, and the two methods are usually only executed in one of them. If the application server actively sends the update data to the client, the client does not apply for obtaining the update data from the application server again as the client knows that the data is updated; if the application server does not send the update data to the client, the client needs to send a data acquisition request to the server, and the application server sends the update data to the client after receiving the data acquisition request from the client.
In an optional embodiment, the method further comprises:
step 207, sending a long link establishment request to the server;
step 208, after the long link is established with the server, receiving a notification mark sent by the server within a preset number of days;
step 209, judging whether the cache of the client includes data corresponding to the notification mark within the preset number of days;
and step 210, if yes, deleting the data corresponding to the notification mark in the preset days from the cache of the client.
Specifically, when the client starts, a long link establishment request is sent to the server. In the embodiment of the present application, a long link is established between the client and the application server of the server through a Socket communication protocol, and it can be understood that the long link may also be established between the client and the server through other manners, which is not limited in the embodiment of the present application. After the server receives a long link establishment request of the client and a series of interactions are carried out, the client receives a notification mark sent within a preset number of days from the server after a long link is established between the client and the server, and the notification mark is used for searching and deleting corresponding expired data exceeding the preset number of days in a cache of the client, so that the purpose of processing the expired data is achieved. When the cache of the client includes data corresponding to the notification flag, it is proved that the data in the local cache of the client is expired, and therefore the expired data needs to be deleted. That is to say, the client local cache only stores data within the preset number of days, and when the data exceeds the preset number of days, the data is regarded as expired data, and the deletion operation is automatically performed. In this embodiment of the present application, the preset number of days is three days, and it can be understood that the number between the client and the server may be set according to actual requirements, for example, five days and seven days, which is not limited in this embodiment of the present application.
In addition, in the embodiment of the application, only the data of the preset number of days is stored in the cache of the client, and the data exceeding the preset number of days automatically executes the clearing operation when the client is started.
According to the data processing method provided by the invention, the client interacts with the cache server, the cache server acquires the updated data, the client does not need to actively send a request for the data to be updated to the server according to the existing mode, and when the data is updated, the client can automatically receive the notification mark and the updated data sent by the cache server so as to delete the expired data and display the updated data to the client. When the client is started, the notification mark sent by the cache server can be automatically received, the client can automatically remove the overdue data exceeding the preset number of days in the local cache by using the notification mark, the data processing complexity of the client is reduced, the operating efficiency of the client is greatly improved, the performance of the whole system is obviously improved, and the user experience is better.
Example 3
As shown in fig. 3, a schematic structural diagram of a notification apparatus 300 for data update in the embodiment of the present application is shown, and the apparatus includes:
the query module 310 is configured to query whether the cache server includes the data after detecting that the data in the database server is updated;
an update module 320, configured to update data in the cache server;
a sending module 330, configured to send notification flags to all clients that establish the long link with the application server, so that the clients know that data in the database server is updated.
Optionally, the data update notification apparatus may further include:
a first sending module 340, configured to send the updated data to the client through the application server.
Optionally, the data update notification apparatus may further include:
a long link establishment module 350, configured to control the application server to establish a long link with the client according to a long link establishment request sent by the client;
the second sending module 360 is configured to send notification marks within a preset number of days to all clients that establish the long link with the server, so that the clients know that the data within the preset number of days in the server are updated.
According to the notification device for data updating provided by the embodiment of the application, the application server can actively detect the updated data and can actively push the notification mark to the client, so that the client knows that the data is updated, and the client can automatically delete and update the locally expired data. When the client is started, the notification mark within the preset number of days sent by the application server can be automatically received, so that the client deletes the overdue data within the corresponding preset number of days, the data used by the client can be ensured to be the current latest data, the data of the server and the client are effectively synchronized, the processing efficiency of data synchronization is improved, and the user experience is improved.
Example 4
As shown in fig. 4, which is a schematic structural diagram of a data processing apparatus 400 in the embodiment of the present application, the apparatus includes:
a receiving module 401, configured to receive a notification flag sent by a server, so as to learn that data in the server is updated;
a determining module 402, configured to determine whether a cache of the client includes data corresponding to the notification flag;
a deleting module 403, configured to delete the data corresponding to the notification flag from the cache of the client.
Optionally, the data processing apparatus may further include:
a first determining module 404, configured to determine whether the current usage data of the client includes data corresponding to the notification flag;
a third sending module 405, configured to send a data obtaining request to a server;
a first updating module 406, configured to receive updated data sent by the server, store the updated data in a cache of the client, and update the current usage data according to the updated data.
Optionally, the data processing apparatus may further include:
a long link request module 407, configured to send a long link establishment request to the server;
a first receiving module 408, configured to receive a notification flag sent by the server within a preset number of days after establishing a long link with the client;
a second determining module 409, configured to determine whether the cache of the client includes data corresponding to the notification flag in the preset number of days;
a first deleting module 410, configured to delete, from the cache of the client, data corresponding to the notification flag in the preset number of days.
According to the data processing device provided by the embodiment of the application, the client interacts with the cache server, the cache server acquires the updated data, the client does not need to actively send a request for updating the data to the server according to the existing mode, and when the data is updated, the client can automatically receive the notification mark and the updated data sent by the cache server so as to delete the expired data and display the updated data to the client. When the client is started, the notification mark sent by the cache server can be automatically received, the client can automatically remove the overdue data exceeding the preset number of days in the local cache by using the notification mark, the data processing complexity of the client is reduced, the operating efficiency of the client is greatly improved, the performance of the whole system is obviously improved, and the user experience is better.
Example 5
Fig. 5 is a schematic diagram illustrating a hardware architecture of a computer device provided in the present application, where the computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the notification method of data update according to embodiment 1 or the steps of the data processing method according to embodiment 2 when executing the computer program.
In this embodiment, the computer device 500 is a device capable of automatically performing numerical calculation and/or information processing according to a command set or stored in advance. For example, the server may be a rack server, a blade server, a tower server, or a rack server (including an independent server or a server cluster composed of a plurality of servers). As shown in fig. 5, computer device 500 includes at least, but is not limited to: memory 510, processor 520, and network interface 530 may be communicatively linked to each other by a system bus. Wherein:
the memory 510 includes at least one type of computer-readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 510 may be an internal storage module of the computer device 500, such as a hard disk or a memory of the computer device 500. In other embodiments, the memory 510 may also be an external storage device of the computer device 500, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the computer device 500. Of course, the memory 510 may also include both internal and external memory modules of the computer device 500. In this embodiment, the memory 510 is generally used for storing an operating system installed in the computer device 500 and various application software, such as program codes of a video playing method. In addition, the memory 510 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 520 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 520 is generally configured to control overall operations of the computer device 500, such as performing control and processing related to data interaction or communication with the computer device 500. In this embodiment, processor 520 is configured to execute program codes stored in memory 510 or process data.
Network interface 530 may include a wireless network interface or a wired network interface, and network interface 530 is typically used to establish communication links between computer device 500 and other computer devices. For example, the network interface 530 is used to connect the computer device 500 to an external terminal via a network, establish a data transmission channel and a communication link between the computer device 500 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a global system for Mobile communications (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), or Wi-Fi.
It is noted that fig. 5 only illustrates a computer device having components 510-530, but it is understood that not all illustrated components are required to be implemented and that more or fewer components can be implemented instead.
In this embodiment, the data update notification method or the data processing method stored in the memory 510 may be further divided into one or more program modules and executed by one or more processors (in this embodiment, the processor 520) to implement the present invention.
Example 6
The present embodiment also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the notification method of data update or the steps of the data processing method in the embodiments.
In this embodiment, the computer-readable storage medium includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the computer readable storage medium may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer readable storage medium may be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device. Of course, the computer-readable storage medium may also include both internal and external storage devices of the computer device. In this embodiment, the computer-readable storage medium is generally used for storing an operating system and various types of application software installed in the computer device. In addition, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
In all examples shown and described herein, any particular value should be construed as merely exemplary, and not as a limitation, and thus other examples of example embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above examples are merely illustrative of several embodiments of the present invention, and the description thereof is more specific and detailed, but not to be construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention.

Claims (10)

1. A notification method for data update is applied to a server, wherein the server comprises an application server, a database server and a cache server, and the method comprises the following steps:
after detecting that the data in the database server is updated, inquiring whether the cache server comprises the data;
if the cache server comprises the data, updating the data;
and sending notification marks to all clients establishing long links with the application server so that the clients know that the data in the database server are updated.
2. The method according to claim 1, further comprising, after the updating the data, the step of:
and sending the updated data to the client through the application server.
3. A notification method of data update according to claim 1, wherein said method further comprises:
controlling the application server to establish a long link with the client according to a long link establishment request sent by the client;
and sending notification marks within a preset number of days to all the clients establishing the long link with the application server so that the clients know that the data within the preset number of days in the application server are updated.
4. A data processing method is applied to a client, and the method comprises the following steps:
receiving a notification mark sent by a server to know that data in the server is updated;
judging whether the cache of the client comprises data corresponding to the notification mark;
and if so, deleting the data from the cache of the client.
5. The data processing method according to claim 4, further comprising, after the deleting the data from the cache of the client:
judging whether the current using data of the client comprises data corresponding to the notification mark;
if yes, sending a data acquisition request to a server;
and receiving updated data sent by the server, storing the updated data into a cache of the client, and updating the current use data of the client according to the updated data.
6. The data processing method of claim 4, wherein the method further comprises:
sending a long link establishment request to the server;
after the long link is established with the server, receiving a notification mark sent by the server within a preset number of days;
judging whether the cache of the client comprises data corresponding to the notification marks in the preset number of days or not;
and if so, deleting the data corresponding to the notification marks in the preset days from the cache of the client.
7. A notification apparatus for data update, applied to a server, the apparatus comprising:
the query module is used for querying whether the cache server comprises the data or not after detecting that the data in the database server is updated;
the updating module is used for updating the data in the cache server;
and the sending module is used for sending notification marks to all the clients establishing the long links with the application server so as to enable the clients to know that the data in the database server are updated.
8. A data processing apparatus, applied to a client, the apparatus comprising:
the receiving module is used for receiving the notification mark sent by the server so as to know that the data in the server is updated;
the judging module is used for judging whether the cache of the client comprises data corresponding to the notification mark;
and the deleting module is used for deleting the data corresponding to the notification mark from the cache of the client.
9. A computer device, characterized by comprising a memory storing a computer program and a processor implementing the steps of the notification method of data update of any one of claims 1-3 or the data processing method of any one of claims 4-6 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the steps of the notification method of data update of any one of claims 1-3 or the data processing method of any one of claims 4-6.
CN202210517191.3A 2022-05-12 2022-05-12 Data update notification method, data processing method, device, equipment and medium Pending CN114928610A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210517191.3A CN114928610A (en) 2022-05-12 2022-05-12 Data update notification method, data processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210517191.3A CN114928610A (en) 2022-05-12 2022-05-12 Data update notification method, data processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114928610A true CN114928610A (en) 2022-08-19

Family

ID=82809210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210517191.3A Pending CN114928610A (en) 2022-05-12 2022-05-12 Data update notification method, data processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114928610A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115473810A (en) * 2022-09-01 2022-12-13 珠海金山数字网络科技有限公司 Double-end synchronous script hot updating method and device
CN115473810B (en) * 2022-09-01 2024-04-26 珠海金山数字网络科技有限公司 Double-end synchronous script hot updating method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001076465A (en) * 1999-06-28 2001-03-23 Sony Corp System and method for storing and transmitting materials
CN102333128A (en) * 2011-10-31 2012-01-25 河南省电力公司计量中心 Active transmission method for real-time Web data
CN102917061A (en) * 2012-10-19 2013-02-06 北京奇虎科技有限公司 Resource synchronization method and system
CN106571942A (en) * 2015-10-10 2017-04-19 北京国双科技有限公司 Configuration data updating method, client side and server
CN109582684A (en) * 2018-11-30 2019-04-05 深圳市盟天科技有限公司 A kind of update method of local cache data, device, server and storage medium
CN111818117A (en) * 2019-11-22 2020-10-23 北京嘀嘀无限科技发展有限公司 Data updating method and device, storage medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001076465A (en) * 1999-06-28 2001-03-23 Sony Corp System and method for storing and transmitting materials
CN102333128A (en) * 2011-10-31 2012-01-25 河南省电力公司计量中心 Active transmission method for real-time Web data
CN102917061A (en) * 2012-10-19 2013-02-06 北京奇虎科技有限公司 Resource synchronization method and system
CN106571942A (en) * 2015-10-10 2017-04-19 北京国双科技有限公司 Configuration data updating method, client side and server
CN109582684A (en) * 2018-11-30 2019-04-05 深圳市盟天科技有限公司 A kind of update method of local cache data, device, server and storage medium
CN111818117A (en) * 2019-11-22 2020-10-23 北京嘀嘀无限科技发展有限公司 Data updating method and device, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115473810A (en) * 2022-09-01 2022-12-13 珠海金山数字网络科技有限公司 Double-end synchronous script hot updating method and device
CN115473810B (en) * 2022-09-01 2024-04-26 珠海金山数字网络科技有限公司 Double-end synchronous script hot updating method and device

Similar Documents

Publication Publication Date Title
CN107943594B (en) Data acquisition method and device
US8209437B2 (en) Personal information management data synchronization
EP2431894A1 (en) Search method, device and system
CN110661889B (en) Push message synchronization and compensation method and system of iOS (integrated operation system) terminal
CN110109766B (en) Data interaction method and device based on cross-department and cross-platform data sharing exchange
KR100728076B1 (en) Method, device and system for synchronizing of data providing for the handling of an interrupted synchronization process
CN104283926A (en) Data synchronization method, device and server
CN105530269B (en) Data interactive method and system and server
US10938773B2 (en) Method and apparatus for synchronizing contact information and medium
CN105450682A (en) Method, device, and system for data synchronous storage and synchronizing data to client
CN102594874B (en) Synchronization processing method and device
US20130091093A1 (en) Method and device for managing information of a universal integrated circuit card
CN111142885B (en) eSIM equipment management method, device, equipment and storage medium
CN111063183B (en) Bluetooth-based electric energy meter statistical method and device and storage medium
CN114928610A (en) Data update notification method, data processing method, device, equipment and medium
CN114422576B (en) Session cleaning method and device, computer equipment and readable storage medium
CN102932513B (en) A kind of business card maintaining method, device and equipment
CN112507010B (en) Service data processing method and device, computer equipment and storage medium
US11425632B2 (en) Mechanism to provide updates to NB-IoT devices
CN114143308A (en) File uploading information processing method and device, computer equipment and storage medium
CN112328245A (en) Page display method, system, electronic equipment and storage medium
CN111953580B (en) Method, device and storage medium for sending and acquiring session
CN112383633B (en) Session management method and system
CN113722401B (en) Data caching method and device, computer equipment and readable storage medium
CN114374612B (en) Management method and device for topology information of base station system

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