CN115604345A - 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
CN115604345A
CN115604345A CN202211199201.XA CN202211199201A CN115604345A CN 115604345 A CN115604345 A CN 115604345A CN 202211199201 A CN202211199201 A CN 202211199201A CN 115604345 A CN115604345 A CN 115604345A
Authority
CN
China
Prior art keywords
shared data
edge server
version information
operation request
updated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211199201.XA
Other languages
Chinese (zh)
Other versions
CN115604345B (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

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to the technical field of software, in particular to a development method of an application program and a computer readable storage medium. In the application, the electronic device sends a first operation request to a first edge server. And 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 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 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. And the first edge server sends the updated shared data to the electronic equipment. The service management method and the service management system can realize a scene of managing the service by multilayer organization through the cloud server, the edge server and the electronic equipment. Therefore, the efficiency of interaction between the servers is improved when the application program is developed.

Description

Method for developing application program and computer-readable storage medium
Technical Field
The present application relates to the field of software technologies, and in particular, to a method for developing an application program and a computer-readable storage medium.
Background
With the development of network technology, information exchange among users in different regions is gradually increased, and data transmission among users is also gradually increased. Data sharing can realize data transmission among users, and users using different terminals in different regions can acquire data of other people and perform operations.
Currently, data sharing may store data through a server and may transmit data to a user terminal. After the user terminal receives the data, the user can operate on the data. For example, for a multi-person real-time collaborative cloud document, multiple users may obtain the document from a server and modify the document. And then, the server integrates and stores the plurality of modified documents. However, the conventional method for managing data only by a server is a flat 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, 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 equipment sends a first operation request to the first edge server, wherein the first operation request is used for indicating that a target operation event is executed on the shared data. And 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 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 that the target operation event is executed on the shared data. And 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. And then, the first edge server sends the updated shared data to the electronic equipment, wherein the updated shared data is the data updated by the first edge server or the data updated by the cloud server. And the updated shared data is the shared data after the target operation event is executed.
In some implementations, the method for developing the application further includes: 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. And 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 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 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 includes: and if the third version information is the same as the first version information, the first edge server updates the first version information and determines 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.
In some implementations, the method for developing the application further includes: and the electronic equipment sends a third operation request to the first edge server, wherein the third operation request is used for indicating that the updated shared data is sent 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 the application further includes: the electronic equipment sends a fourth operation request to the first edge server, the fourth operation request is used for indicating that updated shared data are sent to the second edge server, and the second edge server and the cloud server perform 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 an application development method, 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:
receiving a first operation request from the electronic equipment, wherein the first operation request is used for indicating that a target operation event is executed on the shared data. And 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, where the second operation request is used to instruct to execute a 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. Receiving updated shared data from the cloud server. And sending the updated shared data to the electronic equipment, wherein the updated shared data is the data updated by the first edge server or the data updated by the cloud server. And the updated shared data is the shared data after the target operation event is executed.
In some implementations, the method for developing the application further includes: and acquiring first version information, wherein the first version information is the version information of the un-updated shared data in the first edge server. And updating the first version information, and determining second version information, wherein the second version information is the version information of the updated shared data. 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 electronic equipment 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 further includes: and 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 method for updating the first version information and determining the second version information includes: and 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 if the third version information is different from the first version information, sending the first version information to the electronic equipment.
In some implementations, the method for developing the application further includes: and receiving a third operation request from the electronic equipment, wherein the third operation request is used for indicating that the updated shared data is sent 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 the application further includes: and receiving a fourth operation request from the electronic device, wherein 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 perform data transmission. And if the first edge server stores the updated shared data, responding to the fourth operation request, and sending the updated shared data to the second edge server through the cloud server. And/or if the updated shared data is not stored in the first edge server, sending a fifth operation request to the cloud server, where the fifth operation request is used to instruct to send 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, 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 the execution of the 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. 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 instructing to execute a 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, 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. And the updated shared data is the shared data after the target operation event is executed.
In some implementations, the method for developing the application further includes: and receiving second version information from the first edge server, wherein the second version information is the version information of the updated shared data determined by the first edge server to update the received first version information, and the first version information is the version information of the shared data which is not updated in the first edge server. Updating version information of 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 further includes: 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: and if the third version information is the same as the first version information, the first edge server updates the first version information and determines 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.
In some implementations, the method for developing the application 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, sends the updated shared data to the cloud server, and/or deletes the updated shared data.
In some implementations, the method for developing the application further includes: and sending a fourth operation request to the first edge server, wherein the fourth operation request is used for indicating that the updated shared data is sent to the second edge server, and the second edge server and the cloud server perform data transmission, so that the first edge server responds to the fourth operation request and sends the updated shared data to the second edge server in response to the fourth operation request under the condition that the updated shared data is stored in the first edge server. And/or sending a fifth operation request to the cloud server when the updated shared data is not stored in the first edge server, wherein the fifth operation request is used for indicating to send 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, where the method is applied to a cloud server, and the 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, receiving a second operation request from the first edge server, wherein the second operation request is used for indicating that a target operation event is executed on the shared data. And 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 the target operation event is executed. The first operation request is used for indicating that a target operation event is executed on the shared data.
In some implementations, the method for developing the application further includes: in a case where the first edge server receives a third operation request from the electronic device, updated shared data from the first edge server is received. The third operation request is used for indicating that the updated shared data are sent to the cloud server.
In some implementations, the method for developing the application further includes: under the condition that the first edge server receives a fourth operation request from the electronic device, the fourth operation request is used for indicating that updated shared data are sent to a second edge server, and the second edge server and the cloud server perform data transmission. And if the first edge server stores the updated shared data and responds to the fourth operation request, sending the updated shared data stored by the first edge server to the second edge server. And/or receiving a fifth operation request from the first edge server if the updated shared data is not stored in 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 responding to the fifth operation request, and sending the updated shared data to the second edge server.
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 aspect to the fifth aspect, 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 that a 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 the target operation event is executed. Thereafter, the first edge server may 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 instruct 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. Thereafter, the first edge server may send the updated shared data to the electronic device. Therefore, the application program development method can realize a scene of managing services by multilayer organization through the cloud server, the edge server and the electronic equipment. Therefore, the efficiency of interaction 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.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application and are not to be construed as limiting the application.
Fig. 1 is a schematic structural diagram of an application development system according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a method for developing an application according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for developing an application according to an embodiment of the present application;
fig. 4 is another schematic flowchart of a method for developing an application according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a method for developing an application according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another method for developing an application according to an embodiment of the present application;
fig. 7 is a schematic flowchart of a method for developing an application according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an application program development apparatus according to an embodiment of the present application;
fig. 9 is another schematic structural diagram of an application program development device according to an embodiment of the present application;
fig. 10 is another schematic structural diagram of an application program 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 make the technical solutions of the present application better understood by those of ordinary skill in the art, the technical solutions in 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 claims of this application and in the accompanying drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended 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" is used to describe the association relationship of the associated objects, and means that there may be three relationships. For example, a and/or B, may represent: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Currently, data sharing may store data through a server and may transmit data to a user terminal. After the user terminal receives the data, the user can operate on the data. For example, for a multi-person real-time collaborative cloud document, multiple users may obtain the document from a server and modify the document. And then, the server integrates and stores the plurality of modified documents. However, the conventional method for managing data only by a server is a flat management method, and cannot support a management service scenario of a multi-layer organization.
Based on this, an embodiment of the present application provides a method for developing an application program, where the method may include: the electronic equipment sends a first operation request to the first edge server, wherein the first operation request is used for indicating that a target operation event is executed 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. And if the first edge server stores the shared data, executing the target operation event on the shared data by the first edge server, and generating updated shared data. And if the first edge server does not store the shared data, executing the target operation event on the shared data by the cloud server, generating the updated shared data and sending the updated shared data to the first edge server. The first edge server may send the updated shared data to the electronic device. Therefore, the application development method can realize a scene of managing services by multilayer organization through the cloud server, the edge server and the electronic equipment. Therefore, the efficiency of interaction between the servers is improved when the application program is developed.
The following describes an implementation environment of embodiments of the present application.
Fig. 1 is a schematic structural diagram of an application development system according to an embodiment of the present disclosure. The development system of the application program can comprise: 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).
There is only one cloud server 101, and there may be a plurality of edge servers (such as the edge server 102, the edge server 103, and the edge server 104) that perform data transmission with the cloud server 101, and of course, in an actual application, only one edge server may be provided to perform data transmission with the cloud server 101. There may be a plurality of electronic devices (e.g., electronic device 105, electronic device 106, electronic device 107 and edge server 102) performing data transmission with each edge server (e.g., edge server 102); or there may be one (e.g., electronic device 108) per edge server (e.g., edge server 103) for data transfer.
The cloud server 101 may be configured to store data of an application (for example, a name of the application, a development code of the application, version information of the application, and the like, which are not listed here). The cloud server 101 may further be configured to perform data transmission with at least one edge server. For example, the cloud server 101 may receive data from an application of an edge server (e.g., edge server 102). For another example, the cloud server 101 may also send data of the application to an edge server (e.g., the edge server 102).
It should be noted that the edge server performing data transmission with the cloud server is an edge server trusted by the cloud server. The edge server trusted by the cloud server may be an edge server in which the authentication identifier is stored in the cloud server. That is, the cloud server stores a plurality of authentication identities, and each edge server may generate one authentication identity. For example, if the authentication identifier of the third edge server exists in the plurality of authentication identifiers of the cloud server, the third edge server is an edge server trusted by the cloud server. And if the authentication identifier of the third edge server does not exist in the plurality of authentication identifiers of the cloud server, the third edge server is not the edge server trusted by the cloud server.
An edge server, such as edge server 102, may be used to store data for the application. The edge server (e.g., edge server 102) may also be configured to perform 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 perform the target operation event based on the operation request; as another example, an edge server (e.g., edge server 102) may also send an operation request to the cloud server. As 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, such as electronic device 105, may be used for data transfer with an edge server, such as 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). As 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).
The cloud server 101 may be in wired/wireless communication with edge servers, such as 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, the cloud server 101 may communicate with an edge server (e.g., edge server 102) via satellite communication. For another example, the cloud server 101 may communicate with an edge server (e.g., edge server 102) via spread spectrum microwave communication. As another example, cloud server 101 may communicate with an edge server (e.g., edge server 102) via data transfer station communication.
The 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 provided in an embodiment of the present application may include:
s201, the electronic equipment sends a first operation request to a first edge server.
The first operation request is used for indicating that a target operation event is executed on the shared data.
In one possible design, the shared data may include at least one of: name of the application, type of the application, code to develop the application.
Illustratively, the name of the application may include: APP1, APP2 and APP3. The types of applications may include: a single document (e.g., notepad), multiple documents (e.g., word), a basic dialog box. The code for developing the application may include: create, delete, rename.
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. As another example, the target operational event may be a modify operational event. As another example, the target operational event may be a delete operational event.
For example, the first operation request may be used to indicate that a rename operation event is performed on APP 1. The first operation request may also be used to indicate that a create operation event is performed on APP2, i.e., an operation event that creates APP 2. The first operation request may also be used to indicate a delete operation event to be performed on APP3, i.e. an operation event to delete data of APP3.
In a possible implementation manner, the electronic device may obtain the first operation request through a preset obtaining manner. Thereafter, the electronic device may send a first operation request to the first edge server.
In one possible design, the preset obtaining manner may be to read a code of a User Interface (UI) in an Integrated Development Environment (IDE). That is, the electronic device may read the encoding of the UI in the IDE, thereby obtaining the first operation request.
Illustratively, suppose a first operation request is used to indicate a modify operation event is performed on the name of APP 1. The electronic device can obtain the event of executing the modification operation 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 performed on the name of APP1 to the first edge server.
In this embodiment, 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, shared data needs to be stored in a device that executes a 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. And if the shared data is stored in the edge server, executing the target operation event on the shared data by the edge server. And if the shared data is stored in the cloud server, executing the target operation event on the shared data by the cloud server. Based on this, S202 is executed.
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 the plurality of data to determine whether the plurality of data includes data that is the same as the shared data. If the plurality of data includes the same data as the shared data, the first edge server may determine that the first edge server stores the shared data. If the plurality of data does not include 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, suppose the plurality of data includes: APP1, APP2 and APP3. If the first operation request is a modification operation event performed on APP1, the first edge server may determine that the first edge server stores shared data. If the first operation request is a delete operation event performed 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 execute S203.
In some embodiments, if the first edge server does not store the shared data, the first edge server may execute S204.
In some embodiments, if the first edge server stores the shared data, the first edge server may execute S203. If the first edge server does not store the shared data, the first edge server may execute S204.
And S203, if the shared data is stored in the first edge server, 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 the updated shared data is the shared data after the target operation event is executed.
For example, if the target operation event is to modify the name of the application, the updated shared data includes: the modified name of the application. If the target operation event is to create an application, the updated shared data includes: data created by the application. If the target operation time is to delete the application program, the updated shared data includes: and the application program deletes the data.
In one possible implementation, the first edge server stores shared data. The first edge server may execute the target operation event on the shared data, generating updated shared data.
For example, if the first operation request is used to indicate that the name of APP1 is modified to APP5, the first edge server may perform a rename operation event on APP1 to generate 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 to generate the 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.
And S204, if the shared data is not stored in the first edge server, the first edge server sends a second operation request to the cloud server.
And the second operation request is used for indicating that the target operation event is executed on the shared data.
It should be noted that, in this embodiment of the application, the first operation request is specifically used to instruct the first edge server to execute the target operation event on the shared data, and the second operation request is specifically used 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 specific introduction 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 again.
In this embodiment, 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.
And S205, 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.
In one possible implementation, the cloud server stores shared data. The cloud server may execute the target operation event on the shared data, and generate updated shared data. Thereafter, the cloud server may send the updated shared data to the first edge server.
For example, if the second operation request is used to indicate that the input function of APP4 is deleted, the cloud server may execute a deletion operation event on APP4, and generate APP4 without an input function. Thereafter, the cloud server may send APP4 without the input function to the first edge server.
In this way, when the edge server does not store the shared data and the cloud server stores the shared data, the edge server may send the second operation request to the cloud server. 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.
In this embodiment, 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 data updated by the first edge server or data updated by 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. Thereafter, the first edge server may send the updated shared data received from the cloud server to the electronic device.
That is to say, in the embodiment of the application, the edge server or the cloud server performs updated shared data, and the updated shared data is finally sent to the electronic device by the edge server, so that the electronic device feeds back an operation result to the user through the client after receiving the updated shared data from the edge server.
It should be noted that, in the embodiment of the present application, the client may perform data transmission with the electronic device. Among other things, a client may be a program that provides local services to a user. For example, the client may be a locally running application. As 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 can be deployed on the electronic device and can also be deployed on other hardware devices.
In this embodiment, 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 to be appreciated that the electronic device can send a first operation request to the first edge server, the first operation request indicating that a target operation event is to be 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 the target operation event is executed. Thereafter, the first edge server may 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 instruct 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. Thereafter, the first edge server may send the updated shared data to the electronic device. Therefore, the application development method can realize a scene of managing services by multilayer organization through the cloud server, the edge server and the electronic equipment. Therefore, the efficiency of interaction between the servers is improved when the application program is developed.
In some embodiments, in a case that the communication between the electronic device and the edge server, and between the edge server and the cloud server is normal, the electronic device may perform data transmission with the edge server according to a preset synchronization policy. Similarly, the edge server may perform data transmission with the cloud server according to a preset synchronization policy.
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 direct connection synchronization policy. For another example, the preset synchronization policy may be a policy with a dual threshold of data write times and synchronization cycles, that is, data transmission is performed when the preset times are met or the preset cycles are met. The preset times and the preset period may be set by a developer.
It is understood that, in a case where the communication between the electronic device and the edge server, and between the edge server and the cloud server is normal, when the user accesses the shared data stored in the edge server and/or the cloud server on the side of the electronic device, 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 to manually operate in the process of accessing the shared data, the operation steps of the user are simplified, and the efficiency of data transmission is improved.
In some embodiments, where the first edge server stores the shared data, the first edge server may update version information of the shared data. As shown in fig. 3, after S203, the method for developing an application program may further include: S301-S304.
S301, the first edge server obtains 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 manner, the first edge server stores the relationship between the 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 identifiers, and an identifier of the shared data. For example, the version information of the data may be a changed version number of the data, and the data identifier may be a name of the data. If the plurality of data includes: the name of data 1 is APP1, the name of data 2 is APP2, and the name of data 3 is 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. Then version information for APP1 is 3.0, version information for app2 is 1.0, and version information for app3 is 2.6. If the shared data is identified as 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 a first version of information from the electronic device.
Optionally, the first edge server may send a sixth operation request to the electronic device, where the sixth operation request is used to instruct to send the first version information to the first edge server.
In the embodiment of the present application, the execution order of S301 is not limited. For example, when the electronic device transmits the 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 second version information.
And the second version information is the version information of the updated shared data.
Illustratively, if the first version information is 2.0 and the updated version information of the 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 the version information of the shared data according to a preset sequence. Thereafter, the first edge server may determine second version information.
It should be noted that, in the embodiments of the present application, the preset sequence is not limited. For example, in the usual case, the preset sequence may be monotonically increasing. As another example, the predetermined sequence may be monotonically decreasing.
Illustratively, if the predetermined 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 the updated version information of APP1, the second version information is 3.1. The first edge server sends the updated version information of APP1 to the electronic device to be 3.1.
In the embodiment of the present application, the execution order 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 transmit the second version information to the electronic device after transmitting the updated shared data to the electronic device (S206). For another example, the first edge server may transmit the second version information to the electronic device before transmitting 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 equipment updates the version information of the shared data operated in the electronic equipment based on the second version information.
In an embodiment of the present 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 manner, 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, where the fourth version information is version information of shared data operated in the electronic device.
For example, if the second version information is version information 3.1 after APP1 is updated, 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 is understood that the first edge server may obtain the first version information, where the first version information is version information of the shared data that is not updated in the first edge server. Then, the first edge server may update the first version information, and determine second version information, where the second version information is version information of the updated shared data. Thereafter, the first edge server may send the second version information to the electronic device. The electronic device may update version information of shared data operated therein based on the second version information. Therefore, the version information read by the user to the shared data can be the latest updated version information, and the real-time performance of the shared data is guaranteed.
It should be noted that, due to an unstable or faulty network communication state, version information of data stored in an electronic device, an edge server, or the like may be different. This may result in the user not having access to the latest version of the data.
In some embodiments, as shown in fig. 4, before 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 method for developing the application program may further include: 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 equipment.
Illustratively, assuming that the shared data operated in the electronic device is APP1, the 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, assuming that the first operation request is to rename APP1 to APP5, the version information of APP1 is 3.0. The electronic device may send the first operation request and version information of APP1 to the first edge server.
In some embodiments, after the electronic device sends the third version information to the first edge server, the first edge server may receive the third version information from the electronic device.
S402, the first edge server determines whether the third version information is the same as 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 the same as 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 the same as 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.
In the embodiment of the present application, if the third version information is the same as the first version information, it is described that the version information of the shared data is not 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 a 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.
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, it indicates 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.
For example, 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.
And 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 second version information.
It should be noted that, in the embodiment of the present application, for the introduction of "the first edge server updates the first version information and determines the second version information", reference may be made to the description of "the first edge server updates the first version information and determines the second version information" in S302, which is not described herein again.
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). Thereafter, 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).
And 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 a possible implementation manner, 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 indicates 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 an unstable or failed network communication state.
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, update the first version information, and 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 indicates that the first version information conflicts with the third version information.
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 operated in the electronic device. The first edge server may determine whether the third version information is the same as the first version information. 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. 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. Therefore, even under the conditions of development environment isolation and network instability caused by wide distribution regions of APP developers, the fact that the version information read by the user to the shared data can be the latest updated version information can be still guaranteed, the real-time performance and the accuracy of the shared data are guaranteed, and the user experience is improved.
It should be noted that, in the embodiment of the present application, the execution order of updating the shared data and the update 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 and then update the shared data.
In some embodiments, the method for developing 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 the third operation request to the first edge server. The third operation request is used for indicating that the updated shared data are sent to the cloud server. Thereafter, 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.
It should be noted that, for the introduction 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, and details are not described here.
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 is to be understood that the electronic device may send a third operation request to the first edge server, where the third operation request is used to instruct to send 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, and movement of the shared data is realized.
It should be noted 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 by 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 may be appreciated 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 can be stored in the edge server or the cloud server, and the storage load of the development system of the application program is reduced.
If the user needs to move the data in the first edge server to the second edge server, the first edge server and the second edge server cannot perform data transmission, so that the user cannot directly move the data from the first edge server to the second edge server. 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 that the updated shared data are sent to the second edge server, and the second edge server and the cloud service perform data transmission.
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.
It should be noted that, for the introduction 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, and details are not described here.
In some embodiments, after the electronic device sends the fourth operation request to the first edge server, the first edge server may receive the fourth operation request from the electronic device.
S502, the first edge server determines whether the first edge server stores the updated shared data.
It should be noted that, for the first edge server determining whether the first edge server stores the introduction of the updated shared data, reference may be made to the description of the first edge server determining whether the first edge server stores the shared data in S202, which is not described herein again.
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.
And 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. Thereafter, 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 data transmission between the first edge server and the second edge server is not possible.
And S504, if the updated shared data is not stored in the first edge server, the first edge server sends a fifth operation request to the cloud server.
And the fifth operation request is used for indicating the updated shared data to be sent to the second edge server.
In one possible implementation, the electronic device may send the 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 sends 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.
And 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 and the cloud server stores the updated shared data, the cloud server is instructed to send the updated shared data to the second edge server.
It is understood that the electronic device may send a fourth operation request to the first edge server, where the fourth operation request is used to instruct to send the updated shared data to the second edge server, and 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 may 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 to send 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 updated shared data to the second edge server. Or, the user may instruct the cloud server to send the updated shared data to the edge server, so that the shared data is moved.
In some embodiments, as shown in fig. 6, the end may be an electronic device in the embodiment of the present application, the edge may be a first edge server in the embodiment of the present application, and the cloud may be a cloud server in the embodiment of the present application. The user can operate the shared data in the electronic equipment, 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 shared data sent from the first edge server, and the shared data may be data of "read" application 1. Similarly, the first edge server may send a second operation request to the cloud server, and the second operation request may "write" the data of application 2. The first edge server may receive shared data sent from the cloud server, and the shared data may be data of "read" application 2. The cloud server may also send the 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.
It should be noted that, in a case where 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 case that the communication between the first edge server and the cloud server fails, the cloud server cannot receive the second operation request from the first edge server. Thus, the first operation request and the second operation request may be lost.
Further, the electronic device may store the first operation request if communication between the electronic device and the first edge server fails. Similarly, if the 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 loss of the first operation request and the second operation request can be avoided, and when the 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.
Referring to 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 by the cloud server to the first edge server and/or the electronic device.
In this way, in the event of a failure in the communication between the first edge server and the electronic device, if the user performs an operation on the shared data in the first edge server and/or the cloud server, 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 of the 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 the communication between the first edge server and the cloud server, the user may develop the shared data stored by the electronic device and/or the first edge server.
The foregoing describes the solution provided by an embodiment of the present application, primarily from the perspective of a computer device. It is understood that the computer device comprises hardware structures and/or software modules for performing the functions in order to realize the functions. Those of skill in the art will readily appreciate that the steps of the method for developing the exemplary application programs described in connection with the embodiments disclosed herein may be implemented as hardware or a combination of hardware and computer software. Whether a function is performed as hardware or computer software drives 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 can comprise: the system comprises a cloud server, at least one edge server and 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 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 one of 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 used for performing data transmission with the first edge server in at least one electronic device.
The first electronic device is further used for sending a first operation request to the first edge server, wherein the first operation request is used for indicating that a target operation event is executed on the shared data. The first electronic device is further configured to receive the updated shared data from the first edge server.
The first edge server is further used for receiving a first operation request from the first electronic equipment.
And the first edge server is further used for executing the target operation event on the shared data according to the first operation request and generating updated shared data under the condition that the shared data is stored in the first edge server. And the updated shared data is the shared data after the target operation event is executed.
The first edge server is further used for sending a second operation request to the cloud server when the shared data is not stored in the first edge server, wherein the second operation request is used for indicating that a target operation event is executed on the shared data, and receiving the shared data updated by the cloud server from the cloud server.
The first edge server is further configured to send updated shared data to the electronic device, where the updated shared data is data updated by the first edge server or data updated by the cloud server.
And the cloud server is also used for receiving a second operation request from the first edge server.
And the cloud server is further used for 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.
The embodiment of the application also provides a device for developing the application program. The device for developing 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.
In the embodiment of the present application, the development of the application program may be divided into the functional modules or the functional units according to the above method examples, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 8 is a schematic structural diagram of an application program development apparatus according to an embodiment of the present disclosure. The application development device is configured to execute 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 respectively performs data transmission with a cloud server and an electronic device. 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, 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. The processing unit 803 is configured to, if the shared data is stored in the first edge server, execute a 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 a 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 updated shared data to the electronic device, where the updated shared data is data updated by the first edge server or data updated by the cloud server. And the updated shared data is the shared data after the target operation event is executed.
It should be noted that other functions of the obtaining unit 801, the sending unit 802, and the processing unit 803 are not listed here, and specifically refer to the functions involved in the application program development methods shown in fig. 2, fig. 3, fig. 4, fig. 5, fig. 6, and fig. 7.
Fig. 9 is a schematic structural diagram of a further application program development device according to an embodiment of the present application. The application development device is configured to execute 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 performs data transmission with a first edge server, and the first edge server performs data transmission with a cloud server. The development apparatus of the application program may include an acquisition unit 901, a transmission unit 902, and a processing unit 903.
A sending unit 902, configured to send a first operation request to the first edge server, where the first operation request is used to instruct execution of a target operation event on shared data, so that after receiving the first operation request, 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 stores the shared data. And 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 that a target operation event is executed 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, generates updated shared data and sends the updated shared data to the first edge server. An obtaining unit 901, configured to receive updated shared data from a first edge server, where the updated shared data is data updated by the first edge server or data updated by a cloud server. And the updated shared data is the shared data after the target operation event is executed.
In some implementations, the apparatus for developing an application further includes: the obtaining unit 901 is specifically configured to receive second version information from the first edge server, where the second version information is version information of updated shared data that is determined by the first edge server to update 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. A processing unit 903, configured to update version information of shared data operated therein based on the second version information.
It should be noted that other functions of the obtaining unit 901, the sending unit 902, and the processing unit 903 are not listed here, and specific reference may be made to the functions involved in the application program development methods shown in fig. 2, fig. 3, fig. 4, fig. 5, fig. 6, and fig. 7.
Fig. 10 is a schematic structural diagram of a device for developing another application provided in the embodiment of the present application. The application development device is configured to execute 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 cloud server, 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 apparatus of the application program may include an acquisition unit 1001, a transmission unit 1002, and a processing unit 1003.
An obtaining unit 1001, configured to receive a second operation request from the first edge server in a case where the first edge server receives the first operation request from the electronic device and 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. 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 shared data after executing the target operation event. The first operation request is used for indicating that a target operation event is executed on the shared data.
In some implementations, the apparatus for developing an application further includes: the obtaining unit 1001 is specifically configured to, in a case that the first edge server receives a fourth operation request from the electronic device, instruct to send the updated shared data to a 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 updated shared data is not stored in the first edge server, 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.
It should be noted that other functions of the obtaining unit 1001, the sending unit 1002, and the processing unit 1003 are not listed here, and specific reference may be made to the functions involved in the application program development methods shown in fig. 2, fig. 3, fig. 4, fig. 5, fig. 6, and fig. 7.
Fig. 11 shows still another possible structure of the application development device involved in the above-described embodiment. The development device for the application program 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, to perform various steps in the method flows shown in the above-described method embodiments, and/or to perform other processes of the techniques described herein. The communication interface 1102 is used to support the development device of the application in communicating with other network entities. The application development device may further comprise a memory 1103 and a bus 1104, the memory 1103 being used for storing program codes and data of the device.
The processor 1101 described above may implement or execute various exemplary logical blocks, units and circuits described in connection with the present disclosure. The processor may be a central processing unit, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, units, and circuits described in connection with the present disclosure. A processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, a DSP and a microprocessor, or 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, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
Bus 1104 may be an 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 this is not intended to represent only one bus or type of bus.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
As described above, in the embodiments of the present application, the functional modules may be divided according to the above method examples for each execution subject involved in the development method of the application program. The integrated module can be realized in a hardware form, and can also be realized in a software functional module form. In addition, it should be noted that, in the embodiment of the present application, division of a module is schematic, and is only one logic function division, and another division manner may be provided in actual implementation. For example, the functional blocks may be divided for the respective functions, or two or more functions may be integrated into one processing block.
The specific manner in which each module executes the operation and the beneficial effects of the development apparatus for the application program in the foregoing embodiments have been described in detail in the foregoing method embodiments, and are not described again here.
An embodiment of the present application further provides a development device, where the development device may include: a processor, a memory for storing processor-executable instructions; the processor is configured to execute the instructions, causing 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 server and cloud server. 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 developing device may further include: an electronic device and an edge server. The developing device may further include: electronic equipment, edge server and cloud server.
In an exemplary embodiment, the present application further provides 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 a method as in the preceding embodiments.
Alternatively, the computer-readable storage medium may be a non-transitory computer-readable storage medium, 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 further provides a computer program product, which includes computer readable code or a non-volatile computer readable storage medium carrying computer readable code, when the computer readable code runs in a development device, a processor in the development device implements the method as in the foregoing embodiment.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention 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 invention 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 will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (15)

1. The development method of the application program is characterized in that a first edge server respectively carries out data transmission with a cloud server and 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 that a target operation event is executed on shared data;
if the shared data is stored in the first edge server, 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 like, and/or,
if the shared data is not stored in the first edge server, the first edge server sends a second operation request to the cloud server, wherein the second operation request is used for indicating that the target operation event is executed 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 device, wherein the updated shared data is data updated by the first edge server or data updated by the cloud server;
and the updated shared data is the shared data after the target operation event is executed.
2. The method of claim 1, further comprising:
the first edge server acquires first version information, wherein the first version information is the version information of the 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 version information of the updated shared data;
the first edge server sends the second version information to the electronic equipment;
the electronic device updates version information of shared data operated therein based on the second version information.
3. The method of claim 2, wherein before the first edge server updates the first version information and determines the second version information, the method further comprises:
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 second version information, and the method 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 like and/or,
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.
4. The method according to any one of claims 1-3, further comprising:
the electronic equipment sends a third operation request to the first edge server, wherein the third operation request is used for indicating that the updated shared data is sent 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.
5. The method according to any one of claims 1-3, further comprising:
the electronic equipment sends a fourth operation request to the first edge server, wherein the fourth operation request is used for indicating that the updated shared data is sent to a second edge server, and the second edge server and the cloud server perform data transmission;
if the updated shared data is stored in the first edge server, 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 like, and/or,
if the updated shared data is not stored in the first edge server, the first edge server sends a fifth operation request to the cloud server, wherein the fifth operation request is used for indicating that the updated shared data is sent to the second edge server;
the cloud server responds to the fifth operation request and sends the updated shared data to the second edge server.
6. The development method of the application program is characterized by being applied to a first edge server, wherein the first edge server respectively carries out data transmission with a cloud server and an electronic device; the method comprises the following steps:
receiving a first operation request from the electronic equipment, wherein the first operation request is used for indicating that a target operation event is executed on shared data;
if the shared data is stored in the first edge server, executing the target operation event on the shared data according to the first operation request, and generating updated shared data; and/or the like, and/or,
if the shared data is not stored in the first edge server, 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 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;
receiving the updated shared data from the cloud server;
sending the updated shared data to the electronic device, wherein the updated shared data is the data updated by the first edge server or the data updated by the cloud server;
and the updated shared data is the shared data after the target operation event is executed.
7. The method of claim 6, further comprising:
acquiring first version information, wherein the first version information is the version information of the shared data which is not updated in the first edge server;
updating the first version information, and determining second version information, wherein the second version information is the version information of the updated shared data;
sending the second version information to the electronic device to enable the electronic device to update the version information of the shared data operated in the electronic device based on the received second version information.
8. The method of claim 7, wherein before the first edge server updates the first version information and determines the second version information, the method further comprises:
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 updating the first version information and the determining the second version information include:
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 like and/or,
and if the third version information is different from the first version information, sending the first version information to the electronic equipment.
9. The method according to any one of claims 6-8, further comprising:
receiving a third operation request from the electronic device, wherein the third operation request is used for indicating that the updated shared data is sent 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.
10. The method for developing the application program is applied to electronic equipment, wherein the electronic equipment is in data transmission with a first edge server, and the first edge server is in 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 that a target operation event is executed on shared data, so that after the first edge server receives the first operation request, 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 shared data is not stored in the first edge server, sending a second operation request to the cloud server, where the second operation request is used to instruct the cloud server 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, 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;
and the updated shared data is the shared data after the target operation event is executed.
11. The method of claim 10, further comprising:
receiving second version information from the first edge server, where the second version information is version information of updated shared data determined by the first edge server to update the received first version information, and the first version information is version information of the shared data that is not updated in the first edge server;
updating version information of shared data operated therein based on the second version information.
12. The method of claim 11, wherein before the first edge server updates the first version information and determines the second version information, the method further comprises:
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 device; and/or the like and/or,
the method further comprises the following steps:
sending a third operation request to the first edge server, where the third operation request is used to instruct to send the updated shared data to the cloud server, so that the first edge server sends the updated shared data to the cloud server in response to the third operation request, and/or deletes the updated shared data.
13. The method for developing the application program is applied to a cloud server, 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 under the condition that the first edge server receives a first operation request from the electronic equipment and shared data is not stored in the first edge server, wherein the second operation request is used for indicating that a target operation event is executed on 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 device 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 that the target operation event is executed on the shared data.
14. The method of claim 13, further comprising:
receiving the updated shared data from the first edge server in a case that the first edge server receives 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.
15. A computer-readable storage medium comprising a computer program which, when run on a development device, causes the development device to implement the method of any of claims 1-5, claims 6-9, claims 10-12, or claims 13-14.
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 true CN115604345A (en) 2023-01-13
CN115604345B 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 (9)

* 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
US20190068701A1 (en) * 2017-08-31 2019-02-28 Boe Technology Group Co., Ltd. Content Scheduling Method Based on CDN and P2P Network, and Communication Network
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

Patent Citations (9)

* 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
US20190068701A1 (en) * 2017-08-31 2019-02-28 Boe Technology Group Co., Ltd. Content Scheduling Method Based on CDN and P2P Network, and Communication Network
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
CN115604345B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
CN106936899B (en) Configuration method of distributed statistical analysis system and distributed statistical analysis system
CN111787126B (en) Container creation method, server, and storage medium
CN113961510B (en) File processing method, device, equipment and storage medium
CN111800468A (en) Cloud-based multi-cluster management method, device, medium and electronic equipment
CN113094430B (en) Data processing method, device, equipment and storage medium
CN111240892A (en) Data backup method and device
US8751560B2 (en) Method and device arrangement for managing a client/server environment
CN116805946A (en) Message request processing method and device, electronic equipment and storage medium
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN115604345B (en) Development method of application program and computer readable storage medium
CN112241398A (en) Data migration method and system
CN116132530A (en) Method for realizing MQTT Broker server by applying Raft algorithm based on Netty framework
CN114827177A (en) Deployment method and device of distributed file system and electronic equipment
CN114546591A (en) Mirror image file sharing method, container cluster management system and related equipment
CN115269530A (en) Data synchronization method, electronic device and computer-readable storage medium
CN106407320B (en) File processing method, device and system
CN111488324A (en) Distributed network file system based on message middleware and working method thereof
CN115604114B (en) Operation and maintenance method of application program and computer readable storage medium
CN113271229B (en) Equipment control method and device, storage equipment, safety equipment, switch, router and server
CN111404979B (en) Method and device for processing service request and computer readable storage medium
CN110543351A (en) Data processing method and computer device
US11853560B2 (en) Conditional role decision based on source environments
CN112578996B (en) Metadata sending method of storage system and storage system
CN115604114A (en) Operation and maintenance method of application program and computer readable storage medium
KR20170007053A (en) Method and System for Transaction in the M2M/IoT Platform

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