CN111143383A - Data updating method and device, electronic equipment and storage medium - Google Patents
Data updating method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111143383A CN111143383A CN201911328187.7A CN201911328187A CN111143383A CN 111143383 A CN111143383 A CN 111143383A CN 201911328187 A CN201911328187 A CN 201911328187A CN 111143383 A CN111143383 A CN 111143383A
- Authority
- CN
- China
- Prior art keywords
- data
- update
- protocol
- protocol data
- updated
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application provides a data updating method, a data updating device, electronic equipment and a storage medium, wherein in the data updating method, a front end sends an updating data request to a back end server, the back end server determines corresponding protocol data according to the updating data request after receiving the updating data request, the protocol data accords with an interaction protocol between the front end and the back end server, the back end server feeds back the protocol data to the front end, and the front end updates data to be updated by utilizing the protocol data to obtain the updated front end data for a user to use. Therefore, the data updating method provided by the application can only write the updating data in the back-end server, and can complete the data updating of the front end by utilizing the property that the updating data can enable the front end and the back-end server to be interacted for updating, so that the condition that the data updated at the front end needs to be audited by a WeChat platform or a third-party platform is avoided, and the data updating efficiency is improved.
Description
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data updating method and apparatus, an electronic device, and a storage medium.
Background
The applet is an application which can be used without downloading and installing, so that the applet is convenient for users to use and has wide use scenes. The applet needs to be developed by relying on a WeChat ecological environment, the applet comprises a large number of business functions for meeting the requirements of a user, and in order to improve the use effect of the applet, a PM (Project Management) can continuously provide updating requirements for an applet developer according to the requirements continuously generated by the user.
And when the developer receives the updating instruction of the PM, the small program needs to be adjusted continuously. Specifically, as shown in fig. 1, development and update of an applet generally need to be completed by a front-end server and a back-end server corresponding to the applet at the same time, that is, data of corresponding needs are modified at the front-end server and the back-end server to obtain modified data, and then the front-end needs to send the modified data corresponding to the front-end to a wechat platform or a third-party auditing platform for data auditing. The applet can only formally use the modified data after the data audit is passed. At this time, when the user uses the applet at the client, the updated front-end page can be used, and data corresponding to the demand can be called from the back-end server.
Therefore, in the existing process of modifying the data of the applet, the data in the front-end server and the data in the back-end server of the applet need to be modified at the same time, and the data corresponding to the front end needs to be audited through the data of the WeChat platform or the third-party auditing platform. Large development resources are consumed, a large amount of time is wasted in the auditing stage, and the auditing passing rate is difficult to guarantee.
Disclosure of Invention
The application provides a data updating method, a data updating device, electronic equipment and a storage medium, and aims to solve the problem that existing small program data updating efficiency is low.
In a first aspect, an embodiment of the present application provides a data updating method, which is applied to a front end of a target applet, and the method includes:
sending a data updating request to a back-end server of the applet;
receiving protocol data fed back by the back-end server according to the update data request, wherein the protocol data is update data issued to the back-end server through a back-end management platform, and the update data conforms to an interaction protocol between the front-end server and the back-end server;
and updating the data to be updated in the front end by using the protocol data to obtain updated front end data.
In a possible implementation manner of the first aspect of the embodiment of the present invention, the update data request includes a keyword corresponding to the data to be updated; and the protocol data is fed back by a remote dictionary service in the back-end server according to the keywords, and the protocol data is a target value matched with the keywords in a key value pair generated by update data sent to the remote dictionary service by the background management platform.
In a possible implementation manner of the first aspect of the embodiment of the present invention, if there is no target value matching the keyword in the remote dictionary service, the protocol data is fed back by a local cache in the backend server according to the keyword, and the protocol data is target data that is called from a database of the backend server according to a historical update data request and matches the keyword in update data stored in the local cache.
In a possible implementation manner of the first aspect of the embodiment of the present invention, if data matching the update data request does not exist in the local cache, the database feeds back the protocol data according to the keyword, where the protocol data is data matching the keyword in the update data sent to the database by the background management platform.
In a possible implementation manner of the first aspect of the embodiments of the present invention, the updating, by using protocol data, data to be updated in the front end to obtain updated front end data includes:
acquiring updated position information in the protocol data;
determining data to be updated in the data of the front end by using the updated position information;
and updating the data to be updated by utilizing the protocol data to obtain updated front-end data.
In a second aspect, the present application provides a data updating method applied to a backend server of a target applet, including:
receiving an update data request sent by the front end of the target applet;
determining corresponding protocol data according to the update data request, wherein the protocol data is update data which is issued to the background server through a background management platform, and the update data conforms to an interaction protocol between the front-end server and the back-end server;
and sending the protocol data to the front end so that the front end updates the data to be updated according to the protocol data.
In a possible implementation manner of the second aspect of the embodiment of the present invention, the update data request includes a keyword corresponding to the data to be updated, and the determining, according to the update data request, corresponding protocol data includes:
matching the keywords with key values stored in a remote dictionary service in the background server, wherein the key values are generated by updating data sent to the remote dictionary service by the background management platform;
and if the remote dictionary service has a target key value pair matched with the keyword, determining protocol data, wherein the protocol data is a target value in the target key value pair.
In a possible implementation manner of the second aspect of the embodiment of the present invention, the determining, according to the update data request, the corresponding protocol data further includes:
if the target key value pair matched with the key word does not exist in the remote dictionary service, matching the key word with cache data stored in a local cache in the background server, wherein the cache data is the update data which is called from a database of the back-end server according to a historical update data request and is stored in the local cache;
and if target data matched with the keywords exist in the cache data, determining protocol data, wherein the protocol data is the target data.
In a possible implementation manner of the second aspect of the embodiment of the present invention, the determining, according to the update data request, the corresponding protocol data further includes:
if the target data matched with the keywords do not exist in the local cache, matching the keywords with all data stored in a database of the background server, wherein the all data are update data issued to the database by the background management platform;
and determining protocol data, wherein the protocol data is the data matched with the keyword in the whole data.
In a third aspect, an embodiment of the present application provides a data updating apparatus, which is disposed at a front end of a target applet, and includes:
the request sending module is used for sending a data updating request to a back-end server of the target applet;
a protocol data receiving module, configured to receive protocol data fed back by the back-end server according to the update data request, where the protocol data is update data sent to the back-end server through a back-end management platform, and the update data conforms to an interaction protocol between the front-end server and the back-end server;
and the updating module is used for updating the data to be updated in the front end by using the protocol data to obtain updated front end data.
In a possible implementation manner of the third aspect of the embodiment of the present invention, the update data request includes a keyword corresponding to the data to be updated; and the protocol data is fed back by a remote dictionary service in the back-end server according to the keywords, and the protocol data is a target value matched with the keywords in a key value pair generated by update data sent to the remote dictionary service by the background management platform.
In a possible implementation manner of the third aspect of the embodiment of the present invention, if there is no target value matching the keyword in the remote dictionary service, the protocol data is fed back by a local cache in the backend server according to the keyword, and the protocol data is target data matching the keyword in update data that is called from a database of the backend server according to a historical update data request and is stored in the local cache.
In a possible implementation manner of the third aspect of the embodiment of the present invention, if data matching the update data request does not exist in the local cache, the database feeds back the protocol data according to the keyword, where the protocol data is data matching the keyword in the update data sent to the database by the background management platform.
In a possible implementation manner of the third aspect of the embodiment of the present invention, the update module includes:
the position information acquisition module is used for acquiring updated position information in the protocol data;
a data to be updated determining module, configured to determine data to be updated in the data at the front end by using the update location information;
and the data updating module is used for updating the data to be updated by utilizing the protocol data to obtain updated front-end data.
In a fourth aspect, an embodiment of the present application provides a data updating apparatus, which is disposed in a backend server of a target applet, and includes:
the request receiving module is used for receiving an update data request sent by the front end of the target applet;
a protocol data determining module, configured to determine corresponding protocol data according to the update data request, where the protocol data is update data that is issued to the backend server through a backend management platform, and the update data conforms to an interaction protocol between the front-end server and the backend server;
and the feedback module is used for sending the protocol data to the front end so that the front end updates the data to be updated according to the protocol data.
In a possible implementation manner of the fourth aspect of the embodiment of the present invention, the update data request includes a keyword corresponding to the data to be updated, and the protocol data determining module includes:
the first matching module is used for matching the keywords with key value pairs stored in a remote dictionary service in the background server, and the key values are generated by update data sent to the remote dictionary service by the background management platform;
a first determining module, configured to determine protocol data if a target key value pair matching the keyword exists in the remote dictionary service, where the protocol data is a target value in the target key value pair.
In a possible implementation manner of the fourth aspect of the embodiment of the present invention, the protocol data determining module further includes:
a second matching module, configured to match the keyword with cache data stored in a local cache in the background server if a target key value pair matching the keyword does not exist in the remote dictionary service, where the cache data is the update data that is called from a database of the backend server according to a historical update data request and stored in the local cache;
and a second determining module, configured to determine protocol data if target data matched with the keyword exists in the cache data, where the protocol data is the target data.
In a possible implementation manner of the fourth aspect of the embodiment of the present invention, the protocol data determining module further includes:
a third matching module, configured to match the keyword with all data stored in a database of the backend server if target data matched with the keyword does not exist in the local cache, where all data is update data that is issued to the database by the backend management platform;
and a third determining module, configured to determine protocol data, where the protocol data is data that matches the keyword in all the data.
In a fifth aspect, an embodiment of the present invention provides an electronic device, which is applied to a front end corresponding to a target applet, and includes:
a processor, and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the data update method via execution of the executable instructions.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, which is applied to a front end corresponding to a target applet and has a computer program stored thereon, where the computer program is executed by a processor to implement the data updating method.
In a seventh aspect, an embodiment of the present invention provides an electronic device, which is applied to a backend server corresponding to a target applet, and includes:
a processor, and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the data update method via execution of the executable instructions.
In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium, which is applied to a backend server corresponding to a target applet, and a computer program is stored on the backend server, and when being executed by a processor, the computer program implements the data updating method.
According to the above technology, the present application provides a data updating method, an apparatus, an electronic device, and a storage medium, wherein in the data updating method, a front end sends an update data request to a back end server, and the back end server determines corresponding protocol data according to the update data request after receiving the update data request, wherein the protocol data conforms to an interaction protocol between the front end and the back end server, the back end server feeds back the protocol data to the front end, and the front end updates data to be updated by using the protocol data to obtain updated front end data for a user to use. Therefore, the data updating method provided by the application can only write the updating data in the back-end server, and can complete the data updating of the front end by utilizing the property that the updating data can enable the front end and the back-end server to be interacted for updating, so that the condition that the data updated at the front end needs to be audited by a WeChat platform or a third-party platform is avoided, and the data updating efficiency is improved.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a schematic structural diagram of a system in which an existing applet is located according to an embodiment of the present application;
fig. 2 is a flowchart of a data updating method provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a system in which an applet is located according to an embodiment of the present application;
fig. 4 is a flowchart of a method for feeding back protocol data by a background server according to an embodiment of the present application;
fig. 5 is a flowchart of a method for updating data to be updated according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a first data updating apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a second data updating apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a third data updating apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a fourth data updating apparatus according to an embodiment of the present application;
fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention;
fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 2 is a flowchart of a data updating method provided in the embodiment of the present application, and as shown in fig. 2, the data updating method provided in the embodiment includes:
and S1, sending a data updating request to the back-end server of the small program.
The front end sends a data updating request to a back-end server of the applet, wherein the data updating request can be a request periodically sent to the back-end server by the front end according to a preset request time period; or may be an update data request sent when a user generates a demand for use. The update data request may include, among other things, an update time of the data update, an update type of the data update, e.g., a background update, etc.
And S2, receiving an update data request sent by the front end of the target small program.
The back-end server receives the update data request sent by the front end of the target applet.
S3, determining corresponding protocol data according to the update data request, wherein the protocol data is the update data issued to the background server through a background management platform, and the update data conforms to the interaction protocol between the front-end server and the back-end server.
And after receiving the update data request sent by the front end of the target applet, the back-end server determines corresponding protocol data according to the update data request. The protocol data is update data sent to the background server through the background management platform, and as shown in fig. 3, the protocol data is a structural schematic diagram of a system where the applet is located, provided in an embodiment of the present application, where modification of the data of the background server is implemented by a developer through the background management platform, the developer writes the update data into the background management platform, and sends the update data to the background server through the background management platform to replace corresponding data, or adds the update data to a designated location of the background server, and then directly deletes some data corresponding to the failure function from the background server through the background management platform. For example, according to the requirement of the PM, modifying the data of the function A in the background server, writing the modified update data A 'into the background management platform, and then sending the update data A' to the background server by the background management platform to replace the data A in the background server; or according to the requirement of PM, adding a function B in the background server, writing the added update data B into the background management platform, and then issuing the update data B to the designated position of the background server by the background management platform; and then or, according to the requirement of the PM, canceling the C function in the background server, and issuing a data deleting instruction to the background server through the background management platform to delete the data C corresponding to the C function.
The updating data has a special protocol data format, usually adopts a JSON format, and the followed protocol is capable of interacting with the front end, namely the front end can directly utilize the protocol data and quickly respond to the updating requirement according to the protocol data, so that the feasibility of the operation of writing the updating data through the back end and finishing the updating of the front end data is met. It should be noted that the data mentioned in the present application mainly refers to codes, and may of course include other characters, instructions, etc. that can implement the functions of the applet.
Specifically, as shown in fig. 4, a flowchart of a method for feeding back protocol data for a background server provided in the embodiment of the present application is shown, where the method includes:
s301, matching the keywords with key values stored in a remote dictionary service in the background server, wherein the key values are generated by update data sent to the remote dictionary service by the background management platform;
s302, if a target key value pair matched with the keyword exists in the remote dictionary service, determining protocol data, wherein the protocol data is a target value in the target key value pair.
The data updating request sent by the front end includes a keyword corresponding to the data to be updated, where the keyword may be an identifier representing the data to be updated, a field representing the data to be updated, a function name representing the data to be updated, and the like. Typically, the key is represented in the code by a key.
The background server has three databases for storing data, namely a remote dictionary service (Redis), a local cache and a database. Data in the Redis usually in the form of key-value pairs, that is, in the form of key-values, it can be seen that there is a one-to-one mapping relationship between the keys and the target values, that is, the values can be determined according to the keys.
Since the Redis has the advantage of fast data read-write speed, in order to increase the speed of acquiring the protocol data, the protocol data can be acquired from the Redis first. The method comprises the steps that a developer writes update data in a background management platform, the background management platform stores the update data into Redis in a key value pair mode, at the moment, a keyword corresponding to data to be updated and sent by a front end is matched with a keyword in the key value pair, if the keyword is matched with the keyword, the target value matched with the keyword exists in the target key value pairs, and at the moment, the target values are protocol data.
At this time, the protocol data fed back to the front end by the background server is the target value obtained from the Redis, and correspondingly, the front end receives the target values matched with the keywords.
Further, since the Redis itself has timeliness, that is, the data stored in the Redis have corresponding valid times, which can be set according to different policies, for example, only when the target applet is used for the first time, the corresponding protocol data will appear in the Redis; or, the corresponding protocol data may appear in Redis only when the target applet is first used within a preset time period, etc. It should be noted that the Redis includes not only the update data, but also historical data and the like for supporting normal operation of the applet, and these historical data are usually obtained and stored from a local cache or a database of the backend server according to a preset storage policy.
With continued reference to fig. 4, the method further comprises:
s303, if the target key value pair matched with the key word does not exist in the remote dictionary service, matching the key word with cache data stored in a local cache in the background server, wherein the cache data is the update data which is called from a database of the back-end server according to a historical update data request and is stored in the local cache;
s304, if target data matched with the keywords exist in the cache data, determining protocol data, wherein the protocol data are the target data.
As can be seen from the above, once the key value pair corresponding to the key in the Redis fails, the protocol data cannot be obtained from the Redis, and at this time, in order to ensure the efficiency of data reading and writing, the protocol data may be selected to be searched from the local cache of the background server. The key still needs to be matched with the cached data stored in the local cache. The cache data is called from a database of the back-end server according to the historical updating data request and is stored in the local cache. For example, if another user has updated the target applet, or the same user has updated the target applet, the target applet needs to be updated again for some reason, and since the previous update operation has stored the update data called from the database in the local cache, the update data can be directly obtained from the local cache without reading and writing the database again, so that the read-write efficiency of the data can be effectively improved, and the security of the database can be maintained. At this time, the cache data matched with the key is target data, and the target data is protocol data.
At this time, the protocol data fed back to the front end by the background server is the target data obtained from the local cache, and correspondingly, the front end receives the target data matched with the keywords.
With continued reference to fig. 4, the method further comprises:
s305, if target data matched with the keywords do not exist in the local cache, matching the keywords with all data stored in a database of the background server, wherein the all data are update data issued to the database by the background management platform;
s306, determining protocol data, wherein the protocol data is the data matched with the keywords in all the data.
If neither Redis nor local cache has data that can match the keyword, then the protocol data needs to be looked up from the database of the background server. Because the background management platform directly issues the updated data written by the developer to the database, the data matched with the keywords can be found from all the data stored in the database.
At this time, the protocol data fed back to the front end by the background server is the data matched with the keywords obtained from the database, and correspondingly, the front end receives the data matched with the keywords.
And S4, sending the protocol data to the front end so that the front end updates the data to be updated according to the protocol data.
The background server accurately finds out the protocol data matched with the data updating request through the process, and feeds the protocol data back to the front end, so that the front end can update the data to be updated by using the protocol data.
And S5, receiving protocol data fed back by the back-end server according to the update data request, wherein the protocol data is the update data sent to the back-end server through a back-end management platform, and the update data conforms to the interaction protocol between the front-end server and the back-end server.
The front end receives protocol data sent by the back end server, and as can be seen from the above, the protocol data is one of a target value matched with the keyword in a key value pair generated by update data issued to the remote dictionary service by the background management platform, target data called from the database of the back end server according to a historical update data request and stored in the update data of the local cache and matched with the keyword, and data matched with the keyword in the update data issued to the database by the background management platform, and what kind of protocol data is received under what kind of conditions is given by the above text, and details are not repeated here.
And S6, updating the data to be updated in the front end by using the protocol data to obtain updated front end data.
After receiving the protocol data, the front end updates the data to be updated according to the protocol data, and specifically, with reference to fig. 5, is a flowchart of a method for updating the data to be updated provided in an embodiment of the present application, where the method includes:
s601, obtaining the updated position information in the protocol data;
s602, determining data to be updated in the data of the front end by using the updated position information;
s603, updating the data to be updated by using the protocol data to obtain updated front-end data.
The protocol data carries the updating position information corresponding to the data to be updated, so that the front end can accurately distinguish the data to be updated corresponding to different protocol data after receiving the protocol data fed back by the background server. Further, in order to facilitate the front end to quickly update the data to be updated, the protocol data may also carry update location information positioned to the code line level, so that after the front end receives the protocol data fed back by the background server, the protocol data can be positioned to the code line to be updated more quickly, and thus the data to be updated is updated by using the protocol data.
As shown in fig. 3, which is a schematic diagram of a data updating method provided in the embodiment of the present application, compared with fig. 1, it is obvious that the present application may only write update data in a backend server, and use the property that the update data can enable a front end and the backend server to perform interactive update, so as to complete data update on the front end, thereby avoiding a situation that the data updated on the front end needs to be audited by a wechat platform or a third party platform, and thus improving the efficiency of data update.
Fig. 6 is a schematic structural diagram of a first data updating apparatus provided in an embodiment of the present application, which is disposed at a front end of a target applet and includes: a request sending module 1, configured to send a request for updating data to a backend server of the target applet; a protocol data receiving module 2, configured to receive protocol data fed back by the back-end server according to the update data request, where the protocol data is update data that is issued to the back-end server through a back-end management platform, and the update data conforms to an interaction protocol between the front-end server and the back-end server; and the updating module 3 is configured to update the data to be updated in the front end by using the protocol data, so as to obtain updated front end data.
Further, the update data request comprises a keyword corresponding to the data to be updated; and the protocol data is fed back by a remote dictionary service in the back-end server according to the keywords, and the protocol data is a target value matched with the keywords in a key value pair generated by update data sent to the remote dictionary service by the background management platform.
Further, if the target value matched with the keyword does not exist in the remote dictionary service, the protocol data is fed back by a local cache in the back-end server according to the keyword, and the protocol data is the target data which is called from a database of the back-end server according to a historical updating data request and is stored in the updating data of the local cache and matched with the keyword.
Further, if the data matched with the update data request does not exist in the local cache, the database feeds back the protocol data according to the keyword, and the protocol data is the data matched with the keyword in the update data sent to the database by the background management platform.
Fig. 7 is a schematic structural diagram of a second embodiment of a data updating apparatus provided in the embodiment of the present application, where the updating module 3 includes: a location information obtaining module 31, configured to obtain updated location information in the protocol data; a to-be-updated data determining module 32, configured to determine to-be-updated data in the front-end data by using the update location information; and a data updating module 33, configured to update the data to be updated by using the protocol data, so as to obtain updated front-end data.
Fig. 8 is a schematic structural diagram of a third embodiment of a data updating apparatus provided in the present application, where the data updating apparatus is disposed in a backend server of a target applet, and the apparatus includes: a request receiving module 4, configured to receive an update data request sent by a front end of the target applet; a protocol data determining module 5, configured to determine corresponding protocol data according to the update data request, where the protocol data is update data that is issued to the backend server through a backend management platform, and the update data conforms to an interaction protocol between the front-end server and the backend server; and the feedback module 6 is configured to send the protocol data to the front end, so that the front end updates the data to be updated according to the protocol data.
Fig. 9 is a schematic structural diagram of a fourth embodiment of the data updating apparatus provided in the embodiment of the present application, where the update data request includes a keyword corresponding to the data to be updated, and the protocol data determining module 5 includes: a first matching module 51, configured to match the keyword with a key value pair stored in a remote dictionary service in the background server, where the key value pair is generated by update data sent by the background management platform to the remote dictionary service; a first determining module 52, configured to determine protocol data if a target key-value pair matching the keyword exists in the remote dictionary service, where the protocol data is a target value in the target key-value pair.
Further, the protocol data determining module 5 further includes: a second matching module 53, configured to match the keyword with cache data stored in a local cache in the background server if a target key value pair matching the keyword does not exist in the remote dictionary service, where the cache data is the update data that is called from a database of the backend server according to a historical update data request and stored in the local cache; a second determining module 54, configured to determine protocol data if target data matching the keyword exists in the cache data, where the protocol data is the target data.
Further, the protocol data determining module 5 further includes: a third matching module 55, configured to match the keyword with all data stored in the database of the backend server if target data matched with the keyword does not exist in the local cache, where all data is update data that is issued to the database by the backend management platform; and a third determining module 56, configured to determine protocol data, where the protocol data is data that matches the keyword in the total data.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. This electronic equipment sets up in the front end of target applet, includes: a memory 101 and a processor 102;
a memory 101 for storing a computer program;
the processor 102 is configured to execute the computer program stored in the memory to implement the flow data monitoring method in the above embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 101 may be separate or integrated with the processor 102.
When the memory 101 is a device independent of the processor 102, the electronic apparatus may further include:
a bus 103 for connecting the memory 101 and the processor 102.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. This electronic equipment sets up in the front end of target applet, includes: a memory 104 and a processor 105;
a memory 104 for storing a computer program;
the processor 105 is configured to execute the computer program stored in the memory to implement the traffic data monitoring method in the above embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 104 may be separate or integrated with the processor 105.
When the memory 104 is a device independent of the processor 105, the electronic apparatus may further include:
a bus 106 for connecting the memory 104 and the processor 105.
The electronic device provided in the embodiment of the present invention may be configured to execute any one of the training sample saving methods shown in the above embodiments, and the implementation manner and the technical effect of the electronic device are similar to each other.
An embodiment of the present invention further provides a readable storage medium, where a computer program is stored in the readable storage medium, and when at least one processor of a message sending apparatus executes the computer program, the message sending apparatus executes the training sample saving method described in any of the above embodiments.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program described above may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention.
Claims (22)
1. A data update method applied to a front end of a target applet, the method comprising:
sending a data updating request to a back-end server of the applet;
receiving protocol data fed back by the back-end server according to the update data request, wherein the protocol data is update data issued to the back-end server through a back-end management platform, and the update data conforms to an interaction protocol between the front-end server and the back-end server;
and updating the data to be updated in the front end by using the protocol data to obtain updated front end data.
2. The method of claim 1, wherein the update data request includes a key corresponding to the data to be updated; and the protocol data is fed back by a remote dictionary service in the back-end server according to the keywords, and the protocol data is a target value matched with the keywords in a key value pair generated by update data sent to the remote dictionary service by the background management platform.
3. The method of claim 2, wherein if there is no target value in the remote dictionary service that matches the keyword, the protocol data is fed back by a local cache in the back-end server according to the keyword, and the protocol data is the target data that matches the keyword in the update data that is called from a database of the back-end server according to a historical update data request and stored in the local cache.
4. The method according to claim 3, wherein if there is no data matching the update data request in the local cache, the database feeds back the protocol data according to the keyword, and the protocol data is data matching the keyword in the update data sent to the database by the background management platform.
5. The method according to any of claims 1-4, wherein said updating the data to be updated in the front-end with the protocol data, obtaining updated front-end data comprises:
acquiring updated position information in the protocol data;
determining data to be updated in the data of the front end by using the updated position information;
and updating the data to be updated by utilizing the protocol data to obtain updated front-end data.
6. A data update method applied to a backend server of a target applet, the method comprising:
receiving an update data request sent by the front end of the target applet;
determining corresponding protocol data according to the update data request, wherein the protocol data is update data which is issued to the background server through a background management platform, and the update data conforms to an interaction protocol between the front-end server and the back-end server;
and sending the protocol data to the front end so that the front end updates the data to be updated according to the protocol data.
7. The method of claim 6, wherein the update data request includes a key corresponding to the data to be updated, and wherein determining the corresponding protocol data according to the update data request includes:
matching the keywords with key values stored in a remote dictionary service in the background server, wherein the key values are generated by updating data sent to the remote dictionary service by the background management platform;
and if the remote dictionary service has a target key value pair matched with the keyword, determining protocol data, wherein the protocol data is a target value in the target key value pair.
8. The method of claim 7, wherein determining the corresponding protocol data according to the update data request further comprises:
if the target key value pair matched with the key word does not exist in the remote dictionary service, matching the key word with cache data stored in a local cache in the background server, wherein the cache data is the update data which is called from a database of the back-end server according to a historical update data request and is stored in the local cache;
and if target data matched with the keywords exist in the cache data, determining protocol data, wherein the protocol data is the target data.
9. The method of claim 8, wherein determining the corresponding protocol data according to the update data request further comprises:
if the target data matched with the keywords do not exist in the local cache, matching the keywords with all data stored in a database of the background server, wherein the all data are update data issued to the database by the background management platform;
and determining protocol data, wherein the protocol data is the data matched with the keyword in the whole data.
10. A data update apparatus provided at a front end of a target applet, comprising:
the request sending module is used for sending a data updating request to a back-end server of the target applet;
a protocol data receiving module, configured to receive protocol data fed back by the back-end server according to the update data request, where the protocol data is update data sent to the back-end server through a back-end management platform, and the update data conforms to an interaction protocol between the front-end server and the back-end server;
and the updating module is used for updating the data to be updated in the front end by using the protocol data to obtain updated front end data.
11. The apparatus of claim 10, wherein the update data request comprises a key corresponding to the data to be updated; and the protocol data is fed back by a remote dictionary service in the back-end server according to the keywords, and the protocol data is a target value matched with the keywords in a key value pair generated by update data sent to the remote dictionary service by the background management platform.
12. The apparatus of claim 11, wherein if there is no target value in the remote dictionary service that matches the keyword, the protocol data is fed back by a local cache in the back-end server according to the keyword, and the protocol data is a target data that matches the keyword in the update data that is called from a database of the back-end server according to a historical update data request and stored in the local cache.
13. The apparatus according to claim 12, wherein if there is no data matching the update data request in the local cache, the database feeds back the protocol data according to the keyword, and the protocol data is data matching the keyword in the update data sent to the database by the backend management platform.
14. The apparatus according to any of claims 10-13, wherein the update module comprises:
the position information acquisition module is used for acquiring updated position information in the protocol data;
a data to be updated determining module, configured to determine data to be updated in the data at the front end by using the update location information;
and the data updating module is used for updating the data to be updated by utilizing the protocol data to obtain updated front-end data.
15. A data update apparatus provided in a backend server of a target applet, the apparatus comprising:
the request receiving module is used for receiving an update data request sent by the front end of the target applet;
a protocol data determining module, configured to determine corresponding protocol data according to the update data request, where the protocol data is update data that is issued to the backend server through a backend management platform, and the update data conforms to an interaction protocol between the front-end server and the backend server;
and the feedback module is used for sending the protocol data to the front end so that the front end updates the data to be updated according to the protocol data.
16. The apparatus of claim 15, wherein the update data request comprises a key corresponding to the data to be updated, and wherein the protocol data determination module comprises:
the first matching module is used for matching the keywords with key value pairs stored in a remote dictionary service in the background server, and the key values are generated by update data sent to the remote dictionary service by the background management platform;
a first determining module, configured to determine protocol data if a target key value pair matching the keyword exists in the remote dictionary service, where the protocol data is a target value in the target key value pair.
17. The apparatus of claim 16, wherein the protocol data determination module further comprises:
a second matching module, configured to match the keyword with cache data stored in a local cache in the background server if a target key value pair matching the keyword does not exist in the remote dictionary service, where the cache data is the update data that is called from a database of the backend server according to a historical update data request and stored in the local cache;
and a second determining module, configured to determine protocol data if target data matched with the keyword exists in the cache data, where the protocol data is the target data.
18. The apparatus of claim 17, wherein the protocol data determination module further comprises:
a third matching module, configured to match the keyword with all data stored in a database of the backend server if target data matched with the keyword does not exist in the local cache, where all data is update data that is issued to the database by the backend management platform;
and a third determining module, configured to determine protocol data, where the protocol data is data that matches the keyword in all the data.
19. An electronic device, characterized in that the electronic device comprises:
a processor, and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the data update method of any of claims 1-5 via execution of the executable instructions.
20. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the data updating method of any one of claims 1 to 5.
21. An electronic device, characterized in that the electronic device comprises:
a processor, and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the data update method of any of claims 6-9 via execution of the executable instructions.
22. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the data updating method of any one of claims 6 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911328187.7A CN111143383B (en) | 2019-12-20 | 2019-12-20 | Data updating method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911328187.7A CN111143383B (en) | 2019-12-20 | 2019-12-20 | Data updating method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111143383A true CN111143383A (en) | 2020-05-12 |
CN111143383B CN111143383B (en) | 2023-07-14 |
Family
ID=70519215
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911328187.7A Active CN111143383B (en) | 2019-12-20 | 2019-12-20 | Data updating method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111143383B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112231616A (en) * | 2020-09-29 | 2021-01-15 | 北京五八信息技术有限公司 | Page data refreshing method and device, electronic equipment and storage medium |
CN112540783A (en) * | 2020-12-18 | 2021-03-23 | 航天信息软件技术有限公司 | Client upgrading method and device, storage medium and electronic equipment |
CN113553333A (en) * | 2021-07-20 | 2021-10-26 | 杭州网易云音乐科技有限公司 | Data operation method, device, equipment and medium of database |
CN118568114A (en) * | 2024-07-31 | 2024-08-30 | 济南浪潮数据技术有限公司 | Cache refreshing method, device, equipment, computer program product and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103164525A (en) * | 2013-03-26 | 2013-06-19 | 北界创想(北京)软件有限公司 | Method and device for WEB application release |
CN106897053A (en) * | 2016-07-08 | 2017-06-27 | 阿里巴巴集团控股有限公司 | A kind of code dissemination method and device |
US20180004830A1 (en) * | 2016-07-01 | 2018-01-04 | Sap Se | Customized expand data services supporting delta querying |
CN108255848A (en) * | 2016-12-29 | 2018-07-06 | 阿里巴巴集团控股有限公司 | The newer method of realization condition, equipment and system |
CN109377385A (en) * | 2018-09-03 | 2019-02-22 | 中国平安人寿保险股份有限公司 | Front end obtaining value method, device, computer readable storage medium and terminal |
CN109597818A (en) * | 2018-11-28 | 2019-04-09 | 优刻得科技股份有限公司 | Data-updating method, device, storage medium and equipment |
-
2019
- 2019-12-20 CN CN201911328187.7A patent/CN111143383B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103164525A (en) * | 2013-03-26 | 2013-06-19 | 北界创想(北京)软件有限公司 | Method and device for WEB application release |
US20180004830A1 (en) * | 2016-07-01 | 2018-01-04 | Sap Se | Customized expand data services supporting delta querying |
CN106897053A (en) * | 2016-07-08 | 2017-06-27 | 阿里巴巴集团控股有限公司 | A kind of code dissemination method and device |
CN108255848A (en) * | 2016-12-29 | 2018-07-06 | 阿里巴巴集团控股有限公司 | The newer method of realization condition, equipment and system |
CN109377385A (en) * | 2018-09-03 | 2019-02-22 | 中国平安人寿保险股份有限公司 | Front end obtaining value method, device, computer readable storage medium and terminal |
CN109597818A (en) * | 2018-11-28 | 2019-04-09 | 优刻得科技股份有限公司 | Data-updating method, device, storage medium and equipment |
Non-Patent Citations (1)
Title |
---|
范毅华,张冲,郭瑞: "基于微信小程序的蓝领劳务招聘平台设计" * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112231616A (en) * | 2020-09-29 | 2021-01-15 | 北京五八信息技术有限公司 | Page data refreshing method and device, electronic equipment and storage medium |
CN112540783A (en) * | 2020-12-18 | 2021-03-23 | 航天信息软件技术有限公司 | Client upgrading method and device, storage medium and electronic equipment |
CN112540783B (en) * | 2020-12-18 | 2024-05-24 | 航天信息软件技术有限公司 | Client upgrading method and device, storage medium and electronic equipment |
CN113553333A (en) * | 2021-07-20 | 2021-10-26 | 杭州网易云音乐科技有限公司 | Data operation method, device, equipment and medium of database |
CN113553333B (en) * | 2021-07-20 | 2024-06-04 | 杭州网易云音乐科技有限公司 | Data operation method, device, equipment and medium of database |
CN118568114A (en) * | 2024-07-31 | 2024-08-30 | 济南浪潮数据技术有限公司 | Cache refreshing method, device, equipment, computer program product and storage medium |
CN118568114B (en) * | 2024-07-31 | 2024-10-11 | 济南浪潮数据技术有限公司 | Cache refreshing method, device, equipment, computer program product and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111143383B (en) | 2023-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111143383B (en) | Data updating method and device, electronic equipment and storage medium | |
US7937432B2 (en) | State transition management according to a workflow management policy | |
US11232071B2 (en) | Regressable differential data structures | |
CN108647357B (en) | Data query method and device | |
CN111930489B (en) | Task scheduling method, device, equipment and storage medium | |
CN110874739A (en) | Distributed computing and storage network implementing high integrity, high bandwidth, low latency, secure processing | |
KR20200104789A (en) | Method, apparatus, device and medium for storing and querying data | |
CN110737682A (en) | cache operation method, device, storage medium and electronic equipment | |
US20230014427A1 (en) | Global secondary index method for distributed database, electronic device and storage medium | |
US20080127219A1 (en) | Enhancement of assured event delivery mechanism to eliminate external xa store requirement | |
CN115016978A (en) | Data verification method and device, computer storage medium and electronic equipment | |
CN109858285B (en) | Block chain data processing method, device, equipment and medium | |
CN111125156A (en) | Data query method and device and electronic equipment | |
CN113127906A (en) | Unified authority management platform, method and storage medium based on C/S architecture | |
US10621163B2 (en) | Tracking and reusing function results | |
KR20170130911A (en) | Method for Performing Real-Time Changed Data Publish Service of DDS-DBMS Integration Tool | |
US20220198301A1 (en) | Method and apparatus for update processing of question answering system | |
CN112800033B (en) | Data operation request processing method and device, computer equipment and storage medium | |
CN114707961A (en) | Pending task execution method, device, equipment, medium and program product based on approval flow configuration | |
CN112801613A (en) | Method, device, equipment and medium for realizing business process | |
US11949774B2 (en) | Securing hash chains via hybrid consensus | |
US20240249067A1 (en) | Template Driven Architecture | |
US20240248687A1 (en) | Template Driven Architecture | |
CN118568096A (en) | Bank business parameter storage method and device and related products | |
CN115293605A (en) | Data processing method, device, equipment and medium |
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 |