A data acquisition method and device, electronic equipment and readable storage medium
By deploying computing programs developed by the business side and action programs developed by the platform side in the edge device cluster, we have achieved efficient, secure and low-cost data acquisition from edge devices, and solved the cross-compilation problem caused by the diversity of device types.
Patent Information
- Application Number
- CN202211457898.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-21
- Publication Date
- 2026-08-25
- Estimated Expiration
- 2042-11-21
AI Technical Summary
In existing technologies, edge devices are of various types, which requires businesses to perform a lot of cross-compilation work when acquiring data, increasing development and maintenance costs.
By deploying a first component and a second component in the edge device cluster, the first component is a computing program developed by the business party to parse request information, and the second component is an action program developed by the platform party to obtain response information, thus enabling efficient interaction between the business party and the edge device cluster and reducing the maintenance requirements for each device.
It reduced data acquisition costs, increased component reusability, reduced the time and effort businesses need to invest in maintaining edge device clusters, and improved the efficiency and security of data acquisition.
Smart Images

Figure CN115712504B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a data acquisition method, apparatus, electronic device, and readable storage medium. Background Technology
[0002] With the rapid development of information technology, there is a large amount of valuable data in the network environment surrounding edge devices, and many businesses hope to obtain the data they need through edge devices.
[0003] Currently, there are various types of edge devices. If businesses want to obtain the required data through edge devices, they need to perform a lot of cross-compilation work in advance to adapt to different types of edge devices, resulting in high data acquisition costs. Summary of the Invention
[0004] The purpose of this invention is to provide a data acquisition method, apparatus, electronic device, and readable storage medium, which can reduce the cost of data acquisition. The specific technical solution is as follows:
[0005] In a first aspect of the present invention, a data acquisition method is provided, applied to an edge device cluster, wherein the edge devices in the edge device cluster include a first component and a second component, comprising:
[0006] Receive the first request information sent by the first business party;
[0007] In response to the first request information, the first request information is parsed through the computing class program encapsulated in the first component to obtain the first identification information. The computing class program is developed by the first business party.
[0008] The action class program encapsulated in the second component is used to obtain the first response information corresponding to the first identification information. The action class program is developed by the platform. The second component is used to obtain multiple response information required by multiple business parties.
[0009] The first response information is sent to the first business party.
[0010] In a second aspect of the invention, a data acquisition device is also provided, applied to an edge device cluster, wherein the edge devices in the edge device cluster include a first component and a second component, comprising:
[0011] The receiving module is used to receive the first request information sent by the first business party;
[0012] The parsing module is used to respond to the first request information by parsing the first request information through the computing class program encapsulated in the first component to obtain the first identification information. The computing class program is developed by the first business party.
[0013] The acquisition module is used to acquire the first response information corresponding to the first identifier information through the action class program encapsulated in the second component. The action class program is developed by the platform. The second component is used to acquire multiple response information required by multiple business parties.
[0014] The sending module is used to send the first response information to the first business party.
[0015] In another aspect of the present invention, a computer-readable storage medium is also provided, wherein instructions are stored therein, which, when executed on a computer, cause the computer to perform any of the data forwarding methods described above.
[0016] In another aspect of the present invention, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to perform any of the data acquisition methods described above.
[0017] The data acquisition method provided in this embodiment of the invention, in response to a first request message sent by a first business party, parses the first request message using a computational program encapsulated in a first component to obtain first identifier information indicating the data the first business party wants to acquire. Since the first component encapsulates a computational program developed by the first business party, the parsing process can meet the first business party's own needs, efficiently and accurately parsing the first request message to obtain the first identifier information. Then, using an action program encapsulated in a second component, the method obtains first response information corresponding to the first identifier information. This action program is developed by the platform. Since the second component encapsulates an action program developed by the platform, the platform is responsible for maintaining the interaction between the business party and each edge device in the edge device cluster. Here, the business party does not need to maintain the connection relationship with each edge device in the edge device cluster; the business party only needs to send the first request message to obtain the desired first response information, without spending time and effort maintaining the edge device cluster. Furthermore, the second component is used to obtain multiple response messages required by multiple business parties, meaning each business party can obtain the required response information through the second component, improving the reusability of the second component and saving data acquisition costs. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below.
[0019] Figure 1 This is a schematic diagram of a current data acquisition method provided by an embodiment of the present invention;
[0020] Figure 2 This is a flowchart of a data acquisition method provided in an embodiment of the present invention;
[0021] Figure 3 This is a flowchart illustrating a data acquisition method provided in an embodiment of the present invention;
[0022] Figure 4 This is a schematic diagram of a data acquisition device provided in an embodiment of the present invention;
[0023] Figure 5 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0024] The technical solutions of the present invention will now be described with reference to the accompanying drawings in the embodiments of the present invention.
[0025] The technical terms used in this invention are explained below:
[0026] Edge devices are devices that provide entry points to the core network of an enterprise or service provider. Examples include routers, routing switches, integrated access devices, multiplexers, and various metropolitan area network (MAN) and wide area network (WAN) access devices.
[0027] WebAssembly is a virtual instruction set architecture (virtual ISA). The overall architecture includes the core instruction set architecture definition, binary encoding and program semantics definition and execution, as well as application programming interfaces for different embedded environments.
[0028] The Actor model is a conceptual model for handling concurrent computation. It defines a set of general rules for how system components should act and interact. Essentially, the Actor model is a computational model where the basic unit of computation is called an Actor. In other words, in the Actor model, all computations are performed within Actors. Furthermore, Actors are completely isolated and do not share any variables.
[0029] Message middleware is a supporting software system that provides synchronous or asynchronous, reliable message transmission for application systems in a network environment, based on queue and message passing technologies.
[0030] Cross-compilation is the process of generating executable code for one platform from code compiled on another. Different operating systems can run on the same architecture; similarly, the same operating system can run on different architectures.
[0031] The data acquisition method provided in this embodiment of the invention can be applied to at least the following application scenarios, which will be described below.
[0032] With the rapid development of computer processors, the speed difference between storage systems and processors has become a bottleneck restricting the overall system performance. Edge computing has strong real-time requirements for data storage and processing, and edge computing storage systems are characterized by low latency, large capacity, and high reliability. Edge devices have a large amount of idle processor resources, and the surrounding network environment contains a wealth of valuable data that needs analysis. Many businesses hope to obtain the data they need through edge devices. In this context, the edge device can be seen as a node between the business and the backend server, with the backend server being the source of the data the business wants to obtain.
[0033] Currently, businesses use a variety of methods to acquire data, employ diverse data formats, and utilize various types of edge devices. If a business wants to acquire the required data through edge devices, it needs to perform extensive cross-compilation work in advance to adapt to different types of edge devices. Furthermore, if the data acquisition method or data format changes, the business needs to perform cross-compilation work for each edge device to ensure compatibility. This significantly increases the workload for development and maintenance.
[0034] like Figure 1 As shown, the business unit needs to maintain the connection relationship with each edge device in the edge device cluster. Specifically, each business unit needs to write different programming libraries, compile them into compiled files, and deploy these compiled files to multiple edge devices to adapt to different types of edge devices. Therefore, the development and maintenance costs are very high.
[0035] Based on the above application scenarios, the data acquisition method provided by the embodiments of the present invention will be described in detail below.
[0036] The data acquisition method provided in the embodiments of the present invention will be described below.
[0037] Figure 2 This is a flowchart of a data acquisition method provided in an embodiment of the present invention.
[0038] like Figure 2 As shown, the data acquisition method may include steps 210-240. This method is applied to an edge device cluster, where the edge devices in the edge device cluster include a first component and a second component, as detailed below:
[0039] Step 210: Receive the first request information sent by the first business party;
[0040] Step 220: In response to the first request information, the first request information is parsed through the computing class program encapsulated in the first component to obtain the first identification information. The computing class program is developed by the first business party.
[0041] Step 230: Obtain the first response information corresponding to the first identifier information through the action class program encapsulated in the second component. The action class program is developed by the platform. The second component is used to obtain multiple response information required by multiple business parties.
[0042] Step 240: Send the first response information to the first business party.
[0043] In this embodiment of the invention, in response to a first request message sent by a first business party, the first request message is parsed by a computational program encapsulated in a first component to obtain first identifier information indicating the data the first business party wants to obtain. Since the first component encapsulates a computational program developed by the first business party, the parsing process can meet the first business party's own needs, efficiently and accurately parsing the first request message to obtain the first identifier information. Then, through an action program encapsulated in a second component, the first response information corresponding to the first identifier information is obtained. This action program is developed by the platform. Since the second component encapsulates an action program developed by the platform, the platform is responsible for maintaining the interaction between the business party and each edge device in the edge device cluster. Here, the business party does not need to maintain the connection relationship with each edge device in the edge device cluster; the business party only needs to send the first request message to obtain the desired first response information, without spending time and effort maintaining the edge device cluster. Furthermore, the second component is used to obtain multiple response messages required by multiple business parties, meaning each business party can obtain the required response information through the second component, improving the reusability of the second component and saving data acquisition costs. The specific implementation methods of the above steps are described below.
[0044] Step 210 is involved.
[0045] Receive the first request information sent by the first business party.
[0046] In one possible embodiment, the following steps may be included prior to step 210:
[0047] Receive action-type and calculation-type programs sent by the platform;
[0048] Encapsulate computational programs into multiple first components, and encapsulate action programs into multiple second components;
[0049] Deploy the first component and the second component. Any two components are isolated from each other. A component includes the first component and the second component.
[0050] Traditional programs can typically be divided into two parts: computational programs and action programs. Action programs are the parts that interact with the external environment. Functions that action programs can perform include: accessing websites, sending emails, reporting data, and accessing databases.
[0051] Any two components can communicate through a message middleware.
[0052] Calculation-based programs perform business logic operations within the program and are the idempotent parts of the program. Idempotency means that one or more requests for the same operation will yield the same result, without any side effects from multiple clicks. For example, in determining whether an email to be checked is spam, if the email is spam, multiple checks will still result in the email being spam.
[0053] Specifically, the Actor model can be used to deploy the first and second components, organizing computational and action-based programs together. The first and second components are the basic computational units of the Actor model. Because the Actor model handles concurrent computation, these basic computational units are completely isolated and do not share any variables. Therefore, any two components are isolated from each other and need to communicate through a message broker.
[0054] By deploying the first and second components using the Actor model, WebAssembly is not required to handle parallelism itself, as the Actor model provides a parallel model. This simplifies the writing of computational programs, as they only need to consider serial logic, and solves the problem of poor support for parallel logic in the current WebAssembly runtime.
[0055] This ensures that the business units are isolated from each other; that is, the first business unit cannot view or use the computing programs of the second business unit, thus guaranteeing the security of the business unit's data. The computing programs are those developed by the business unit based on a virtual instruction set architecture.
[0056] Among them, the virtual instruction set architecture, namely WebAssembly, can be seen as a compilation target of a compiler. It is to ensure that programs written in programming languages can be compiled to run better on the World Wide Web platform while ensuring security and running at speeds close to native applications.
[0057] WebAssembly is designed as a bytecode format for an abstract virtual machine. An abstract virtual machine means that the various instructions and syntax structures that make up this bytecode are designed without depending on a specific virtual machine architecture type. In other words, it is independent of specific virtual machine architecture types, such as x86 or ARM architectures.
[0058] Based on the aforementioned characteristics of WebAssembly, when developing computing applications using WebAssembly, businesses only need to write the computing application once, whether the device uses an x86 architecture or an ARM architecture. This simplifies the process of adapting to various deployment environments and resolves compatibility issues when communicating with different types of edge devices. The deployment environment is the edge device itself.
[0059] Step 220 is involved.
[0060] In response to the first request information, the first request information is parsed through the computing class program encapsulated in the first component to obtain the first identification information. The computing class program is developed by the first business party.
[0061] The first identification information is used to identify the identification information of the data that the first request information wants to obtain. The first component encapsulates a calculation program developed by the first business party, that is, the business party can provide a calculation program according to its own business processing needs to perform the logical processing of the calculation class.
[0062] The calculation program encapsulated in the first component is developed according to a preset data format, which is the storage format of the first response information.
[0063] The computational program encapsulated in the first component is developed based on the preset data format. When the first request information is parsed by the computational program encapsulated in the first component, the first response information in the preset data format can be obtained, which is convenient for the business party to view, process and save.
[0064] In one possible embodiment, after step 220, the following steps may also be included:
[0065] If the first identification information matches any of the second preset identification information, a third response information is sent to the first service provider. The third response information is used to reject the first request information.
[0066] The second preset identification information is used to identify information that the business party cannot access, such as the domain name and URL of an illegal website. If the first identification information matches any of the second preset identification information, a third response information is sent to the first business party to reject the first request information, so as to prevent the business party from accessing the information and ensure security.
[0067] Step 230 is involved.
[0068] The action class program encapsulated in the second component obtains the first response information corresponding to the first identification information. The action class program is developed by the platform. The second component is used to obtain multiple response information required by multiple business parties.
[0069] Among them, action-type programs, such as programs used for reading and writing databases, are used by many programs. Therefore, action-type programs are developed and provided uniformly by the platform, and business users can share these action-type programs.
[0070] Currently, business units need to maintain connections with edge devices to obtain the required data. This requires writing different programming libraries to adapt to different edge devices, such as routers, mobile terminals, and personal computers (PCs). Assuming a business unit needs to maintain connections to N different types of edge devices, it needs to write N different programming libraries. Each of the multiple business units needs to write N different programming libraries, where N is a positive integer.
[0071] The configuration information of the second component is matched with the configuration information of any edge device in the edge device cluster.
[0072] The configuration information can include communication language, communication interface parameters, etc.
[0073] The configuration information of the second component matches the configuration information of any edge device in the edge device cluster, meaning the second component can establish a connection with any edge device in the edge device cluster, such as... Figure 3 As shown, cross-device connectivity can be achieved as shown in step 4.
[0074] The business unit obtains response information through the second component; specifically, it can retrieve the first response information corresponding to the first identifier information through the action-class program encapsulated in the second component. Previously, the business unit needed to maintain connections with edge devices to adapt to different edge devices. In this embodiment of the invention, the second component can establish a connection with any edge device in the edge device cluster and execute an action-class program.
[0075] In this embodiment of the invention, the configuration information of the second component matches the configuration information of any edge device in the edge device cluster. That is, the second component can establish a connection with any edge device in the edge device cluster and execute action-type programs. Each of the multiple business parties can obtain the first response information corresponding to the first identification information through the second component, thereby reducing the workload of the business parties, improving the reusability of the component, and reducing costs and increasing efficiency.
[0076] In one possible embodiment, the first request information includes the identity information of the first business party, and step 230 may specifically include the following steps:
[0077] Based on the preset permission relationship, the first permission information corresponding to the first business party's identity information is determined. The preset permission relationship includes at least one set of corresponding business party identity information and permission information, and each permission information includes at least one preset identifier information.
[0078] If the first identification information matches any of the first preset identification information included in the first authorization information, the second component obtains the first response information corresponding to the first identification information.
[0079] Each business entity has corresponding permission information, and the preset permission relationship indicates the correspondence between the business entity's identity information and permission information. The permission information corresponding to the business entity's identity information includes at least one preset identifier, which is the identifier of the data content that the business entity corresponding to that identity information has the authority to access.
[0080] If the first identifier information of the data that the first business party wants to obtain matches any first preset identifier information that the first business party has the authority to obtain, the second component can obtain the first response information corresponding to the first identifier information, thus ensuring the security of data acquisition.
[0081] For example, the first permission information corresponding to the identity information of the first business party, determined based on the preset permission relationship, includes: database A, database B, and database E. The first identification information corresponding to the first business party belongs to database E, that is, the first identification information matches any of the first preset identification information included in the first permission information. Here, it means that the first business party has the permission to obtain the data content corresponding to the first identification information, that is, it can obtain the first response information corresponding to the first identification information through the second component.
[0082] In one possible embodiment, after step 230, the following steps may also be included:
[0083] The first response information is processed in parallel by the computational programs encapsulated in multiple first components to obtain multiple first result information.
[0084] Multiple first result information is sent to the first business party and stored in the edge database corresponding to the edge device cluster, so that multiple second business parties can obtain the first result information from the edge database.
[0085] Since the Actor model provides a parallel model, WebAssembly does not need to perform parallel processing itself. Multiple first components can process the first response information in parallel to obtain multiple first result information, thereby improving computational efficiency.
[0086] For example, if the first business party wants to obtain data from multiple pages, multiple first components can process the data from multiple pages in parallel to obtain multiple first result information.
[0087] The first result information may also be needed by other business parties, so the first result information can be stored in the edge database corresponding to the edge device cluster so that multiple business parties can retrieve it from the edge database, thereby improving the reuse rate of information.
[0088] In one possible embodiment, the method may further include:
[0089] Receive a second request message sent by a second business party, the second request message including second identification information;
[0090] The action class program encapsulated in the second component retrieves the second result information corresponding to the second identification information from the edge database; the edge database stores multiple sets of corresponding identification information and result information.
[0091] The second result information is sent to the second business party. The second identification information identifies the data content the second business party wants to obtain. The edge database stores multiple sets of corresponding identification and result information, allowing the second business party to retrieve the desired result data. This solves the problem of resource waste caused by multiple business parties being interested in the same data and performing multiple data retrievals.
[0092] Before retrieving desired data from the edge database, the business party needs to establish data sharing functionality and a corresponding registration mechanism. The third-party business party is responsible for developing the data acquisition program and the data storage format, and registering the data storage format with the data structure registration platform.
[0093] For example, MySQL is a relational database management system.
[0094] The third-party business develops a data acquisition application, specifying the MySQL table structure for storing the data. This third-party business registers the MySQL table names, table structures, and the meaning of each column in the data structure registration platform. Other business parties can then use the instructions in the data structure registration platform to find the data tables of interest to them and obtain the desired data for analysis.
[0095] Additionally, the operational status information of the edge devices can be obtained, and the business performance of the service provider can be assessed based on this information. This operational status information includes the number of request messages and the amount of data in the response messages.
[0096] In summary, the embodiments of the present invention, in response to a first request message sent by a first business party, parse the first request message using a computational program encapsulated in a first component to obtain first identification information indicating the data the first business party wants to obtain. Since the first component encapsulates a computational program developed by the first business party, the parsing process can meet the first business party's own needs, efficiently and accurately parsing the first request message to obtain the first identification information. Then, through an action program encapsulated in a second component, first response information corresponding to the first identification information is obtained. This action program is developed by the platform. Since the second component encapsulates an action program developed by the platform, the platform is responsible for maintaining the interaction between the business party and each edge device in the edge device cluster. Here, the business party does not need to maintain the connection relationship with each edge device in the edge device cluster; the business party only needs to send the first request message to obtain the desired first response information, without spending time and effort maintaining the edge device cluster. Furthermore, the second component is used to obtain multiple response messages required by multiple business parties, meaning each business party can obtain the required response information through the second component, improving the reusability of the second component and saving data acquisition costs.
[0097] This invention also provides a data acquisition method, the flowchart of which is shown below. Figure 3 As shown:
[0098] Take the process of accessing HTTP data, analyzing it, and storing it in a database as an example. The platform provides the action classes, which are encapsulated in the second component. Specifically, the action classes can include: action classes for accessing the internet and action classes for accessing the database.
[0099] The business side provides the computing program, which is encapsulated in the first component. Figure 3 The circular region in the diagram represents an Actor. As mentioned earlier, the first and second components are the basic computational units of the Actor model, which can be deployed on any edge device in an edge device cluster.
[0100] The process is as follows, according to the numbers indicated by the arrows in the diagram:
[0101] Step 1: The business component sends a trigger request to the first component, which can be any component in the first component's queue. Then, the first component parses the first request to obtain the first identifier information. For example, the first request could be a request to retrieve the top ten most-viewed videos in the target application. The first identifier information could be the name, URL, or domain name of the target application, etc.
[0102] Step 2: Send the first identification information message to the queue of the second component. The queue of the second component may include multiple second components.
[0103] Step 3: The second component accesses the internet or a preset database based on the received first identifier information to obtain the first response information. For example, the first response information could be the homepage of the target application, which includes information on the top ten most-viewed videos.
[0104] Step 4: The second component sends the first response information as a message to the queue of the first component, such as... Figure 3 As shown in the figure, there are three steps 4, in which three first components process the first response information in parallel to obtain multiple first result information.
[0105] Step 5: Multiple first components process the first response information in parallel, obtaining multiple first result information. For example, the first result information could be the top ten most-viewed videos in the target application. The first result information is then sent to the queue of the second component.
[0106] Step 6: Write the first result information into the database. The database can be either the business entity's database or an edge database; there are no restrictions here.
[0107] In summary, in response to the first request information sent by the first business party, the first request information is parsed by the computational program encapsulated in the first component to obtain the first identifier information indicating the data the first business party wants to obtain. Since the first component encapsulates the computational program developed by the first business party, the parsing process can meet the first business party's own needs, efficiently and accurately parsing the first request information to obtain the first identifier information. Then, the first response information corresponding to the first identifier information is obtained through the action program encapsulated in the second component. The action program is developed by the platform. Since the second component encapsulates the action program developed by the platform, the platform is responsible for maintaining the interaction between the business party and each edge device in the edge device cluster. Here, the business party does not need to maintain the connection relationship with each edge device in the edge device cluster; the business party only needs to send the first request information to obtain the desired first response information, without spending time and effort maintaining the edge device cluster. Furthermore, the second component is used to obtain multiple response information required by multiple business parties, meaning each business party can obtain the required response information through the second component, improving the reusability of the second component and saving data acquisition costs.
[0108] Based on the above Figure 2 The data acquisition method shown in this embodiment of the invention also provides a data acquisition device applied to an edge device cluster. The edge devices in the edge device cluster include a first component and a second component, such as... Figure 4As shown, the data acquisition device 400 may include:
[0109] The receiving module 410 is used to receive the first request information sent by the first business party;
[0110] The parsing module 420 is used to respond to the first request information by parsing the first request information through the computing class program encapsulated in the first component to obtain the first identification information. The computing class program is developed by the first business party.
[0111] The acquisition module 430 is used to acquire the first response information corresponding to the first identifier information through the action class program encapsulated in the second component. The action class program is developed by the platform. The second component is used to acquire multiple response information required by multiple business parties.
[0112] The sending module 440 is used to send the first response information to the first business party.
[0113] In one possible embodiment, the data acquisition device 400 may further include:
[0114] The processing module is used to process the first response information in parallel through the calculation-type programs encapsulated in multiple first components to obtain multiple first result information;
[0115] The sending module 440 is also used to send multiple first result information to the first business party and store it in the edge database corresponding to the edge device cluster, so that multiple second business parties can obtain the first result information from the edge database.
[0116] In one possible embodiment, the receiving module 410 is further configured to receive second request information sent by the second service party, the second request information including second identification information;
[0117] The acquisition module 430 is also used to obtain second result information corresponding to the second identification information from the edge database through the action class program encapsulated in the second component; the edge database stores multiple sets of corresponding identification information and result information.
[0118] The sending module 440 is also used to send the second result information to the second business party.
[0119] In one possible embodiment, the first request information includes the identity information of a first business party, and the acquisition module 430 is specifically used for:
[0120] Based on the preset permission relationship, the first permission information corresponding to the first business party's identity information is determined. The preset permission relationship includes at least one set of corresponding business party identity information and permission information, and each permission information includes at least one preset identifier information.
[0121] If the first identification information matches any of the first preset identification information included in the first authorization information, the second component obtains the first response information corresponding to the first identification information.
[0122] In one possible embodiment, the sending module 440 is further configured to send a third response message to the first service party if the first identification information matches any of the second preset identification information, the third response message being used to reject the first request information.
[0123] In one possible embodiment, the receiving module 410 is further configured to receive action-type programs and calculation-type programs sent by the platform.
[0124] The data acquisition device 400 may further include:
[0125] The encapsulation module is used to encapsulate computational programs into multiple first components and action programs into multiple second components.
[0126] The deployment module is used to deploy the first component and the second component. Any two components are isolated from each other. The components include the first component and the second component.
[0127] In one possible embodiment, the computing program is a program developed by the business party based on a virtual instruction set architecture.
[0128] In one possible embodiment, the computing program encapsulated in the first component is developed according to a preset data format, which is the storage format of the first response information.
[0129] In one possible embodiment, the configuration information of the second component is matched with the configuration information of any edge device in the edge device cluster.
[0130] In summary, in response to the first request information sent by the first business party, the first request information is parsed by the computational program encapsulated in the first component to obtain the first identifier information indicating the data the first business party wants to obtain. Since the first component encapsulates the computational program developed by the first business party, the parsing process can meet the first business party's own needs, efficiently and accurately parsing the first request information to obtain the first identifier information. Then, the first response information corresponding to the first identifier information is obtained through the action program encapsulated in the second component. The action program is developed by the platform. Since the second component encapsulates the action program developed by the platform, the platform is responsible for maintaining the interaction between the business party and each edge device in the edge device cluster. Here, the business party does not need to maintain the connection relationship with each edge device in the edge device cluster; the business party only needs to send the first request information to obtain the desired first response information, without spending time and effort maintaining the edge device cluster. Furthermore, the second component is used to obtain multiple response information required by multiple business parties, meaning each business party can obtain the required response information through the second component, improving the reusability of the second component and saving data acquisition costs.
[0131] This invention also provides an electronic device, such as... Figure 5 As shown, it includes a processor 501, a communication interface 502, a memory 503, and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504.
[0132] Memory 503 is used to store computer programs;
[0133] When processor 501 executes the program stored in memory 503, it performs the following steps:
[0134] Receive the first request information sent by the first business party;
[0135] In response to the first request information, the first request information is parsed through the computing class program encapsulated in the first component to obtain the first identification information. The computing class program is developed by the first business party.
[0136] The action class program encapsulated in the second component is used to obtain the first response information corresponding to the first identification information. The action class program is developed by the platform. The second component is used to obtain multiple response information required by multiple business parties.
[0137] The first response information is sent to the first business party.
[0138] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.
[0139] The communication interface is used for communication between the aforementioned terminal and other devices.
[0140] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0141] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0142] In another embodiment of the present invention, a computer-readable storage medium is also provided, which stores instructions that, when executed on a computer, cause the computer to perform any of the data acquisition methods described in the above embodiments.
[0143] In another embodiment of the present invention, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to perform any of the data acquisition methods described in the above embodiments.
[0144] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).
[0145] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0146] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0147] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.
Claims
1. A data acquisition method, characterized in that, Applied to an edge device cluster, wherein the edge devices in the edge device cluster include a first component and a second component, the method includes: Receive the first request information sent by the first business party; In response to the first request information, the first request information is parsed through the computing class program encapsulated in the first component to obtain the first identification information, wherein the computing class program is developed by the first business party; The action class program encapsulated in the second component is used to obtain the first response information corresponding to the first identification information. The action class program is developed by the platform. The second component is used to obtain multiple response information required by multiple business parties. Send the first response information to the first service provider; After obtaining the first response information corresponding to the first identifier information through the action class program encapsulated in the second component, the method further includes: The first response information is processed in parallel by multiple computational programs encapsulated in the first component to obtain multiple first result information. The plurality of first result information is sent to the first service party and stored in the edge database corresponding to the edge device cluster, so that multiple second service parties can obtain the first result information from the edge database; Receive a second request message sent by a second business party, wherein the second request message includes second identification information; The action class program encapsulated in the second component retrieves the second result information corresponding to the second identification information from the edge database; the edge database stores multiple sets of corresponding identification information and result information. The second result information is sent to the second business party.
2. The method according to claim 1, characterized in that, The first request information includes the identity information of the first business party. The step of obtaining the first response information corresponding to the first identifier information through the action class program encapsulated in the second component includes: Based on a preset permission relationship, first permission information corresponding to the first business party's identity information is determined, wherein the preset permission relationship includes at least one set of corresponding business party identity information and permission information, and each permission information includes at least one preset identifier information; If the first identification information matches any of the first preset identification information included in the first permission information, the second component obtains the first response information corresponding to the first identification information.
3. The method according to claim 1, characterized in that, After responding to the first request information and parsing the first request information through the computational class program encapsulated in the first component to obtain the first identification information, the method further includes: If the first identification information matches any of the second preset identification information, a third response information is sent to the first service provider, and the third response information is used to reject the first request information.
4. The method according to claim 1, characterized in that, Before receiving the first request information sent by the first service provider, the method further includes: Receive the action-type program and the calculation-type program sent by the platform; The computational program is encapsulated into multiple first components, and the action program is encapsulated into multiple second components; Deploy the first component and the second component, with any two components isolated from each other, and the components include the first component and the second component.
5. The method according to claim 4, characterized in that, The computing program is a program developed by the business party based on the virtual instruction set architecture.
6. The method according to claim 1, characterized in that, The computational program encapsulated in the first component is developed according to a preset data format, which is the storage format of the first response information.
7. The method according to claim 1, characterized in that, The configuration information of the second component matches the configuration information of any of the edge devices in the edge device cluster.
8. A data acquisition device, characterized in that, Applied to an edge device cluster, wherein the edge devices in the edge device cluster include a first component and a second component, the device includes: The receiving module is used to receive the first request information sent by the first business party; The parsing module is used to respond to the first request information by parsing the first request information through the computing class program encapsulated in the first component to obtain the first identification information, wherein the computing class program is developed by the first business party; The acquisition module is used to acquire first response information corresponding to the first identification information through an action class program encapsulated in the second component, wherein the action class program is developed by the platform provider; the second component is used to acquire multiple response information required by multiple business parties. The sending module is used to send the first response information to the first service provider; The processing module is used to process the first response information in parallel through the calculation-type programs encapsulated in multiple first components to obtain multiple first result information; The sending module is also used to send multiple first result information to the first business party and store them in the edge database corresponding to the edge device cluster, so that multiple second business parties can obtain the first result information from the edge database; The receiving module is also used to receive second request information sent by the second business party, the second request information including second identification information; The acquisition module is also used to obtain second result information corresponding to the second identification information from the edge database through the action class program encapsulated in the second component; the edge database stores multiple sets of corresponding identification information and result information; The sending module is also used to send the second result information to the second business party.
9. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the steps of the method described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-7.
Citation Information
Patent Citations
Service processing method, mobile edge computing equipment and network equipment
CN109495929A