CN115604345B - Development method of application program and computer readable storage medium - Google Patents

Development method of application program and computer readable storage medium Download PDF

Info

Publication number
CN115604345B
CN115604345B CN202211199201.XA CN202211199201A CN115604345B CN 115604345 B CN115604345 B CN 115604345B CN 202211199201 A CN202211199201 A CN 202211199201A CN 115604345 B CN115604345 B CN 115604345B
Authority
CN
China
Prior art keywords
shared data
edge server
version information
updated
operation request
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
CN202211199201.XA
Other languages
Chinese (zh)
Other versions
CN115604345A (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.)
Beijing Wellintech Co Ltd
Original Assignee
Beijing Wellintech 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 Beijing Wellintech Co Ltd filed Critical Beijing Wellintech Co Ltd
Priority to CN202211199201.XA priority Critical patent/CN115604345B/en
Publication of CN115604345A publication Critical patent/CN115604345A/en
Application granted granted Critical
Publication of CN115604345B publication Critical patent/CN115604345B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Abstract

The application relates to a development method of an application program and a computer readable storage medium, and relates to the technical field of software. In the application, the electronic equipment sends a first operation request to a first edge server. If the first edge server stores the shared data, the first edge server executes a target operation event on the shared data according to the first operation request, and generates updated shared data. And if the first edge server does not store the shared data, the first edge server sends a second operation request to the cloud server. And the cloud server executes a target operation event on the shared data according to the second operation request, generates updated shared data and sends the updated shared data to the first edge server. The first edge server sends the updated shared data to the electronic device. The application can realize the scene of managing the service by the multi-layer organization through the cloud server, the edge server and the electronic equipment. Therefore, the interaction efficiency between the servers is improved when the application program is developed.

Description

Development method of application program and computer readable storage medium
Technical Field
The present application relates to the field of software technologies, and in particular, to a development method of an application program and a computer readable storage medium.
Background
With the development of network technology, the information exchange among users in different areas is gradually increased, and the data transmission among users is also gradually increased. The data sharing can realize data transmission among users, and can enable users using different terminals to acquire and operate the data of other people in different areas.
Currently, data sharing may store data through a server and may send the data to a user terminal. After the user terminal receives the data, the user can operate the data. For example, for a multi-person real-time collaboration cloud document, multiple users may obtain the document from a server and modify the document. The server then integrates and stores the modified plurality of documents. However, the current method of managing data only by a server is a flattened management method, and cannot support a management service scenario of a multi-layer organization.
Disclosure of Invention
The application provides a development method of an application program and a computer readable storage medium, which can support a management service scene of a multi-layer organization.
The technical scheme of the application is as follows:
in a first aspect, the present application provides a method for developing an application program, where a first edge server performs data transmission with a cloud server and an electronic device respectively. The method comprises the following steps:
The electronic device sends a first operation request to the first edge server, wherein the first operation request is used for indicating to execute a target operation event on the shared data. If the first edge server stores the shared data, the first edge server executes a target operation event on the shared data according to the first operation request, and generates updated shared data. And/or if the first edge server does not store the shared data, the first edge server sends a second operation request to the cloud server, wherein the second operation request is used for indicating to execute the target operation event on the shared data. And the cloud server executes a target operation event on the shared data according to the second operation request, generates updated shared data and sends the updated shared data to the first edge server. And then, the first edge server sends updated shared data to the electronic equipment, wherein the updated shared data is updated data of the first edge server or updated data of the cloud server. The updated shared data is the shared data after the target operation event is executed.
In some implementations, the method for developing an application program further includes: the first edge server acquires first version information, wherein the first version information is version information of shared data which is not updated in the first edge server. The first edge server updates the first version information and determines second version information, wherein the second version information is the version information of the updated shared data. The first edge server sends the second version information to the electronic device. The electronic device updates version information of the shared data operated therein based on the second version information.
In some implementations, before the first edge server updates the first version information and determines the second version information, the method for developing the application program further includes: the electronic device sends third version information to the first edge server, wherein the third version information is version information of shared data operated in the electronic device. The method for updating the first version information and determining the second version information by the first edge server further comprises the following steps: if the third version information is the same as the first version information, the first edge server updates the first version information and determines the second version information. And/or if the third version information is different from the first version information, the first edge server sends the first version information to the electronic equipment.
In some implementations, the method for developing an application program further includes: the electronic device sends a third operation request to the first edge server, wherein the third operation request is used for indicating to send updated shared data to the cloud server. And the first edge server responds to the third operation request, and sends the updated shared data to the cloud server and/or deletes the updated shared data.
In some implementations, the method for developing an application program further includes: the electronic equipment sends a fourth operation request to the first edge server, the fourth operation request is used for indicating to send updated shared data to the second edge server, and the second edge server and the cloud server conduct data transmission. And if the first edge server stores the updated shared data, the first edge server responds to the fourth operation request and sends the updated shared data to the second edge server through the cloud server. And/or if the first edge server does not store the updated shared data, the first edge server sends a fifth operation request to the cloud server, wherein the fifth operation request is used for indicating to send the updated shared data to the second edge server. And the cloud server responds to the fifth operation request and sends the updated shared data to the second edge server.
In a second aspect, the present application provides a method for developing an application program, where the method is applied to a first edge server, and the first edge server performs data transmission with a cloud server and an electronic device respectively. The method comprises the following steps:
a first operation request is received from the electronic device, the first operation request being for indicating to perform a target operation event on the shared data. If the first edge server stores the shared data, executing a target operation event on the shared data according to the first operation request, and generating updated shared data. And/or if the first edge server does not store the shared data, sending a second operation request to the cloud server, wherein the second operation request is used for indicating to execute a target operation event on the shared data, so that the cloud server executes the target operation event on the shared data according to the second operation request after receiving the second operation request, and updated shared data is generated. And receiving updated shared data from the cloud server. And sending the updated shared data to the electronic equipment, wherein the updated shared data is updated data of the first edge server or updated data of the cloud server. The updated shared data is the shared data after the target operation event is executed.
In some implementations, the method for developing an application program further includes: and acquiring first version information, wherein the first version information is version information of the shared data which is not updated in the first edge server. Updating the first version information to determine second version information, wherein the second version information is updated version information of the shared data. And transmitting the second version information to the electronic device so that the electronic device updates the version information of the shared data operated therein based on the received second version information.
In some implementations, before the first edge server updates the first version information and determines the second version information, the method for developing the application program further includes: third version information is received from the electronic device, the third version information being version information of shared data operating in the electronic device. The method for updating the first version information and determining the second version information comprises the following steps: if the third version information is the same as the first version information, the first version information is updated, and the second version information is determined. And/or if the third version information is different from the first version information, the first version information is sent to the electronic equipment.
In some implementations, the method for developing an application program further includes: and receiving a third operation request from the electronic equipment, wherein the third operation request is used for indicating to send the updated shared data to the cloud server. And responding to the third operation request, sending the updated shared data to the cloud server, and/or deleting the updated shared data.
In some implementations, the method for developing an application program further includes: and receiving a fourth operation request from the electronic equipment, wherein the fourth operation request is used for indicating to send updated shared data to a second edge server, and the second edge server performs data transmission with the cloud server. And if the updated shared data is stored in the first edge server, responding to a fourth operation request, and sending the updated shared data to the second edge server through the cloud server. And/or if the first edge server does not store the updated shared data, sending a fifth operation request to the cloud server, where the fifth operation request is used to instruct sending of the updated shared data to the second edge server, so that the cloud server sends the updated shared data to the second edge server in response to the fifth operation request.
In a third aspect, the present application provides a method for developing an application program, where the method is applied to an electronic device, the electronic device performs data transmission with a first edge server, and the first edge server performs data transmission with a cloud server. The method comprises the following steps:
and sending a first operation request to the first edge server, wherein the first operation request is used for indicating to execute a target operation event on the shared data, so that after the first operation request is received by the first edge server, if the shared data is stored in the first edge server, the first operation request is used for executing the target operation event on the shared data, and updated shared data is generated. And/or if the first edge server does not store the shared data, sending a second operation request to the cloud server, wherein the second operation request is used for indicating to execute a target operation event on the shared data, so that the cloud server executes the target operation event on the shared data according to the second operation request after receiving the second operation request, generates updated shared data and sends the updated shared data to the first edge server. And receiving updated shared data from the first edge server, wherein the updated shared data is updated data of the first edge server or updated data of the cloud server. The updated shared data is the shared data after the target operation event is executed.
In some implementations, the method for developing an application program further includes: and receiving second version information from the first edge server, wherein the second version information is version information of updated shared data which is determined by updating the received first version information by the first edge server, and the first version information is version information of the shared data which is not updated in the first edge server. Version information of the shared data operated therein is updated based on the second version information.
In some implementations, before the first edge server updates the first version information and determines the second version information, the method for developing the application program further includes: the step of sending third version information to the first edge server, where the third version information is version information of shared data operated in the electronic device, so that the first edge server updates the first version information, and the step of determining the second version information specifically includes: if the third version information is the same as the first version information, the first edge server updates the first version information and determines the second version information. And/or if the third version information is different from the first version information, the first edge server sends the first version information to the electronic equipment.
In some implementations, the method for developing an application program further includes: and sending a third operation request to the first edge server, wherein the third operation request is used for indicating to send the updated shared data to the cloud server, so that the first edge server responds to the third operation request to send the updated shared data to the cloud server and/or delete the updated shared data.
In some implementations, the method for developing an application program further includes: and sending a fourth operation request to the first edge server, wherein the fourth operation request is used for indicating to send updated shared data to the second edge server, and the second edge server performs data transmission with the cloud server so that the first edge server responds to the fourth operation request when the updated shared data is stored, and the cloud server sends the updated shared data to the second edge server. And/or, in the case that the first edge server does not store the updated shared data, sending a fifth operation request to the cloud server, where the fifth operation request is used to instruct sending of the updated shared data to the second edge server, so that the cloud server sends the updated shared data to the second edge server in response to the fifth operation request.
In a fourth aspect, the present application provides a method for developing an application program, where the method is applied to a cloud server, an electronic device performs data transmission with a first edge server, and the first edge server performs data transmission with the cloud server. The method comprises the following steps:
in the case that the first edge server receives a first operation request from the electronic device and the first edge server does not store the shared data, a second operation request is received from the first edge server, wherein the second operation request is used for indicating to execute a target operation event on the shared data. And executing a target operation event on the shared data according to the second operation request, generating updated shared data and sending the updated shared data to the first edge server, so that the first edge server sends the received updated shared data to the electronic equipment after receiving the updated shared data, wherein the updated shared data is the shared data after executing the target operation event. Wherein the first operation request is for indicating to execute a target operation event on the shared data.
In some implementations, the method for developing an application program further includes: and receiving updated shared data from the first edge server under the condition that the first edge server receives a third operation request from the electronic equipment. The third operation request is used for indicating to send the updated shared data to the cloud server.
In some implementations, the method for developing an application program further includes: and under the condition that the first edge server receives a fourth operation request from the electronic equipment, the fourth operation request is used for indicating to send updated shared data to the second edge server, and the second edge server performs data transmission with the cloud server. And if the first edge server stores the updated shared data and responds to the fourth operation request, the updated shared data stored by the first edge server is sent to the second edge server. And/or if the first edge server does not store the updated shared data, receiving a fifth operation request from the first edge server, wherein the fifth operation request is used for indicating to send the updated shared data to the second edge server. And sending the updated shared data to the second edge server in response to the fifth operation request.
In a fifth aspect, the present application provides a computer readable storage medium having computer program instructions stored thereon; the computer program instructions, when executed by a development device, cause the development device to implement a method as any one of the possible implementations of the first to fourth aspects.
Based on any one of the first to fifth aspects, the present application has at least the following advantages: the electronic device may send a first operation request to the first edge server, the first operation request indicating to perform a target operation event on the shared data. The first edge server may determine whether the first edge server stores shared data. If the first edge server stores the shared data, the first edge server may execute the target operation event on the shared data according to the first operation request, and generate updated shared data, where the updated shared data is the shared data after executing the target operation event. The first edge server may then send the updated shared data to the electronic device. If the first edge server does not store the shared data, the first edge server may send a second operation request to the cloud server, where the second operation request is used to indicate to execute the target operation event on the shared data. Then, the cloud server may execute the target operation event on the shared data according to the second operation request, generate updated shared data, and send the updated shared data to the first edge server. The first edge server may then send the updated shared data to the electronic device. In this way, the development method of the application program can realize the scene of managing the service by the multi-layer organization through the cloud server, the edge server and the electronic equipment. Therefore, the interaction efficiency between the servers is improved when the application program is developed.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application and do not constitute a undue limitation on the application.
Fig. 1 is a schematic structural diagram of a development system of an application program according to an embodiment of the present application;
fig. 2 is a flow chart of a development method of an application program according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of a development method of an application program according to an embodiment of the present application;
FIG. 4 is a schematic flow chart of a development method of an application program according to an embodiment of the present application;
FIG. 5 is a schematic flow chart of a development method of an application program according to an embodiment of the present application;
FIG. 6 is a schematic flow chart of a development method of an application program according to an embodiment of the present application;
FIG. 7 is a schematic flow chart of a development method of an application program according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an application development device according to an embodiment of the present application;
Fig. 9 is another schematic structural diagram of an application development device according to an embodiment of the present application;
fig. 10 is another schematic structural diagram of an application development device according to an embodiment of the present application;
fig. 11 is another schematic structural diagram of an application development device according to an embodiment of the present application.
Detailed Description
In order to enable a person skilled in the art to better understand the technical solutions of the present application, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, and/or components.
"and/or", "and/or" are used to describe association relationships of association objects, meaning that three relationships may exist. For example, a and/or B may represent: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Currently, data sharing may store data through a server and may send the data to a user terminal. After the user terminal receives the data, the user can operate the data. For example, for a multi-person real-time collaboration cloud document, multiple users may obtain the document from a server and modify the document. The server then integrates and stores the modified plurality of documents. However, the current method of managing data only by a server is a flattened management method, and cannot support a management service scenario of a multi-layer organization.
Based on this, the embodiment of the application provides a development method of an application program, which may include: the electronic device sends a first operation request to the first edge server, wherein the first operation request is used for indicating to execute a target operation event on the shared data. The first edge server receives a first operation request from the electronic device. The first edge server may determine whether the first edge server stores shared data. If the first edge server stores the shared data, the first edge server executes a target operation event on the shared data to generate updated shared data. If the first edge server does not store the shared data, the cloud server executes a target operation event on the shared data, generates updated shared data and sends the updated shared data to the first edge server. The first edge server may send the updated shared data to the electronic device. In this way, the development method of the application program can realize the scene of managing the service by the multi-layer organization through the cloud server, the edge server and the electronic equipment. Therefore, the interaction efficiency between the servers is improved when the application program is developed.
The following describes an implementation environment of an embodiment of the present application.
Fig. 1 is a schematic structural diagram of a development system of an application program according to an embodiment of the disclosure. The development system of the application program may include: cloud server 101, at least one edge server (e.g., edge server 102, edge server 103, edge server 104), and at least one electronic device (e.g., electronic device 105, electronic device 106, electronic device 107, electronic device 108, electronic device 109, electronic device 110).
Only one edge server (e.g., edge server 102, edge server 103, edge server 104) for data transmission with the cloud server 101 may be provided in only one cloud server 101, and of course, only one edge server may be provided for data transmission with the cloud server 101 in practical applications. There may be multiple electronic devices (e.g., electronic device 105, electronic device 106, electronic device 107 and edge server 102) in data transmission with each edge server (e.g., edge server 102); or there may be one (e.g., electronic device 108) for each edge server (e.g., edge server 103) to transmit data.
The cloud server 101 may be configured to store data of an application program (such as a name of the application program, development code of the application program, version information of the application program, etc., which are not listed here. The cloud server 101 may also be used for data transmission with at least one edge server. For example, cloud server 101 may receive data from an application of an edge server (e.g., edge server 102). For another example, cloud server 101 may also send data for an application to an edge server (e.g., edge server 102).
The edge server which performs data transmission with the cloud server is an edge server trusted by the cloud server. The edge server trusted by the cloud server can store authentication identification for the cloud server. That is, the cloud server stores a plurality of authentication identifications, and each edge server may generate one authentication identification. For example, if the authentication identifier of the third edge server exists among the plurality of authentication identifiers of the cloud server, the third edge server is an edge server trusted by the cloud server. If the authentication identification of the third edge server does not exist in the plurality of authentication identifications of the cloud server, the third edge server is not an edge server trusted by the cloud server.
An edge server (e.g., edge server 102) may be used to store data for an application. An edge server (e.g., edge server 102) may also be used for data transmission with one or more of the at least one electronic device (e.g., electronic device 105, electronic device 106, electronic device 107). For example, an edge server (e.g., edge server 102) may receive an operation request from an electronic device (e.g., electronic device 105) and execute the target operation event based on the operation request; for another example, an edge server (e.g., edge server 102) may also send an operation request to the cloud server. For another example, an edge server (e.g., edge server 102) may also send data for an application to an electronic device (e.g., electronic device 105).
An electronic device (e.g., electronic device 105) may be used for data transfer with an edge server (e.g., edge server 102). For example, an electronic device (e.g., electronic device 105) may send an operation request to an edge server (e.g., edge server 102). For another example, an electronic device (e.g., electronic device 105) may also receive data from an application of an edge server (e.g., edge server 102).
Cloud server 101 may be in wired/wireless communication with an edge server (e.g., edge server 102). Similarly, an edge server (e.g., edge server 102) may be in wired/wireless communication with an electronic device (e.g., electronic device 105).
For example, cloud server 101 may communicate with an edge server (e.g., edge server 102) via satellite communications. As another example, cloud server 101 may communicate with an edge server (e.g., edge server 102) via spread spectrum microwave communications. For another example, cloud server 101 may communicate with an edge server (e.g., edge server 102) via a data transfer station communication.
Embodiments of the present application will be described in detail below with reference to the drawings attached to the specification.
As shown in fig. 2, a method for developing an application program according to an embodiment of the present application may include:
S201, the electronic equipment sends a first operation request to a first edge server.
Wherein the first operation request is for indicating to execute a target operation event on the shared data.
In one possible design, the shared data may include at least one of: the name of the application, the type of application, and the code for developing the application.
By way of example, the names of the applications may include: APP1, APP2, APP3. Types of applications may include: single document (e.g., notepad), multiple documents (e.g., word), basic dialog box. Developing code for an application may include: create, delete, rename.
It should be noted that, in the embodiment of the present application, the target operation event is not limited. For example, the target operational event may be a create operational event. For another example, the target operational event may be a modify operational event. For another example, the target operational event may be a delete operational event.
For example, a first operation request may be used to indicate that a rename operation event is to be performed on APP 1. The first operation request may also be used to instruct execution of a create operation event on APP2, i.e. an operation event to create APP 2. The first operation request may also be used to instruct to perform a delete operation event on APP3, i.e. an operation event to delete data of APP3.
In one possible implementation manner, the electronic device may acquire the first operation request through a preset acquisition manner. Thereafter, the electronic device may send a first operation request to the first edge server.
In one possible design, the preset capture mode may be to read the code of a User Interface (UI) in the integrated development environment (Integrated Development Environment, IDE). That is, the electronic device may read the coding of the UI in the IDE, thereby obtaining the first operation request.
Illustratively, if the first operation request is for indicating that a modify operation event is performed on the name of APP 1. The electronic device can obtain the execution of the modification operation event on the name of the APP1 by reading the code of the UI in the IDE. Thereafter, the electronic device may send a modify operation event to the first edge server for performing the modification of the name of APP 1.
In the embodiment of the application, after the electronic device sends the first operation request to the first edge server, the first edge server may receive the first operation request.
It should be noted that, in the embodiment of the present application, the shared data needs to be stored in the device that executes the target operation event on the shared data. In the embodiment of the application, the shared data can be stored in the edge server, and the shared data can also be stored in the cloud server. If the shared data is stored in the edge server, the edge server executes the target operation event on the shared data. And if the shared data is stored in the cloud server, executing a target operation event on the shared data by the cloud server. Based on this, S202 is performed.
S202, the first edge server determines whether the first edge server stores shared data.
In one possible implementation, the first edge server stores a plurality of data. The first edge server may query among the plurality of data to determine whether there is data in the plurality of data that is the same as the shared data. If the plurality of data has the same data as the shared data, the first edge server may determine that the shared data is stored in the first edge server. If the plurality of data does not have the same data as the shared data, the first edge server may determine that the first edge server does not store the shared data.
Illustratively, if the plurality of data includes: APP1, APP2, APP3. If the first operation request is to perform a modify operation event on APP1, the first edge server may determine that the first edge server stores shared data. If the first operation request is to perform a delete operation event on APP4, the first edge server may determine that the first edge server does not store shared data.
In some embodiments, if the first edge server stores the shared data, the first edge server may perform S203.
In some embodiments, if the first edge server does not store shared data, the first edge server may perform S204.
In some embodiments, if the first edge server stores the shared data, the first edge server may perform S203. If the first edge server does not store the shared data, the first edge server may execute S204.
S203, if the first edge server stores the shared data, the first edge server executes a target operation event on the shared data according to the first operation request, and generates updated shared data.
The updated shared data is the shared data after the target operation event is executed.
For example, if the target operation event is a modification of the name of the application, the updated shared data includes: application modified name. If the target operation event is creation of an application, the updated shared data includes: and the application program creates the data. If the target operation time is the deletion application, the updated shared data includes: the application deletes the data.
In one possible implementation, the first edge server stores shared data. The first edge server may perform a target operational event on the shared data, generating updated shared data.
Illustratively, if the first operation request is to indicate that the name of APP1 is modified to APP5, the first edge server may perform a rename operation event on APP1, generating updated shared data (APP 5).
That is, if the first edge server determines that the first edge server stores the shared data, the first edge server may execute the target operation event on the shared data according to the first operation request, and generate updated shared data.
In some embodiments, after the first edge server performs the target operation event on the shared data according to the first operation request, and generates updated shared data, the first edge server may perform S206.
S204, if the first edge server does not store the shared data, the first edge server sends a second operation request to the cloud server.
Wherein the second operation request is for indicating to execute the target operation event on the shared data.
It should be noted that, in the embodiment of the present application, the first operation request is specifically configured to instruct the first edge server to execute the target operation event on the shared data, and the second operation request is specifically configured to instruct the cloud server to execute the target operation event on the shared data. The shared data in the first operation request is the same as the shared data in the second operation request, and the target operation event in the first operation request is the same as the target operation event in the second operation request. For the description of the shared data and the target operation event, reference may be made to the description of the shared data and the target operation event in S201, which is not described herein.
In the embodiment of the present application, after the first edge server sends the second operation request to the cloud server, the cloud server may receive the second operation request from the first edge server, and perform S205.
S205, the cloud server executes a target operation event on the shared data according to the second operation request, generates updated shared data and sends the updated shared data to the first edge server.
In one possible implementation, the cloud server stores shared data. The cloud server may execute the target operation event on the shared data, generating updated shared data. Then, the cloud server may send the updated shared data to the first edge server.
For example, if the second operation request is used to instruct to delete the input function of APP4, the cloud server may perform a delete operation event on APP4, generating APP4 without the input function. The cloud server may then send APP4 without input function to the first edge server.
In this way, in the case where the edge server does not store the shared data and the cloud server stores the shared data, the edge server can send the second operation request to the cloud server. And then, the cloud server can execute a target operation event on the shared data according to the second operation request, generate updated shared data and send the updated shared data to the first edge server.
In the embodiment of the present application, after the cloud server sends the updated shared data to the first edge server, the first edge server may receive the updated shared data from the cloud server, and execute S206.
S206, the first edge server sends the updated shared data to the electronic equipment.
The updated shared data is updated data of the first edge server or updated data of the cloud service.
In some embodiments, after the first edge server updates the shared data, the first edge server may send the updated shared data to the electronic device.
In other embodiments, after the cloud server updates the shared data, the first edge server may receive the updated shared data from the cloud server. The first edge server may then send the updated shared data received from the cloud server to the electronic device.
That is, in the embodiment of the present application, after the edge server or the cloud server performs the updated shared data, the updated shared data is finally sent by the edge server to the electronic device, so that the electronic device receives the updated shared data from the edge server, and then feeds back the operation result to the user through the client.
It should be noted that, in the embodiment of the present application, the client may perform data transmission with the electronic device. Wherein the client may be a program that provides local services to the user. For example, the client may be a locally running application. For another example, the client may be a web browser used by the world wide web. For another example, the client may be instant messaging software. The client may be deployed on an electronic device or on other hardware devices.
In the embodiment of the application, after the first edge server sends the updated shared data to the electronic device, the electronic device may receive the updated shared data from the first edge server.
It is understood that the electronic device may send a first operation request to the first edge server, the first operation request indicating that the target operation event is performed on the shared data. The first edge server may determine whether the first edge server stores shared data. If the first edge server stores the shared data, the first edge server may execute the target operation event on the shared data according to the first operation request, and generate updated shared data, where the updated shared data is the shared data after executing the target operation event. The first edge server may then send the updated shared data to the electronic device. If the first edge server does not store the shared data, the first edge server may send a second operation request to the cloud server, where the second operation request is used to indicate to execute the target operation event on the shared data. Then, the cloud server may execute the target operation event on the shared data according to the second operation request, generate updated shared data, and send the updated shared data to the first edge server. The first edge server may then send the updated shared data to the electronic device. In this way, the development method of the application program can realize the scene of managing the service by the multi-layer organization through the cloud server, the edge server and the electronic equipment. Therefore, the interaction efficiency between the servers is improved when the application program is developed.
In some embodiments, under the condition that communication between the electronic device and the edge server, and communication between the edge server and the cloud server are normal, the electronic device may perform data transmission with the edge server according to a preset synchronization policy. Similarly, the edge server can perform data transmission with the cloud server according to a preset synchronization strategy.
It should be noted that, in the embodiment of the present application, the preset synchronization policy is not limited. For example, the preset synchronization policy may be a real-time synchronization policy. For another example, the preset synchronization policy may be a straight-along synchronization policy. For another example, the preset synchronization policy may be a policy of two thresholds of data write times and synchronization periods, that is, data transmission is performed when the preset times are satisfied or the preset periods are satisfied. The preset times and the preset period can be set by a developer.
It can be appreciated that, in a case where communication between the electronic device and the edge server, and between the edge server and the cloud server is normal, when the user accesses shared data stored in the edge server and/or the cloud server at the electronic device side, the electronic device may automatically acquire the shared data stored in the edge server and/or the cloud server and provide the shared data to the user. Therefore, the user does not need manual operation in the process of accessing the shared data, the operation steps of the user are simplified, and the data transmission efficiency is improved.
In some embodiments, where the first edge server stores shared data, the first edge server may update version information of the shared data. As shown in fig. 3, after S203, the development method of the application may further include: S301-S304.
S301, the first edge server acquires the first version information.
The first version information is version information of the shared data which is not updated in the first edge server.
In one possible implementation, the first edge server stores a relationship between version information of the plurality of data and the plurality of data identifications. The first edge server may determine the first version information from the version information of the plurality of data according to a relationship between the version information of the plurality of data and the plurality of data identifications, the identification of the shared data. For example, the version information of the data may be a change version number of the data, and the data identification may be a name of the data. If the plurality of data includes: data 1 is named APP1, data 2 is named APP2, and data 3 is named APP3. The change version number of data 1 is 3.0, the change version number of data 2 is 1.0, and the change version number of data 3 is 2.6. The version information of APP1 is 3.0, the version information of APP2 is 1.0, and the version information of APP3 is 2.6. If the identity of the shared data is APP1, the first version information is 3.0.
In another possible implementation, the electronic device may send the first version information to the first edge server. The first edge server may receive first version information from the electronic device.
Alternatively, the first edge server may send a sixth operation request to the electronic device, where the sixth operation request is used to instruct sending the first version information to the first edge server.
In the embodiment of the present application, the execution sequence of S301 is not limited. For example, when the electronic device transmits a first operation request to the first edge server (S201), the electronic device may simultaneously transmit the first version information to the first edge server. Then, the first edge server obtains the first version information. For another example, the electronic device may send the first operation request and the first version information to the first edge server, respectively. For another example, after the first edge server determines that the first edge server stores the shared data (S203), the first edge server may acquire the first version information.
S302, the first edge server updates the first version information and determines the second version information.
The second version information is version information of the updated shared data.
Illustratively, if the first version information is 2.0 and the version information of the updated shared data is 2.1, the second version information is 2.1.
In one possible implementation, after the first edge server performs the target operation event on the shared data, the first edge server may update version information of the shared data according to a preset sequence. Thereafter, the first edge server may determine the second version information.
It should be noted that, in the embodiment of the present application, the preset sequence is not limited. For example, in a normal case, the preset sequence may be monotonically increasing. For another example, the preset sequence may be monotonically decreasing.
For example, if the preset sequence is monotonically increasing, the first version information is 3.0. For example, the version information of the updated shared data may be 3.0.1, and the second version information may be 3.0.1. For another example, the version information of the updated shared data may be 3.1, and the second version information may be 3.1. For another example, the version information of the updated shared data may be 4.0, and the second version information may be 4.0.
And S303, the first edge server sends the second version information to the electronic equipment.
Illustratively, if the second version information is version information updated by APP1, the second version information is 3.1. The first edge server sends the version information updated by APP1 to the electronic device as 3.1.
In the embodiment of the present application, the execution sequence of S303 is not limited. For example, when the first edge server transmits the updated shared data to the electronic device (S206), the first edge server may simultaneously transmit the second version information to the electronic device. For another example, the first edge server may send the second version information to the electronic device after sending the updated shared data to the electronic device (S206). For another example, the first edge server may send the second version information to the electronic device before sending the updated shared data to the electronic device (S206).
In some embodiments, after the first edge server sends the second version information to the electronic device, the electronic device may receive the second version information from the first edge server.
S304, the electronic device updates the version information of the shared data operated in the electronic device based on the second version information.
In the embodiment of the application, the shared data operated in the electronic device is shared data of the first version information in the first edge server.
In one possible implementation, after the electronic device receives the second version information from the first edge server, the electronic device may update fourth version information based on the second version information, the fourth version information being version information of shared data operating in the electronic device.
For example, if the second version information is version information 3.1 updated by APP1, the shared data operated in the electronic device is APP1, and the fourth version information is 3.0. The electronic device updates the fourth version information to 3.1.
It may be appreciated that the first edge server may obtain the first version information, where the first version information is version information of shared data that is not updated in the first edge server. Then, the first edge server may update the first version information to determine second version information, where the second version information is version information of the updated shared data. The first edge server may then send the second version information to the electronic device. The electronic device may update version information of the shared data operated therein based on the second version information. Thus, the version information read by the user can be the latest updated version information, and the real-time performance of the shared data is ensured.
It should be noted that, due to unstable network communication state or failure, version information of data stored in the electronic device, the edge server, or the like may be different. As such, the user may be unable to access the latest version of the data.
In some embodiments, as shown in fig. 4, prior to S302, the first edge server may adjust the version information of the data by determining whether the version information of the data stored by the electronic device and the first edge server are the same. The development method of the application program can further comprise the following steps: S401-S404.
S401, the electronic equipment sends third version information to the first edge server.
The third version information is version information of shared data operated in the electronic device.
For example, if the shared data operated in the electronic device is APP1, version information of APP1 is 3.0. The third version information is version information 3.0 of APP 1.
In one possible implementation, the electronic device may send the third version information to the first edge server while the electronic device sends the first operation request to the first edge server.
Illustratively, if the first operation request is to rename APP1 to APP5, the version information of APP1 is 3.0. The electronic device can send a first operation request and version information of APP1 to the first edge server.
In some embodiments, the first edge server may receive the third version information from the electronic device after the electronic device sends the third version information to the first edge server.
S402, the first edge server determines whether the third version information is identical to the first version information.
Illustratively, suppose the third version information is version information 3.0 of APP 1. If the first version information is version information 3.0 of APP1, the first edge server may determine that the third version information is identical to the first version information. If the first version information is version information 3.1 of APP1, the first edge server may determine that the third version information is not identical to the first version information.
In some embodiments, if the third version information is the same as the first version information, the first edge server may perform S403.
It should be noted that, in the embodiment of the present application, if the third version information is the same as the first version information, it is indicated that the version information of the shared data has not been updated. The first edge server may update the first version information to determine the second version information.
In some embodiments, if the third version information is different from the first version information, the first edge server may perform S404.
In one possible design, in a case where a network communication state between the electronic device and the first edge server is unstable, the third version information may be different from the first version information, and the first version information is updated version information.
Illustratively, if the first version information is version information 3.0 of APP1 and the third version information is version information 2.9 of APP1, it is explained that the first version information is updated version information.
In another possible design, in a case where a network communication state between the electronic device and the first edge server is unstable, the third version information may be different from the first version information, and the first version information is not updated version information.
Illustratively, if the first version information is version information 3.0 of APP1 and the third version information is version information 3.1 of APP1, it is indicated that the first version information is not updated version information.
In some embodiments, if the third version information is the same as the first version information, the first edge server may perform S403. If the third version information is different from the first version information, the first edge server may perform S404.
S403, if the third version information is the same as the first version information, the first edge server updates the first version information and determines the second version information.
It should be noted that, in the embodiment of the present application, the description of "the first edge server updates the first version information and determines the second version information" may refer to "the first edge server updates the first version information and determines the second version information" in S302, which is not repeated herein.
It is understood that if the third version information is the same as the first version information, the first edge server may update the first version information to determine the second version information (S302). After that, the first edge server may transmit the second version information to the electronic device (S303). The electronic device updates version information of the shared data operated therein based on the second version information (S304).
S404, if the third version information is different from the first version information, the first edge server sends the first version information to the electronic equipment.
In one possible implementation, if the third version information is different from the first version information, and the first version information is updated version information, the first edge server may send the first version information to the electronic device.
For example, if the first version information is version information 3.0 of APP1 and the third version information is version information 2.9 of APP1, the first edge server may send the first version information 3.0 to the electronic device.
If the third version information is different from the first version information and the first version information is updated version information, it is indicated that the first edge server has updated the shared data and updated the version information of the shared data. However, the first edge server does not feed back to the electronic device due to unstable network communication state or failure.
In another possible implementation manner, if the third version information is different from the first version information and the first version information is not updated version information, the first edge server may delete the third version information and update the first version information to determine the second version information.
Illustratively, if the first version information is version information 3.0 of APP1, the third version information is version information 3.5 of APP 1. The first edge server may delete the third version information and update the first version information to 3.1, where the version information of APP1 is 3.1.
It should be noted that, if the third version information is different from the first version information and the first version information is not updated version information, it is indicated that the first version information and the third version information have a conflict.
It is understood that the electronic device sends third version information to the first edge server, the third version information being version information of shared data operating in the electronic device. The first edge server may determine whether the third version information is identical to the first version information. If the third version information is the same as the first version information, the first edge server can update the first version information to determine the second version information. If the third version information is different from the first version information, the first edge server sends the first version information to the electronic equipment. Therefore, even under the conditions of development environment isolation and unstable network caused by wide distribution region of APP developers, the version information of the shared data read by the user can be the latest updated version information, the real-time performance and accuracy of the shared data are ensured, and the user experience is improved.
In the embodiment of the present application, the execution order of updating the shared data and the updated version information is not limited. For example, the first edge server may update the first version information while updating the shared data. For another example, the first edge server may update the shared data first and then update the first version information. For another example, the first edge server may update the first version information before updating the shared data.
In some embodiments, the development method of the application program may further include: the first edge server may send the updated shared data in the first edge server to the cloud server. Alternatively, the first edge server may send the updated shared data in the first edge server to the second edge server. The specific implementation mode is as follows:
in some embodiments, the electronic device may send a third operation request to the first edge server. The third operation request is used for indicating to send the updated shared data to the cloud server. Then, the first edge server may send the updated shared data to the cloud server in response to the third operation request.
In one possible implementation, the electronic device may obtain the third operation request. Thereafter, the electronic device may send a third operation request to the first edge server. The first edge server may receive a third operation request from the electronic device. In response to the third operation request, the first edge server may send the updated shared data to the cloud server.
Note that, for the description of the electronic device obtaining the third operation request, reference may be made to the description of the electronic device obtaining the first operation request in S201, which is not described herein.
In some embodiments, after the first edge server sends the updated shared data to the cloud server, the cloud server may receive the updated shared data from the first edge server.
It may be appreciated that the electronic device may send a third operation request to the first edge server, where the third operation request is used to instruct sending of the updated shared data to the cloud server. The first edge server may send the updated shared data to the cloud server in response to the third operation request. In this way, the user can instruct the first edge server to send the shared data in the first edge server to the cloud server, so that the movement of the shared data is realized.
Note that, since the shared data may be stored in the edge server or the cloud server, after the first edge server sends the updated shared data to the cloud server, the updated shared data is stored in the cloud server. In this way, the cloud server and the edge server both store updated shared data, which increases the storage load of the development system of the application program.
In some embodiments, after the first edge server sends the updated shared data to the cloud server, the first edge server may delete the updated shared data.
It is understood that after the first edge server sends the updated shared data to the cloud server, the first edge server may delete the updated shared data. Similarly, after the cloud server sends the updated shared data to the first edge server, the cloud server may delete the updated shared data. In this way, the shared data may be stored in an edge server or cloud server, reducing the storage load of the development system of the application.
It should be noted that, if the user needs to move the data in the first edge server to the second edge server, the user cannot move the data from the first edge server to the second edge server directly because the first edge server and the second edge server cannot perform data transmission. In some embodiments, as shown in fig. 5, the first edge server may send the updated shared data to the second edge server through the cloud server, and the method may include: S501-S505.
S501, the electronic equipment sends a fourth operation request to the first edge server.
The fourth operation request is used for indicating to send updated shared data to the second edge server, and the second edge server performs data transmission with the cloud service.
In one possible implementation, the electronic device may obtain the fourth operation request. Thereafter, the electronic device may send a fourth operation request to the first edge server.
Note that, for the description of the electronic device obtaining the fourth operation request, reference may be made to the description of the electronic device obtaining the first operation request in S201, which is not described herein.
In some embodiments, the first edge server may receive the fourth operation request from the electronic device after the electronic device sends the fourth operation request to the first edge server.
S502, the first edge server determines whether the first edge server stores updated shared data.
It should be noted that, for the description that the first edge server determines whether the first edge server stores the updated shared data, reference may be made to the first edge server in S202 to determine whether the first edge server stores the shared data, which is not described herein.
In some embodiments, if the first edge server stores the updated shared data, the first edge server may execute S503.
In some embodiments, if the first edge server does not store the updated shared data, the first edge server may perform S504.
In some embodiments, if the first edge server stores the updated shared data, the first edge server may execute S503. If the first edge server does not store the updated shared data, the first edge server may execute S504.
S503, if the first edge server stores the updated shared data, the first edge server responds to the fourth operation request and sends the updated shared data to the second edge server through the cloud server.
In one possible implementation, in response to the fourth operation request, the first edge server may send the updated shared data to the cloud server. The cloud server may receive updated shared data from the first edge server. Then, the cloud server may send the updated shared data to the second edge server.
That is, if the first edge server stores the updated shared data, the first edge server may send the updated shared data to the second edge server through the cloud server because the data transmission between the first edge server and the second edge server is impossible.
S504, if the first edge server does not store the updated shared data, the first edge server sends a fifth operation request to the cloud server.
The fifth operation request is used for indicating to send updated shared data to the second edge server.
In one possible implementation, the electronic device may send a fifth operation request to the first edge server. The first edge server may receive a fifth operation request from the electronic device. Thereafter, the first edge server may send a fifth operation request to the cloud server.
In some embodiments, after the first edge server transmits the fifth operation request to the cloud server, the cloud server may receive the fifth operation request from the first edge server and perform S505.
S505, the cloud server responds to the fifth operation request and sends the updated shared data to the second edge server.
That is, if the first edge server does not store the updated shared data, the cloud server is instructed to send the updated shared data to the second edge server.
It may be appreciated that the electronic device may send a fourth operation request to the first edge server, where the fourth operation request is used to instruct sending of updated shared data to the second edge server, where the second edge server performs data transmission with the cloud server. The first edge server may determine whether the first edge server stores updated shared data. If the first edge server stores the updated shared data, the first edge server can send the updated shared data to the second edge server through the cloud server. If the first edge server does not store the updated shared data, the first edge server may send a fifth operation request to the cloud server, where the fifth operation request is used to instruct sending the updated shared data to the second edge server. The cloud server may send the updated shared data to the second edge server in response to the fifth operation request. In this way, the user may instruct the first edge server to send the updated shared data to the second edge server. Or, the user can instruct the cloud server to send the updated shared data to the edge server, so that the movement of the shared data is realized.
In some embodiments, as shown in fig. 6, the end may be an electronic device in an embodiment of the present application, the edge may be a first edge server in an embodiment of the present application, and the cloud may be a cloud server in an embodiment of the present application. The user can operate the shared data in the electronic device, the first edge server and the cloud server through the client. The electronic device may send a first operation request to the first edge server, which may "write" the data of application 1. The electronic device may receive the shared data sent from the first edge server, which may be data of the "read" application 1. Similarly, the first edge server may send a second operation request to the cloud server, which may "write" the data of application 2. The first edge server may receive shared data sent from the cloud server, where the shared data may be data of the "read" application 2. The cloud server may also send shared data stored in the cloud server to the edge server. The first edge server may also send the shared data stored in the first edge server to the second edge server through the cloud server.
When the communication between the electronic device and the first edge server fails, the first edge server cannot receive the first operation request from the electronic device. Similarly, in the event of a failure in communication between the first edge server and the cloud server, the cloud server cannot receive a second operation request from the first edge server. As such, the first operation request and the second operation request may be lost.
Further, if communication between the electronic device and the first edge server fails, the electronic device may store the first operation request. Similarly, if communication between the first edge server and the cloud server fails, the first edge server may store the second operation request. In this way, the first operation request and the second operation request can be prevented from being lost, and when communication is restored, it can be ensured that the first edge server can receive the first operation request stored by the electronic device, and the cloud server can receive the second operation request stored by the first edge server.
In connection with fig. 6, as shown in fig. 7, the electronic device stores a write cache and a read cache, and the edge server stores a write cache and a read cache. The write cache may be an operation request in the embodiment of the present application, and the read cache may be shared data in the embodiment of the present application. That is, the write cache in the electronic device is an operation request sent to the first edge server and/or the cloud server, and the read cache in the electronic device is shared data sent to the electronic device by the first edge server and/or the cloud server. Similarly, the write cache in the first edge server is an operation request sent to the cloud server, and the read cache in the first edge server is shared data sent to the first edge server and/or the electronic device by the cloud server.
In this way, in the case where communication between the first edge server and the electronic device fails, if the shared data in the user first edge server and/or the cloud server operates, the electronic device may store the operation request. If the user reads the shared data of the first edge server and/or the cloud server, the shared data stored in the electronic device can be accessed. Moreover, in the event of a failure in communication between the first edge server and the electronic device, the user may develop shared data stored by the electronic device. Similarly, in the event of a failure in communication between the first edge server and the cloud server, the user may develop shared data stored by the electronic device and/or the first edge server.
The foregoing description of the solution provided by the embodiments of the present application has been presented primarily in terms of a computer device. It will be appreciated that the computer device, in order to carry out the functions described above, comprises corresponding hardware structures and/or software modules that perform the respective functions. Those skilled in the art will readily appreciate that the method steps of developing an application program for each of the examples described in connection with the disclosed embodiments of the application may be implemented in hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application also provides a development system of the application program. The development system of the application program may include: the cloud server, the at least one edge server and the at least one electronic device. The cloud server performs data transmission with at least one edge server, and the edge server performs data transmission with one or more electronic devices in the at least one electronic device.
The cloud server or the first edge server is used for storing shared data, and the first edge server is any edge server in the at least one edge server.
The first electronic device is used for transmitting shared data with the first edge server, and the first electronic device is one of at least one electronic device, which is used for transmitting data with the first edge server.
The first electronic device is further configured to send a first operation request to the first edge server, where the first operation request is configured to indicate that the target operation event is performed on the shared data. The first electronic device is further configured to receive updated shared data from the first edge server.
The first edge server is further configured to receive a first operation request from the first electronic device.
The first edge server is further configured to, when the first edge server stores the shared data, execute the target operation event on the shared data according to the first operation request, and generate updated shared data. The updated shared data is the shared data after the target operation event is executed.
The first edge server is further configured to send a second operation request to the cloud server when the first edge server does not store the shared data, where the second operation request is used to instruct to execute a target operation event on the shared data, and receive the shared data updated by the cloud server from the cloud service.
The first edge server is further configured to send updated shared data to the electronic device, where the updated shared data is updated by the first edge server or updated by the cloud server.
The cloud server is further used for receiving a second operation request from the first edge server.
The cloud server is further configured to execute a target operation event on the shared data according to the second operation request, generate updated shared data, and send the updated shared data to the first edge server.
The embodiment of the application also provides a development device of the application program. The development device of the application program may be a computer device, a CPU in the computer device, a processing module for developing the application program in the computer device, or a client for developing the application program in the computer device.
The embodiment of the application can divide the functional modules or functional units for the development of the application program according to the method example, for example, each functional module or functional unit can be divided corresponding to each function, and two or more functions can be integrated in one processing module. The integrated modules may be implemented in hardware, or in software functional modules or functional units. The division of the modules or units in the embodiment of the present application is schematic, which is merely a logic function division, and other division manners may be implemented in practice.
Fig. 8 is a schematic structural diagram of an apparatus for developing an application according to an embodiment of the present application. The application development device is used for executing the application development method shown in fig. 2, 3, 4, 5, 6 and 7. The development device of the application program can be applied to a first edge server, and the first edge server performs data transmission with the cloud server and the electronic equipment respectively. The development device of the application program may include an acquisition unit 801, a transmission unit 802, and a processing unit 803.
An obtaining unit 801 is configured to receive a first operation request from an electronic device, where the first operation request is used to instruct to execute a target operation event on shared data. And the processing unit 803 is configured to, if the shared data is stored in the first edge server, execute the target operation event on the shared data according to the first operation request, and generate updated shared data. And/or the sending unit 802 is configured to send a second operation request to the cloud server if the first edge server does not store the shared data, where the second operation request is used to instruct to execute the target operation event on the shared data, so that after receiving the second operation request, the cloud server executes the target operation event on the shared data according to the second operation request, and generates updated shared data. The obtaining unit 801 is further configured to receive updated shared data from the cloud server. The sending unit 802 is further configured to send the updated shared data to the electronic device, where the updated shared data is updated data of the first edge server or updated data of the cloud server. The updated shared data is the shared data after the target operation event is executed.
The other functions of the acquisition unit 801, the transmission unit 802, and the processing unit 803 are not specifically exemplified herein, and specific reference may be made to the functions involved in the development methods of the application programs shown in fig. 2, 3, 4, 5, 6, and 7.
Fig. 9 is a schematic structural diagram of another development device for an application according to an embodiment of the present application. The application development device is used for executing the application development method shown in fig. 2, 3, 4, 5, 6 and 7. The development device of the application program can be applied to electronic equipment, the electronic equipment and the first edge server perform data transmission, and the first edge server and the cloud server perform data transmission. The development device of the application program may include an acquisition unit 901, a transmission unit 902, and a processing unit 903.
The sending unit 902 is configured to send a first operation request to the first edge server, where the first operation request is used to instruct to execute a target operation event on the shared data, so that after the first edge server receives the first operation request, if the first edge server stores the shared data, the first edge server executes the target operation event on the shared data according to the first operation request, and generates updated shared data. If the first edge server does not store the shared data, a second operation request is sent to the cloud server, wherein the second operation request is used for indicating to execute a target operation event on the shared data, so that the cloud server executes the target operation event on the shared data according to the second operation request after receiving the second operation request, generates updated shared data and sends the updated shared data to the first edge server. The acquiring unit 901 is configured to receive updated shared data from a first edge server, where the updated shared data is updated data of the first edge server or updated data of a cloud server. The updated shared data is the shared data after the target operation event is executed.
In some implementations, the developing device of the application program further includes: the obtaining unit 901 is specifically configured to receive second version information from a first edge server, where the second version information is version information of updated shared data that is updated and determined by the first edge server to the received first version information, and the first version information is version information of shared data that is not updated in the first edge server. The processing unit 903 is configured to update version information of the shared data operated therein based on the second version information.
The other functions of the acquisition unit 901, the transmission unit 902, and the processing unit 903 are not specifically exemplified herein, and specific reference may be made to the functions involved in the development methods of the application programs shown in fig. 2, 3, 4, 5, 6, and 7.
Fig. 10 is a schematic structural diagram of another development device for an application according to an embodiment of the present application. The application development device is used for executing the application development method shown in fig. 2, 3, 4, 5, 6 and 7. The development device of the application program can be applied to the cloud server, the electronic equipment and the first edge server conduct data transmission, and the first edge server and the cloud server conduct data transmission. The development device of the application program may include an acquisition unit 1001, a transmission unit 1002, and a processing unit 1003.
The obtaining unit 1001 is configured to, when the first edge server receives a first operation request from the electronic device and the first edge server does not store the shared data, receive a second operation request from the first edge server, where the second operation request is used to instruct to execute a target operation event on the shared data. The processing unit 1003 is configured to execute a target operation event on the shared data according to the second operation request, generate updated shared data, and send the updated shared data to the first edge server, so that the first edge server sends the received updated shared data to the electronic device after receiving the updated shared data, where the updated shared data is the shared data after executing the target operation event. Wherein the first operation request is for indicating to execute a target operation event on the shared data.
In some implementations, the developing device of the application program further includes: the obtaining unit 1001 is specifically configured to, when the first edge server receives a fourth operation request from the electronic device, instruct to send updated shared data to the second edge server, where the second edge server performs data transmission with the cloud server. The sending unit 1002 is specifically configured to send the updated shared data stored by the first edge server to the second edge server if the first edge server stores the updated shared data and responds to the fourth operation request. And/or, the obtaining unit 1001 is further configured to receive a fifth operation request from the first edge server if the first edge server does not store the updated shared data, where the fifth operation request is used to instruct to send the updated shared data to the second edge server. The sending unit 1002 is further configured to send the updated shared data to the second edge server in response to the fifth operation request.
The other functions of the acquisition unit 1001, the transmission unit 1002, and the processing unit 1003 are not specifically exemplified herein, and specific reference may be made to the functions involved in the development methods of the application programs shown in fig. 2, 3, 4, 5, 6, and 7.
Fig. 11 shows still another possible configuration of the development device of the application program involved in the above-described embodiment. The application development device comprises: a processor 1101 and a communication interface 1102. The processor 1101 is configured to control and manage the actions of the apparatus, for example, performing the various steps in the method flows shown in the method embodiments described above, and/or for performing other processes of the techniques described herein. The communication interface 1102 is used to support communication of the development device of the application with other network entities. The development device for application programs may also include a memory 1103 and a bus 1104, the memory 1103 being used to store program codes and data for the device.
Wherein the processor 1101 may implement or execute the various exemplary logic blocks, units and circuits described in connection with the present disclosure. The processor may be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, units and circuits described in connection with this disclosure. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
The memory 1103 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk or solid state disk; the memory may also comprise a combination of the above types of memories.
Bus 1104 may be an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus or the like. The bus 1104 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 11, but not only one bus or one type of bus.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
As described above, the embodiment of the present application may divide functional modules for each execution subject involved in the development method of an application according to the above-described method example. The integrated modules may be implemented in hardware or in software functional modules. In addition, it should be noted that, in the embodiment of the present application, the division of the modules is schematic, only one logic function is divided, and another division manner may be implemented in actual implementation. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated in one processing module.
The specific manner in which each module performs the operation and the beneficial effects of the application program development apparatus in the foregoing embodiment are described in detail in the foregoing method embodiment, and are not described herein again.
The embodiment of the application also provides a development device, which can comprise: a processor, a memory for storing processor-executable instructions; the processor is configured to execute the instructions, to cause the development device to implement the method as in the previous embodiments.
It should be noted that, in the embodiment of the present application, the development device may include at least one of the following: electronic equipment, edge servers and cloud servers. That is, the development device may include one or more of an electronic device, an edge server, and a cloud server.
Illustratively, the development device may include: an electronic device. The development device may further include: an electronic device and an edge server. The development device may further include: electronic equipment, edge servers and cloud servers.
In an exemplary embodiment, embodiments of the application also provide a computer-readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a development device, cause the development device to implement the method as in the previous embodiments.
Alternatively, the above-described computer-readable storage medium may be a non-transitory computer-readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, the present application also provides a computer program product comprising a computer readable code, or a non-transitory computer readable storage medium carrying computer readable code, which when run in a development device, a processor in the development device implements a method as in the previous embodiments.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (13)

1. The development method of the application program is characterized in that the first edge server respectively carries out data transmission with the cloud server and the electronic equipment; the method comprises the following steps:
the electronic equipment sends a first operation request to the first edge server, wherein the first operation request is used for indicating to execute a target operation event on shared data;
if the first edge server stores the shared data, the first edge server executes the target operation event on the shared data according to the first operation request to generate updated shared data; and/or the number of the groups of groups,
If the first edge server does not store the shared data, the first edge server sends a second operation request to the cloud server, wherein the second operation request is used for indicating the execution of the target operation event on the shared data;
the cloud server executes the target operation event on the shared data according to the second operation request, generates updated shared data and sends the updated shared data to the first edge server;
the first edge server sends the updated shared data to the electronic equipment, wherein the updated shared data is updated data of the first edge server or updated data of the cloud server;
wherein the updated shared data is the shared data after the target operation event is executed;
the first edge server acquires first version information, wherein the first version information is version information of the shared data which is not updated in the first edge server;
the electronic equipment sends third version information to the first edge server, wherein the third version information is version information of shared data operated in the electronic equipment;
The first edge server updates the first version information and determines the second version information, and the method specifically comprises the following steps:
if the third version information is the same as the first version information, the first edge server updates the first version information and determines the second version information; and/or the number of the groups of groups,
and if the third version information is different from the first version information, the first edge server sends the first version information to the electronic equipment.
2. The method according to claim 1, wherein the method further comprises:
the first edge server sends the second version information to the electronic equipment, wherein the second version information is version information of the updated shared data;
the electronic device updates version information of the shared data operated therein based on the second version information.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
the electronic equipment sends a third operation request to the first edge server, wherein the third operation request is used for indicating to send the updated shared data to the cloud server;
And the first edge server responds to the third operation request, and sends the updated shared data to the cloud server and/or deletes the updated shared data.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
the electronic equipment sends a fourth operation request to the first edge server, wherein the fourth operation request is used for indicating to send the updated shared data to a second edge server, and the second edge server performs data transmission with the cloud server;
if the first edge server stores the updated shared data, the first edge server responds to the fourth operation request and sends the updated shared data to the second edge server through the cloud server; and/or the number of the groups of groups,
if the first edge server does not store the updated shared data, the first edge server sends a fifth operation request to the cloud server, wherein the fifth operation request is used for indicating to send the updated shared data to the second edge server;
and the cloud server responds to the fifth operation request and sends the updated shared data to the second edge server.
5. The development method of the application program is characterized by being applied to a first edge server, wherein the first edge server performs data transmission with a cloud server and electronic equipment respectively; the method comprises the following steps:
receiving a first operation request from the electronic device, wherein the first operation request is used for indicating to execute a target operation event on shared data;
if the first edge server stores the shared data, executing the target operation event on the shared data according to the first operation request, and generating updated shared data; and/or the number of the groups of groups,
if the first edge server does not store the shared data, a second operation request is sent to the cloud server, wherein the second operation request is used for indicating to execute the target operation event on the shared data, so that the cloud server executes the target operation event on the shared data according to the second operation request after receiving the second operation request, and updated shared data is generated;
receiving the updated shared data from the cloud server;
the updated shared data is sent to the electronic equipment, and the updated shared data is updated data of the first edge server or updated data of the cloud server;
Wherein the updated shared data is the shared data after the target operation event is executed;
acquiring first version information, wherein the first version information is version information of the shared data which is not updated in the first edge server;
receiving third version information from the electronic equipment, wherein the third version information is version information of shared data operated in the electronic equipment;
the first edge server updates the first version information and determines the second version information, and the method specifically comprises the following steps:
if the third version information is the same as the first version information, updating the first version information and determining the second version information; and/or the number of the groups of groups,
and if the third version information is different from the first version information, sending the first version information to the electronic equipment.
6. The method of claim 5, wherein the method further comprises:
and sending the second version information to the electronic equipment so that the electronic equipment updates the version information of the shared data operated in the second version information based on the received second version information, wherein the second version information is the version information of the updated shared data.
7. The method according to claim 5 or 6, characterized in that the method further comprises:
receiving a third operation request from the electronic device, wherein the third operation request is used for indicating to send the updated shared data to the cloud server;
and responding to the third operation request, sending the updated shared data to the cloud server, and/or deleting the updated shared data.
8. The development method of the application program is characterized by being applied to electronic equipment, wherein the electronic equipment performs data transmission with a first edge server, and the first edge server performs data transmission with a cloud server; the method comprises the following steps:
sending a first operation request to the first edge server, wherein the first operation request is used for indicating to execute a target operation event on shared data, so that after the first operation request is received by the first edge server, if the shared data is stored in the first edge server, the target operation event is executed on the shared data according to the first operation request, and updated shared data is generated; and/or if the first edge server does not store the shared data, sending a second operation request to the cloud server, where the second operation request is used to instruct to execute the target operation event on the shared data, so that the cloud server executes the target operation event on the shared data according to the second operation request after receiving the second operation request, generates updated shared data, and sends the updated shared data to the first edge server;
Receiving updated shared data from the first edge server, wherein the updated shared data is updated data of the first edge server or updated data of the cloud server;
wherein the updated shared data is the shared data after the target operation event is executed;
transmitting third version information to the first edge server, wherein the third version information is version information of shared data operated in the electronic device, so that the first edge server updates the first version information, and the step of determining the second version information specifically includes: if the third version information is the same as the first version information, the first edge server updates the first version information and determines the second version information; and/or if the third version information is different from the first version information, the first edge server sends the first version information to the electronic device, wherein the first version information is version information of the shared data which is not updated in the first edge server.
9. The method of claim 8, wherein the method further comprises:
Receiving second version information from the first edge server, wherein the second version information is version information of updated shared data, which is updated and determined by the first edge server on the received first version information, and the first version information is version information of the shared data which is not updated in the first edge server;
version information of shared data operated therein is updated based on the second version information.
10. The method according to claim 9, wherein the method further comprises:
and sending a third operation request to the first edge server, wherein the third operation request is used for indicating to send the updated shared data to the cloud server, so that the first edge server responds to the third operation request to send the updated shared data to the cloud server and/or delete the updated shared data.
11. The development method of the application program is characterized by being applied to a cloud server, wherein the electronic equipment and a first edge server perform data transmission, and the first edge server and the cloud server perform data transmission; the method comprises the following steps:
Receiving a second operation request from the first edge server, wherein the second operation request is used for indicating to execute a target operation event on shared data under the condition that the first edge server receives the first operation request from the electronic equipment and the first edge server does not store the shared data;
executing the target operation event on the shared data according to the second operation request, generating updated shared data and sending the updated shared data to the first edge server, so that the first edge server sends the received updated shared data to the electronic equipment after receiving the updated shared data, wherein the updated shared data is the shared data after executing the target operation event;
wherein the first operation request is used for indicating to execute the target operation event on the shared data;
the step of determining, by the first edge server, the second version information of the shared data used for updating the operation in the electronic device is determined after the first version information is updated according to the acquired first version information and the third version information received from the electronic device, and the step of determining the second version information specifically includes: if the third version information is the same as the first version information, the first edge server updates the first version information and determines the second version information; and/or if the third version information is different from the first version information, the first edge server sends the first version information to the electronic equipment; the first version information is version information of the shared data which is not updated in the first edge server; the third version information is version information of shared data operated in the electronic device.
12. The method of claim 11, wherein the method further comprises:
receiving the updated shared data from the first edge server in the case that the first edge server receives a third operation request from the electronic device;
the third operation request is used for indicating to send the updated shared data to the cloud server.
13. A computer readable storage medium comprising a computer program, characterized in that the computer program, when run on a development device, causes the development device to implement the method of any one of claims 1-4, claims 5-7, claims 8-10, or claims 11-12.
CN202211199201.XA 2022-09-29 2022-09-29 Development method of application program and computer readable storage medium Active CN115604345B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211199201.XA CN115604345B (en) 2022-09-29 2022-09-29 Development method of application program and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211199201.XA CN115604345B (en) 2022-09-29 2022-09-29 Development method of application program and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN115604345A CN115604345A (en) 2023-01-13
CN115604345B true CN115604345B (en) 2023-08-18

Family

ID=84845770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211199201.XA Active CN115604345B (en) 2022-09-29 2022-09-29 Development method of application program and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115604345B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516334A (en) * 2015-12-25 2016-04-20 上海帝联信息科技股份有限公司 CDN (content delivery network) file delivery system
CN111182083A (en) * 2020-02-11 2020-05-19 腾讯科技(深圳)有限公司 Equipment control method and device and edge equipment
CN111586114A (en) * 2020-04-24 2020-08-25 腾讯科技(深圳)有限公司 Business cooperative processing method and related equipment
CN112463882A (en) * 2020-11-20 2021-03-09 广东省安心加科技有限公司 Data synchronization method, cloud platform and edge terminal
CN113010604A (en) * 2021-03-18 2021-06-22 湖北亿咖通科技有限公司 Map data synchronization method, system, cloud server and storage medium
CN113468456A (en) * 2021-07-12 2021-10-01 工银科技有限公司 Webpage rendering method and device, electronic equipment and computer-readable storage medium
CN114827276A (en) * 2022-04-22 2022-07-29 网宿科技股份有限公司 Data processing method and device based on edge calculation and readable storage medium
CN114996138A (en) * 2022-06-10 2022-09-02 苏州工业园区凌志软件股份有限公司 Test data processing method and device, electronic equipment and server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483614B (en) * 2017-08-31 2021-01-22 京东方科技集团股份有限公司 Content scheduling method and communication network based on CDN (content delivery network) and P2P network

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516334A (en) * 2015-12-25 2016-04-20 上海帝联信息科技股份有限公司 CDN (content delivery network) file delivery system
CN111182083A (en) * 2020-02-11 2020-05-19 腾讯科技(深圳)有限公司 Equipment control method and device and edge equipment
CN111586114A (en) * 2020-04-24 2020-08-25 腾讯科技(深圳)有限公司 Business cooperative processing method and related equipment
CN112463882A (en) * 2020-11-20 2021-03-09 广东省安心加科技有限公司 Data synchronization method, cloud platform and edge terminal
CN113010604A (en) * 2021-03-18 2021-06-22 湖北亿咖通科技有限公司 Map data synchronization method, system, cloud server and storage medium
CN113468456A (en) * 2021-07-12 2021-10-01 工银科技有限公司 Webpage rendering method and device, electronic equipment and computer-readable storage medium
CN114827276A (en) * 2022-04-22 2022-07-29 网宿科技股份有限公司 Data processing method and device based on edge calculation and readable storage medium
CN114996138A (en) * 2022-06-10 2022-09-02 苏州工业园区凌志软件股份有限公司 Test data processing method and device, electronic equipment and server

Also Published As

Publication number Publication date
CN115604345A (en) 2023-01-13

Similar Documents

Publication Publication Date Title
CN102355500B (en) Service push method and device
CN111787126B (en) Container creation method, server, and storage medium
CN110365724B (en) Task processing method and device and electronic equipment
CN112822061B (en) Method and system for exposing service to outside by edge node
CN109104368B (en) Connection request method, device, server and computer readable storage medium
US8751560B2 (en) Method and device arrangement for managing a client/server environment
CN113691635A (en) Method and device for calling micro service, electronic equipment and readable storage medium
CN113507516A (en) File service method, access server, computer device and storage medium
CN114328097A (en) File monitoring method and device, electronic equipment and storage medium
CN115604345B (en) Development method of application program and computer readable storage medium
CN111142885B (en) eSIM equipment management method, device, equipment and storage medium
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN115794396A (en) Resource allocation method, system and electronic equipment
CN115080068A (en) Resource file transmission method, device, equipment and storage medium
CN110198225A (en) A kind of management method and management server of more clusters
CN109547552B (en) API request processing method and device, storage medium and electronic equipment
CN115269530A (en) Data synchronization method, electronic device and computer-readable storage medium
CN112380411A (en) Sensitive word processing method and device, electronic equipment, system and storage medium
CN112068899A (en) Plug-in loading method and device, electronic equipment and storage medium
CN111404979B (en) Method and device for processing service request and computer readable storage medium
CN113271229B (en) Equipment control method and device, storage equipment, safety equipment, switch, router and server
CN109656689B (en) Task processing system and task processing method
CN115604114A (en) Operation and maintenance method of application program and computer readable storage medium
CN114880276A (en) Distributed cluster management method and device, storage medium and electronic equipment
CN116132366A (en) Traffic management method, traffic management device, electronic equipment and storage 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