CN111143383B - Data updating method and device, electronic equipment and storage medium - Google Patents

Data updating method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111143383B
CN111143383B CN201911328187.7A CN201911328187A CN111143383B CN 111143383 B CN111143383 B CN 111143383B CN 201911328187 A CN201911328187 A CN 201911328187A CN 111143383 B CN111143383 B CN 111143383B
Authority
CN
China
Prior art keywords
data
protocol
updating
update
protocol data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911328187.7A
Other languages
Chinese (zh)
Other versions
CN111143383A (en
Inventor
顾鑫
赵世超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201911328187.7A priority Critical patent/CN111143383B/en
Publication of CN111143383A publication Critical patent/CN111143383A/en
Application granted granted Critical
Publication of CN111143383B publication Critical patent/CN111143383B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy 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 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, and after the back end server receives the updating data request, corresponding protocol data is determined according to the updating data request, wherein 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 updated front end data for a user to use. Therefore, according to the data updating method provided by the application, the updating data can be written in the back-end server only, and the front-end and the back-end server can be interacted to update by utilizing the updating data, so that the data updating of the front-end is completed, the condition that the data updated in the front-end is required to be checked by a WeChat platform or a third-party platform is avoided, and the data updating efficiency is improved.

Description

Data updating method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a data updating method, a data updating device, an electronic device, and a storage medium.
Background
The applet is an application which can be used without downloading and installing, thereby being convenient for users to use and having wide use scenes. The applet needs to be developed by depending on the micro-letter ecological environment, and the applet contains a large number of business functions for meeting the demands of users, so that PM (Project Management ) can continuously provide updating demands for developers of the applet according to the demands generated by users.
The developer receives the update instruction of the PM and needs to continuously adjust the applet. Specifically, as shown in fig. 1, development and updating of the applet generally needs to be completed by the front end and the back end servers corresponding to the applet at the same time, that is, the front end and the back end servers modify data corresponding to requirements to obtain modified data, and then the front end needs to send the modified data corresponding to the front end to the WeChat platform, or the third party auditing platform performs data auditing. After the data audit is passed, the applet can formally use the modified data. At this time, when the client uses the applet, the user may use the updated front-end page and retrieve data corresponding to the requirement from the back-end server.
Therefore, the existing modification process of the data of the applet needs to modify the data in the front end and the back end servers of the applet at the same time, and the data corresponding to the front end needs to be subjected to data auditing by a WeChat platform or a third party auditing platform. Larger development resources are required to be consumed, a great 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 device, electronic equipment and a storage medium, which are used for solving the problem of low data updating efficiency of the existing applet.
In a first aspect, an embodiment of the present application provides a data updating method applied to a front end of a target applet, where the method includes:
sending an update data 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 accords with 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 utilizing 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 the 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 the update data issued 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 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 backend server according to the keyword, and the protocol data is target data which is called from a database of the backend server according to a historical update data request and is stored in update data in the local cache and matched with the keyword.
In a possible implementation manner of the first aspect of the embodiment of the present invention, if there is no data matching the update data request in the local cache, the protocol data is fed back by the database according to the key word, where the protocol data is data matching the key word in the update data sent to the database by the background management platform.
In a possible implementation manner of the first aspect of the embodiment of the present invention, the updating the data to be updated in the front end by using the protocol data, 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 utilizing 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, the method 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 issued to the background server through a background management platform, and the update data accords with an interaction protocol between the front end 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 determining the corresponding protocol data according to the update data request includes:
Matching the key words with key value pairs stored in a remote dictionary service in the background server, wherein the key values are generated by updating data issued to the remote dictionary service by the background management platform;
and if the 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.
In a possible implementation manner of the second aspect of the embodiment of the present invention, the determining corresponding protocol data according to the update data request 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 the target data matched with the key words 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 corresponding protocol data according to the update data request further includes:
If the target data matched with the keyword does not exist in the local cache, matching the keyword with all data stored in a database of the background server, wherein all data are updated data issued to the database by the background management platform;
and determining protocol data, wherein the protocol data is data matched with the keywords in all the data.
In a third aspect, an embodiment of the present application provides a data updating apparatus, provided at a front end of a target applet, including:
the request sending module is used for sending an update data request to the back-end server of the target applet;
the protocol data receiving module is used for receiving the protocol data fed back by the back-end server according to the update data request, wherein the protocol data is the update data which is issued to the back-end server through a back-end management platform, and the update data accords with 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 utilizing 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 the 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 the update data issued 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 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 backend server according to the keyword, where the protocol data is target data that is called from a database of the backend server according to a historical update data request and is stored in update data in the local cache and matches with the keyword.
In one possible implementation manner of the third aspect of the embodiment of the present invention, if there is no data matching the update data request in the local cache, the protocol data is fed back by the database according to the key word, where the protocol data is data matching the key word 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;
the data to be updated determining module is used for determining data to be updated in the data of the front end by utilizing the updated position 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, provided in a backend server of a target applet, including:
the request receiving module is used for receiving an update data request sent by the front end of the target applet;
the protocol data determining module is used for determining corresponding protocol data according to the update data request, wherein the protocol data is update data issued to the background server through a background management platform, and the update data accords with an interaction protocol between the front end and the back end server;
and the feedback module is used for sending the protocol data to the front end so that the front end can update 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 key words with key value pairs stored in a remote dictionary service in the background server, and the key values are generated by updating data issued to the remote dictionary service by the background management platform;
And the first determining module is used for determining protocol data if the target key value pair matched with the keyword exists in the remote dictionary service, wherein 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:
the second matching module is used for matching the key word with cache data stored in a local cache in the background server if the target key value pair matched with the key word does not exist in the remote dictionary service, 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 the second determining module is used for determining protocol data if target data matched with the key words exists in the cache data, wherein 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:
the third matching module is used for matching the keyword with all data stored in a database of the background server if target data matched with the keyword does not exist in the local cache, wherein all data are updated data issued to the database by the background management platform;
And the third determining module is used for determining protocol data, wherein the protocol data is data matched with the keywords 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, including:
processor and method for controlling the same
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, applied to a front end corresponding to a target applet, on which a computer program is stored, where the computer program when executed by a processor implements 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, including:
processor and method for controlling the same
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, configured to apply to a backend server corresponding to a target applet, where a computer program is stored, where the computer program when executed by a processor implements the data updating method.
As can be seen from the above technology, in the data updating method, the front end sends a data updating request to the back end server, and the back end server determines corresponding protocol data according to the data updating request after receiving the data updating request, wherein 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 using the protocol data to obtain updated front end data for users. Therefore, according to the data updating method provided by the application, the updating data can be written in the back-end server only, and the front-end and the back-end server can be interacted to update by utilizing the updating data, so that the data updating of the front-end is completed, the condition that the data updated in the front-end is required to be checked by a WeChat platform or a third-party platform is avoided, and the data updating efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are needed in the embodiments will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic 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 update method according to an embodiment of the present application;
FIG. 3 is a schematic 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 a background server to feed back protocol data 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 embodiment of a data updating apparatus according to the embodiment of the present application;
fig. 7 is a schematic structural diagram of a second embodiment of a data updating apparatus according to the embodiment of the present application;
fig. 8 is a schematic structural diagram of a third embodiment of a data updating apparatus according to the embodiment of the present application;
fig. 9 is a schematic structural diagram of a fourth embodiment of a data updating apparatus according to the 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 following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the 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:
s1, sending an update data request to a back-end server of the applet.
The front end sends an update data request to a back end server of the applet, wherein the update data request can be a request initiated by the front end to the back end server periodically according to a preset request time period; or may be an update data request sent when a user generates a need 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., in the background update, etc.
S2, receiving an update data request sent by the front end of the target applet.
The back-end server receives the update data request from the front-end of the target applet.
S3, corresponding protocol data is determined according to the update data request, wherein the protocol data is update data which is issued to the background server through the background management platform, and the update data accords with an interaction protocol between the front end and the back end server.
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 issued to a background server through a background management platform, as shown in fig. 3, and is a schematic structural diagram of a system where an applet provided in an embodiment of the present application is located, where modification to 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 then issues the update data to the background server through the background management platform to replace corresponding data, or adds the update data to a designated position of the background server, and then directly deletes data corresponding to some failure functions from the background server through the background management platform. For example, according to the requirement of PM, modifying the data of A function in the background server, writing the modified update data A 'into the background management platform, and then issuing the update data A' to the background server by the background management platform to replace the data A in the background server; or adding a function B into the background server according to the PM requirement, writing the added update data B into a background management platform, and then issuing the update data B to a designated position of the background server by the background management platform; or, according to the PM requirement, canceling the C function in the background server, and then sending a data deleting instruction to the background server through the background management platform to delete the data C corresponding to the C function.
The update data has a special protocol data format, usually a JSON format is adopted, and the following protocol can interact with the front end, namely the front end can directly utilize the protocol data and respond to the update demand according to the protocol data, so that the feasibility of updating the front end data is met by writing the update data into the back end. It should be noted that, the data mentioned in this application mainly refers to codes, and of course, other characters, instructions, etc. that can implement the applet function may also be included.
Specifically, as shown in fig. 4, a flowchart of a method for feeding back protocol data by a background server according to an embodiment of the present application is provided, where the method includes:
s301, matching the key words with key value pairs stored in a remote dictionary service in the background server, wherein the key values are generated by updating data issued 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 update data request sent by the front end contains a keyword corresponding to the data to be updated, wherein the keyword can be an identifier representing the data to be updated, a field representing the data to be updated, a function name corresponding to the data to be updated, and the like. Typically, keywords are represented in the code by keys.
There are three databases of stored data in the background server, namely a remote dictionary service (Remote DictionaryServer, redis), a local cache and a database. The data in Redis usually exists in the form of key-value pairs, namely, key-value, and it can be seen that there is a one-to-one mapping relationship between the key and the target value, namely, the value can be determined according to the key.
Since the Redis has the advantage of fast data reading and writing speed, in order to increase the speed of acquiring protocol data, the protocol data may be acquired from the Redis first. The developer writes the updated data in the background management platform, the background management platform stores the updated data in the Redis in the form of key value pairs, at this time, the key words corresponding to the data to be updated sent by the front end are matched with the key words in the key value pairs, if the key words are matched with the key words, the target values matched with the key words exist in the target key value pairs, and at this time, 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 accordingly, the front end receives the target values matched with the keywords.
Further, since Redis itself has timeliness, i.e., has corresponding validity times for data stored in Redis, the validity times can be set according to different policies, for example, corresponding protocol data will only appear in Redis when used for first using the target applet; or, only when the target applet is first used within a preset time period, the corresponding protocol data will appear in the dis, etc. It should be noted that, the Redis includes not only updated data, but also historical data of normal operation of the rest of the supporting applet, and the historical data is usually obtained and stored from a local cache or a database of the background server according to a preset storage policy.
With continued reference to fig. 4, the method further includes:
s303, if a 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 key words exist in the cache data, determining protocol data, wherein the protocol data is the target data.
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 in this case, 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. There is still a need to match key with cached data stored in the local cache. The cache data is called from a database of the back-end server according to the historical update data request, and the cache data is stored in a local cache. For example, if other users have 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 update data called from the database is already stored in the local cache in the previous update operation, the update data can be directly obtained from the local cache without re-reading and writing the database, thereby effectively improving the data reading and writing efficiency and maintaining the security of the database. At this time, the cache data matched with the key are target data, and the target data are 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 the front end receives the target data matched with the keywords correspondingly.
With continued reference to fig. 4, the method further includes:
s305, if target data matched with the key words does not exist in the local cache, matching the key words with all data stored in a database of the background server, wherein all data are updated data issued to the database by the background management platform;
s306, determining protocol data, wherein the protocol data is data matched with the keywords in all the data.
If there is no data in both Redis and local cache that can match the key, then the protocol data needs to be looked up from the database of the background server. The background management platform directly transmits the updated data written by the developer to the database, so that the data which can be matched with the key words can be searched from all 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 the front end receives the data matched with the keywords correspondingly.
And S4, sending the protocol data to the front end so that the front end can update the data to be updated according to the protocol data.
The background server accurately searches 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 the 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 accords with an interaction protocol between the front-end server and the back-end server.
The front end receives the protocol data sent by the back end server, and according to the above knowledge, the protocol data is one of the target value matched with the keyword in the key value pair generated by the update data issued to the remote dictionary service by the back end management platform, the target data matched with the keyword in the update data which is called from the database of the back end server according to the history update data request and stored in the local cache, and the data matched with the keyword in the update data issued to the database by the back end management platform, and specifically under what condition what protocol data is received is given by the above description, which is not repeated here.
And S6, updating the data to be updated in the front end by utilizing 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, specifically, referring to fig. 5, a flowchart of a method for updating the data to be updated according to an embodiment of the present application may be provided, where the method includes:
s601, acquiring updated position information in the protocol data;
s602, determining data to be updated in the data of the front end by utilizing the updated position information;
and S603, updating the data to be updated by utilizing the protocol data to obtain updated front-end data.
The protocol data can carry the update position information corresponding to the data to be updated, so that after the front end receives the protocol data fed back by the background server, the data to be updated corresponding to different protocol data can be accurately distinguished. Furthermore, in order to facilitate the front end to update the data to be updated quickly, the protocol data can also carry update position information positioned to the code line level, so that after the front end receives the protocol data fed back by the background server, the front end can more quickly position to the code line to be updated, thereby updating the data to be updated by using the protocol data.
As shown in fig. 3, a schematic diagram of a data updating method provided in the embodiment of the present application is shown, and compared with fig. 1, it is obvious that the present application may write update data in a back-end server only, and utilize the update data to enable a front-end to interact with the back-end server to update, so as to complete the data update of the front-end, thereby avoiding the situation that the data updated in the front-end still needs to be checked by a micro-communication platform or a third party platform, and further improving the efficiency of data update.
Fig. 6 is a schematic structural diagram of a first embodiment of a data updating apparatus provided in the present application, which is disposed at a front end of a target applet, and includes: the request sending module 1 is used for sending an update data request to a back-end server of the target applet; the protocol data receiving module 2 is configured to receive protocol data fed back by the backend server according to the update data request, where the protocol data is update data sent to the backend server through a backend management platform, and the update data accords with an interaction protocol between the front end and the backend server; and the updating module 3 is used for updating the data to be updated in the front end by utilizing the protocol data to obtain updated front end data.
Further, the update data request includes a keyword corresponding to the data to be updated; and the protocol data is fed back by the 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 the update data issued 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 the local cache in the back-end server according to the keyword, and the protocol data is called from the database of the back-end server according to a historical update data request and is stored in the update data in the local cache, wherein the target data is matched with the keyword.
Further, if the data matched with the update data request does not exist in the local cache, the protocol data is fed back by the database according to the keywords, and the protocol data is the data matched with the keywords in the update data issued 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 from the front-end data using the updated location information; and the data updating module 33 is 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 on a back-end server of a target applet, and the apparatus includes: a request receiving module 4, configured to receive an update data request sent by the front end of the target applet; the protocol data determining module 5 is configured to determine corresponding protocol data according to the update data request, where the protocol data is update data sent to the backend server through a backend management platform, and the update data accords with an interaction protocol between the front end and the backend server; and the feedback module 6 is used for sending the protocol data to the front end so that the front end can update the data to be updated according to the protocol data.
Fig. 9 is a schematic structural diagram of a fourth embodiment of a 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 key with a key value pair stored in a remote dictionary service in the background server, where the key value is generated by update data issued by the background management platform to the remote dictionary service; a first determining module 52, configured to determine, if a target key value pair matching the keyword exists in the remote dictionary service, protocol data, where the protocol data is a target value in the target key value pair.
Further, the protocol data determination module 5 further includes: a second matching module 53, configured to match, if a target key value pair that matches the key word does not exist in the remote dictionary service, the key word with cache data stored in a local cache in the backend server, where the cache data is update data that is called from a database of the backend server according to a history update data request and is stored in the local cache; and a second determining module 54, configured to determine, if target data matching the keyword exists in the cache data, protocol data, where the protocol data is the target data.
Further, the protocol data determination module 5 further includes: a third matching module 55, configured to match, if target data matched with the keyword does not exist in the local cache, the keyword with all data stored in a database of the background server, where all data is update data sent to the database by the background 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. The electronic device is arranged at the front end of the target applet, and comprises: a memory 101 and a processor 102;
a memory 101 for storing a computer program;
a processor 102 for executing a computer program stored in a memory to implement the flow data monitoring method in the above embodiment. Reference may be made in particular to the relevant description of the embodiments of the method described above.
Alternatively, the memory 101 may be separate or integrated with the processor 102.
When the memory 101 is a device separate from the processor 102, the electronic device may further include:
a bus 103 for connecting said memory 101 and processor 102.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. The electronic device is arranged at the front end of the target applet, and comprises: a memory 104 and a processor 105;
a memory 104 for storing a computer program;
a processor 105 for executing a computer program stored in the memory to implement the flow data monitoring method in the above embodiment. Reference may be made in particular to the relevant description of the embodiments of the method described above.
Alternatively, the memory 104 may be separate or integrated with the processor 105.
When the memory 104 is a device separate from the processor 105, the electronic device 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 used to execute the training sample storage method shown in any one of the foregoing embodiments, and its implementation manner and technical effects are similar, and the embodiments of the present invention are not repeated here.
The embodiment of the invention also provides a readable storage medium, in which a computer program is stored, and when at least one processor of the message sending device executes the computer program, the message sending device executes the training sample saving method according to any one of the above embodiments.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer-readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that modifications may be made to the technical solutions described in the foregoing embodiments, or equivalents may be substituted for some or all of the technical features thereof, without departing from the spirit of the technical solutions of the embodiments of the invention.

Claims (18)

1. A method of data updating, for application to a front end of a target applet, the method comprising:
sending an update data 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 accords with an interaction protocol between the front-end server and the back-end server;
updating the data to be updated in the front end by utilizing the protocol data to obtain updated front end data;
wherein the update data request includes a keyword corresponding to the data to be updated; 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 updating data issued to the remote dictionary service by the background management platform; the update data has a special protocol data format; the front end responds to the updating requirement rapidly according to the protocol data, updating data is written in through the back end, the front end interacts with the back end server by utilizing the updating data, and the data updating of the front end is completed.
2. The method of claim 1, wherein if there is no target value matching the key in the remote dictionary service, the protocol data is fed back by a local cache in the back-end server according to the key, and the protocol data is called from a database of the back-end server according to a history update data request and stored in the update data of the local cache as the target data matching the key.
3. The method of claim 2, wherein if there is no data in the local cache that matches the update data request, the protocol data is fed back by the database according to the key, and the protocol data is data that matches the key in the update data issued to the database by the background management platform.
4. A method according to any one of claims 1-3, wherein updating the data to be updated in the front-end with the protocol data to obtain 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 utilizing the updated position information;
And updating the data to be updated by utilizing the protocol data to obtain updated front-end data.
5. A method of data updating, applied to a back-end 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 issued to a background server through a background management platform, and the update data accords with an interaction protocol between the front end and the back end server;
transmitting the protocol data to the front end so that the front end can update the data to be updated by using the protocol data;
wherein the update data request includes a keyword corresponding to the data to be updated, and the determining corresponding protocol data according to the update data request includes:
matching the key words with key value pairs stored in a remote dictionary service in the background server, wherein the key values are generated by updating data issued to the remote dictionary service by the background management platform;
if the target key value pair matched with the key words exists in the remote dictionary service, determining protocol data, wherein the protocol data is a target value in the target key value pair;
The update data has a special protocol data format; the front end responds to the updating requirement rapidly according to the protocol data, updating data is written in through the back end, the front end interacts with the back end server by utilizing the updating data, and the data updating of the front end is completed.
6. The method of claim 5, wherein determining the corresponding protocol data from 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 the target data matched with the key words exist in the cache data, determining protocol data, wherein the protocol data is the target data.
7. The method of claim 6, wherein said determining the corresponding protocol data from the update data request further comprises:
if the target data matched with the keyword does not exist in the local cache, matching the keyword with all data stored in a database of the background server, wherein all data are updated data issued to the database by the background management platform;
And determining protocol data, wherein the protocol data is data matched with the keywords in all the data.
8. A data updating apparatus provided at a front end of a target applet, comprising:
the request sending module is used for sending an update data request to the back-end server of the target applet;
the protocol data receiving module is used for receiving the protocol data fed back by the back-end server according to the update data request, wherein the protocol data is the update data which is issued to the back-end server through a back-end management platform, and the update data accords with an interaction protocol between the front-end server and the back-end server;
the updating module is used for updating the data to be updated in the front end by utilizing the protocol data to obtain updated front end data;
wherein the update data request includes a keyword corresponding to the data to be updated; 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 updating data issued to the remote dictionary service by the background management platform;
The update data has a special protocol data format; the front end responds to the updating requirement rapidly according to the protocol data, updating data is written in through the back end, the front end interacts with the back end server by utilizing the updating data, and the data updating of the front end is completed.
9. The apparatus of claim 8, wherein if there is no target value matching the key in the remote dictionary service, the protocol data is fed back by a local cache in the back-end server according to the key, the protocol data being target data called from a database of the back-end server according to a history update data request and stored in update data in the local cache matching the key.
10. The apparatus of claim 9, wherein if there is no data in the local cache that matches the update data request, the protocol data is fed back by the database according to the key, the protocol data being data that matches the key in the update data issued by the background management platform to the database.
11. The apparatus according to any one of claims 8-10, wherein the update module comprises:
The position information acquisition module is used for acquiring updated position information in the protocol data;
the data to be updated determining module is used for determining data to be updated in the data of the front end by utilizing the updated position 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.
12. A data updating apparatus provided in a back-end 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;
the protocol data determining module is used for determining corresponding protocol data according to the update data request, wherein the protocol data is update data issued to a background server through a background management platform, and the update data accords with an interaction protocol between the front end and the back end server;
the feedback module is used for sending the protocol data to the front end so that the front end can update the data to be updated by utilizing the protocol data;
wherein 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 key words with key value pairs stored in a remote dictionary service in the background server, and the key values are generated by updating data issued to the remote dictionary service by the background management platform;
a first determining module, configured to determine, if a target key value pair matched with the keyword exists in the remote dictionary service, protocol data, where the protocol data is a target value in the target key value pair;
the update data has a special protocol data format; the front end responds to the updating requirement rapidly according to the protocol data, updating data is written in through the back end, the front end interacts with the back end server by utilizing the updating data, and the data updating of the front end is completed.
13. The apparatus of claim 12, wherein the protocol data determination module further comprises:
the second matching module is used for matching the key word with cache data stored in a local cache in the background server if the target key value pair matched with the key word does not exist in the remote dictionary service, 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 the second determining module is used for determining protocol data if target data matched with the key words exists in the cache data, wherein the protocol data is the target data.
14. The apparatus of claim 13, wherein the protocol data determination module further comprises:
the third matching module is used for matching the keyword with all data stored in a database of the background server if target data matched with the keyword does not exist in the local cache, wherein all data are updated data issued to the database by the background management platform;
and the third determining module is used for determining protocol data, wherein the protocol data is data matched with the keywords in all the data.
15. An electronic device, the electronic device comprising:
processor and method for controlling the same
A memory for storing executable instructions of the processor;
wherein the processor is configured to perform the data updating method of any of claims 1-4 via execution of the executable instructions.
16. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the data updating method of any of claims 1-4.
17. An electronic device, the electronic device comprising:
processor and method for controlling the same
A memory for storing executable instructions of the processor;
wherein the processor is configured to perform the data updating method of any of claims 5-7 via execution of the executable instructions.
18. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the data updating method of any of claims 5-7.
CN201911328187.7A 2019-12-20 2019-12-20 Data updating method and device, electronic equipment and storage medium Active CN111143383B (en)

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 CN111143383A (en) 2020-05-12
CN111143383B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
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
CN112540783B (en) * 2020-12-18 2024-05-24 航天信息软件技术有限公司 Client upgrading method and device, storage medium and electronic equipment
CN113553333B (en) * 2021-07-20 2024-06-04 杭州网易云音乐科技有限公司 Data operation method, device, equipment and medium of database

Citations (5)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10938797B2 (en) * 2016-07-01 2021-03-02 Sap Se Customized expand data services supporting delta querying

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
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)

* Cited by examiner, † Cited by third party
Title
范毅华,张冲,郭瑞.基于微信小程序的蓝领劳务招聘平台设计.《无线互联网科技》.2019,全文. *

Also Published As

Publication number Publication date
CN111143383A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN111143383B (en) Data updating method and device, electronic equipment and storage medium
US8458727B2 (en) Asynchronous client to server updates
US9690822B2 (en) System and method for metadata level validation of custom setup objects
WO2020010702A1 (en) Log search method and system, computer device, and storage medium
US7676453B2 (en) Partial query caching
US20040167975A1 (en) Method, system, and program for managing devices in a network
US10417248B2 (en) Field extension in database system
CN110134705A (en) A kind of data query method, cache server and terminal
US10824544B1 (en) Generating test data as a service for use in testing software during software development
CN111930489B (en) Task scheduling method, device, equipment and storage medium
US20240031422A1 (en) Method and system for enforcing governance across multiple content repositories using a content broker
CN115016978A (en) Data verification method and device, computer storage medium and electronic equipment
US20210149870A1 (en) Method, apparatus, and computer program product for improved tracking of state data
US10474659B2 (en) Large scale network system upgrade
CN113127906A (en) Unified authority management platform, method and storage medium based on C/S architecture
US10621163B2 (en) Tracking and reusing function results
US11687593B2 (en) Query generation using natural language input
US20230195792A1 (en) Database management methods and associated apparatus
US11341022B2 (en) Runtime performance introspection
CN114707961A (en) Pending task execution method, device, equipment, medium and program product based on approval flow configuration
US11934879B1 (en) Data processing using application sequence identifiers in cloud environments
US11949774B2 (en) Securing hash chains via hybrid consensus
CN112905153B (en) Software parallel construction method and device for software defined satellite
US20230237032A1 (en) On-demand ingestion of records from a staging storage into a primary database
US20130290830A1 (en) System and method for managing a viewstate of a web application

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