Distributed data object warehouse development method and device oriented to scientific data center

By expanding the digital object interface protocol and component abstraction, the complexity and difference problems of distributed data warehouse development are solved, and an efficient and unified development process is achieved.

CN118733682APending Publication Date: 2024-10-01PEKING UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410778425.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing distributed data warehouse development methods are complex and the development efficiency is low. Moreover, the data warehouses developed by different developers are quite different, making it difficult to access them in a unified way.

Method used

By expanding the digital object interface protocol, it supports single-point to multi-point data calls, and abstracts the components of the distributed data warehouse development system into digital objects to achieve a unified calling relationship, and uses routing annotations and aggregation annotations to determine the access path of the cluster server. and return result processing strategies.

Benefits of technology

It achieves efficient and unified distributed data warehouse development, simplifies the development process, and unifies the coupling and calling differences between different components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733682A_ABST
    Figure CN118733682A_ABST
Patent Text Reader

Abstract

The invention provides a scientific data center-oriented distributed data object warehouse development method and device, and the method comprises the steps: carrying out the expansion of a digital object interface protocol according to a routing annotation and an aggregation annotation, and obtaining an expanded digital object interface protocol which supports the single-point-to-multipoint data call; constructing a distributed data warehouse development system supporting the expansion digital object interface protocol, and abstracting each component of the distributed data warehouse development system into a digital object to obtain a digital objectification distributed data warehouse development system; and according to the expansion digital object interface protocol, calling a digital object component in the digital objectification distributed data warehouse development system in a digital object calling mode, and carrying out distributed data warehouse development. According to the method, efficient and unified distributed data warehouse development is realized through unified modeling of the calling relationship of the distributed data warehouse.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of digital networking technology, and in particular to a method and device for developing a distributed data object warehouse for a scientific data center. Background Art

[0002] The full use of data on the Internet and the new generation of information technology and applications can generate huge social value, but the current data on the Internet is difficult to understand, difficult to access, and difficult to control. In order to cope with the various challenges and difficulties faced by data on the Internet, the "Data Network" solution is proposed. The Data Network is a data network that interconnects data and fully calls on data from all walks of life.

[0003] In the Internet of Things, data is stored in distributed data warehouses, and users access and call data by accessing distributed data warehouses. Therefore, it is very necessary to develop distributed data warehouses. However, the existing distributed data warehouse development methods are complex and inefficient; and the data warehouses developed by different developers are quite different, making it difficult to access them in a unified way. Therefore, how to achieve efficient and unified distributed data warehouse development is a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of the above problems, the embodiments of the present application provide a method and device for developing a distributed data object warehouse for a scientific data center, so as to overcome the above problems or at least partially solve the above problems.

[0005] In a first aspect of an embodiment of the present application, a method for developing a distributed data object warehouse for a scientific data center is disclosed, the method comprising:

[0006] The digital object interface protocol is extended according to the routing annotation and the aggregation annotation to obtain an extended digital object interface protocol, wherein the routing annotation is used to determine the access path of the cluster server, the aggregation annotation is used to process the return result of the cluster server, and the extended digital object interface protocol supports single-point to multi-point data calls;

[0007] Constructing a distributed data warehouse development system that supports the extended digital object interface protocol, and abstracting each component of the distributed data warehouse development system into a digital object to obtain a digital object-based distributed data warehouse development system;

[0008] According to the extended digital object interface protocol, the digital object components in the digital object-based distributed data warehouse development system are called in a digital object manner to perform distributed data warehouse development.

[0009] Optionally, according to the extended digital object interface protocol, the digital object component in the digital object-based distributed data warehouse development system is called in a digital object manner to perform distributed data warehouse development, including:

[0010] Determine the target routing logic according to the routing annotation in the extended digital object interface protocol, and determine the target aggregation logic according to the aggregation annotation in the extended digital object interface protocol, wherein the target routing logic represents the access path of the cluster server that executes the business logic, and the target aggregation logic is used to represent the processing strategy of the return result of the cluster server;

[0011] According to the target routing logic and the target aggregation logic, the corresponding digital object component is called from the digital object-based distributed data warehouse development system to obtain a distributed data warehouse.

[0012] Optionally, determining the target routing logic according to the routing annotation in the extended digital object interface protocol includes:

[0013] Determine the target routing logic according to the routing logic defined by the first annotation parameter of the routing annotation, wherein the first annotation parameter is used to characterize the routing logic provided by the digital object-based distributed data warehouse development system; or

[0014] According to the second annotation parameter of the routing annotation, the customized routing logic is determined as the target routing logic.

[0015] Optionally, determining the target aggregation logic according to the aggregation annotation in the extended digital object interface protocol includes:

[0016] Determine the initial target aggregation logic according to the aggregation logic defined by the third annotation parameter of the aggregation annotation, wherein the third annotation parameter is used to characterize the aggregation logic provided by the digital object-based distributed data warehouse development system; or, determine the initial target aggregation logic according to the custom aggregation logic according to the fourth annotation parameter of the aggregation annotation;

[0017] According to the fifth annotation parameter of the aggregation annotation, the runtime of the initial target aggregation logic is determined to obtain the target aggregation logic, and the runtime is determined according to the business scenario.

[0018] Optionally, determining the target aggregation logic according to the aggregation annotation in the extended digital object interface protocol includes:

[0019] According to the sixth annotation parameter of the aggregation annotation, the customized routing logic is determined as the initial target aggregation logic, and the runtime of the initial target aggregation logic is specified to obtain the target aggregation logic, where the runtime is determined according to the business scenario.

[0020] Optionally, constructing a distributed data warehouse development system supporting the extended digital object interface protocol includes:

[0021] Build a server to launch a server cluster based on a request from a distributed data warehouse, and store the routing logic and aggregation logic corresponding to the server cluster in the route;

[0022] Construct a client to generate a distributed data warehouse initiation request, obtain the routing logic and aggregation logic corresponding to the server cluster from the routing, and execute the routing logic function and the aggregation logic function.

[0023] Optionally, each component of the distributed data warehouse development system is abstracted into a digital object to obtain a digital object-based distributed data warehouse development system, including:

[0024] Splitting the distributed data warehouse development system into multiple components according to different system functions;

[0025] Abstracting the multiple components into digital objects to obtain multiple digital object components;

[0026] The interactive relationship between the multiple digital object components is reconstructed to obtain the digital object-based distributed data warehouse development system.

[0027] Optionally, the digital object component includes: a data space management module, a digital object browser, a distributed code repository, a contract instance management module, a code object, and an instantiated contract object; reconstructing the interaction relationship between the multiple digital object components includes:

[0028] Using the data space management module as the entry point for initiating requests to the distributed data warehouse;

[0029] A unified calling interface is established between the data space management module and other digital object components, so that after the data space management module receives a request initiated by the distributed data warehouse, other digital object components are called through the unified calling interface to pull up the distributed data warehouse.

[0030] Optionally, according to the target routing logic and the target aggregation logic, a corresponding digital object component is called from the digital object-based distributed data warehouse development system to obtain a distributed data warehouse, including:

[0031] Initiate a request for the distributed data warehouse including the target routing logic and the target aggregation logic through the client and send the request to the data space management module;

[0032] The data space management module initiates a request according to the distributed data warehouse, determines a target server cluster from the managed server clusters, and updates the routing logic and aggregation logic corresponding to the target server cluster into the routing;

[0033] The data space management module sends the distributed data warehouse initiation request to the contract instance management module through a unified call interface according to the route;

[0034] The contract instance management module initiates a request according to the distributed data warehouse, obtains the contract code from the distributed code warehouse, and starts the contract code locally to obtain the distributed data warehouse, wherein the contract code represents the code associated with the business logic.

[0035] A second aspect of the embodiment of the present application discloses a distributed data object warehouse development device for a scientific data center, the device comprising:

[0036] An extension module is used to extend the digital object interface protocol according to the routing annotation and the aggregation annotation to obtain an extended digital object interface protocol, wherein the routing annotation is used to determine the access path of the cluster server, and the aggregation annotation is used to process the return result of the cluster server, and the extended digital object interface protocol supports single-point to multi-point data calls;

[0037] A construction module is used to construct a distributed data warehouse development system that supports the extended digital object interface protocol, and abstract each component of the distributed data warehouse development system into a digital object to obtain a digital object-based distributed data warehouse development system;

[0038] The development module is used to call the digital object components in the digital object-based distributed data warehouse development system in the manner of calling digital objects according to the extended digital object interface protocol to carry out distributed data warehouse development.

[0039] The embodiments of the present application include the following advantages:

[0040] In an embodiment of the present application, the digital object interface protocol is extended according to routing annotations and aggregation annotations to obtain an extended digital object interface protocol; thereby, a distributed data warehouse development system that supports the extended digital object interface protocol is constructed, and each component of the distributed data warehouse development system is abstracted into a digital object to obtain a digital object-based distributed data warehouse development system; according to the extended digital object interface protocol, the digital object components in the digital object-based distributed data warehouse development system are called in the manner of calling digital objects to perform distributed data warehouse development.

[0041] By expanding the digital object interface protocol, it can support single-point to multi-point data calls, and abstract each component in the distributed data warehouse development system into a digital object, unifying the coupling and call differences between different components, and realizing the unified modeling of the call relationship of the distributed data warehouse. Therefore, according to the expansion of the digital object interface protocol, the rapid development of distributed digital warehouses is realized by calling digital objects. In this way, efficient and unified distributed data warehouse development is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0043] Figure 1 It is a flowchart of the steps of a distributed data object warehouse development method for a scientific data center provided by an embodiment of the present application;

[0044] Figure 2 It is a schematic diagram of an extended digital object interface protocol provided in an embodiment of the present application;

[0045] Figure 3 It is a structural diagram of a digital object-based distributed data warehouse development system provided in an embodiment of the present application;

[0046] Figure 4 It is a structural diagram of a distributed data object warehouse development device for a scientific data center provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0048] The existing distributed data warehouse development method is complex and the development efficiency is low; and the data warehouses developed by different developers are quite different and difficult to access in a unified way. The technical concept of this application is: to uniformly model the call relationship of the distributed data warehouse, and implement the call relationship by calling digital objects, so as to call different functional components with a unified call relationship to realize the development of the distributed data warehouse and simplify the process of distributed data warehouse development. Digital object calls need to be implemented through the identity resolution protocol, and the existing digital object interface protocol (DigitalObject Interface Protocol, DOIP) only supports single-point to single-point data calls; this application takes into account that in the scenario of distributed data warehouse development, the business logic written by the developer needs to operate multiple servers at the same time, execute business logic and return aggregated results, so the digital object interface protocol is extended to support single-point to multi-point data calls. Extended digital object interface protocol. In addition, in order to enable the distributed data warehouse development system to support the extended digital object interface protocol, each component in the distributed data warehouse development system is abstracted as a digital object, so as to realize the distributed data warehouse development by calling the components of the distributed data warehouse development system in the way of calling digital objects.

[0049] The following is a detailed description of the distributed data object warehouse development method for a scientific data center provided in an embodiment of the present application.

[0050] Reference Figure 1 As shown, Figure 1 1 is a flow chart of the steps of a distributed data object warehouse development method for a scientific data center provided by an embodiment of the present application. Figure 1 As shown, the method may include steps S110 to S130:

[0051] Step S110: Expand the digital object interface protocol according to the routing annotation and the aggregation annotation to obtain an extended digital object interface protocol, wherein the routing annotation is used to determine the access path of the cluster server, and the aggregation annotation is used to process the return result of the cluster server. The extended digital object interface protocol supports single-point to multi-point data calls.

[0052] In the embodiment of the present application, the existing digital object interface protocol only supports point-to-point data calls (digital transmission), and it is difficult to implement business logic writing in the distributed data warehouse development scenario based on the digital object interface protocol. Therefore, the digital object interface protocol is expanded to support point-to-multipoint data calls, and the returned results can be aggregated based on the expanded digital object interface protocol. The expanded digital object interface protocol requires the data warehouse developer to provide a routing strategy to execute the routing logic and find the corresponding business server; at the same time, the data warehouse developer needs to provide an aggregation strategy to execute the aggregation logic (aggregation logic) to aggregate the results returned by different business servers. Therefore, in the embodiment of the present application, as long as the expanded digital object interface protocol obtains enough server cluster information and server cluster access rules during the execution process, one-to-many system access can be performed.

[0053] The business logic provided by the data warehouse developer is divided into routing logic and aggregation logic, and is expanded by adding routing annotations and aggregation annotations in the digital object interface protocol. Among them, the routing annotation can be used by the data warehouse developer to inject routing logic to determine the access path of the cluster server based on the routing annotation; the aggregation annotation can be used by the data warehouse developer to inject aggregation logic to process the return results of the cluster server based on the aggregation annotation.

[0054] like Figure 2 As shown, Figure 2 This is a schematic diagram of an extended digital object interface protocol provided by an embodiment of the present application. In the extended digital object interface protocol, the default routing logic of the distributed data warehouse development system and the developer's customized routing logic are provided through the routing annotation, and the default collection logic of the distributed data warehouse development system and the developer's customized routing logic are provided through the aggregation annotation.

[0055] Step S120: construct a distributed data warehouse development system that supports the extended digital object interface protocol, and abstract each component of the distributed data warehouse development system into a digital object to obtain a digital object-based distributed data warehouse development system.

[0056] In the embodiment of the present application, the extended digital object interface protocol includes routing annotations and aggregation annotations, and supporting the extended digital object interface protocol means supporting the parsing of routing annotations and aggregation annotations. The distributed data warehouse development system includes a server and a client, and both the server and the client need to support the parsing of routing annotations and aggregation annotations.

[0057] Specifically, a distributed data warehouse development system that supports the extended digital object interface protocol is constructed, including: constructing a server end, which is used to pull up a server cluster based on a request initiated by the distributed data warehouse, and store the routing logic and aggregation logic corresponding to the server cluster in the route; constructing a client, which is used to generate a request to initiate a distributed data warehouse, and obtain the routing logic and aggregation logic corresponding to the server cluster from the route, and execute the routing logic function and the aggregation logic function.

[0058] Among them, the server cluster is the server in the exponential network, the routing logic refers to the routing access path of the server cluster, the aggregation logic refers to the processing strategy for the return results of the server cluster, the routing logic function refers to the function of accessing the cluster server, and the aggregation logic function refers to the function of aggregating the return results of the server cluster.

[0059] In the embodiment of the present application, the server accurately parses the routing annotations and aggregation annotations input by the developer, analyzes the corresponding data structure, and stores the information required for the annotation (i.e., the routing logic and aggregation logic corresponding to the server cluster) in the route. The client obtains the annotation-related information and the server cluster information from the route, and then calls the distributed system to execute the routing logic function and the aggregation logic function.

[0060] In addition, the architecture of the distributed data warehouse development system is relatively complex, with low scalability and maintainability, and the coupling between systems is heavy. Therefore, the components of the distributed data warehouse development system are uniformly modeled, and all components (functional modules) in the distributed data warehouse development system are abstracted into digital objects, so that different components can interact using the extended digital object interface protocol.

[0061] Step S130: According to the extended digital object interface protocol, the digital object components in the digital object-based distributed data warehouse development system are called in a digital object manner to perform distributed data warehouse development.

[0062] In the embodiment of the present application, the digital object component refers to a component in the form of a digital object, and the digital object component can be called by calling the digital object. The components in the digital object-based distributed data warehouse development system all exist in the form of digital objects, so based on the extended digital object interface protocol, the digital object components in the digital object-based distributed data warehouse development system are called to realize the distributed data warehouse development.

[0063] In this way, by expanding the digital object interface protocol, it can support single-point to multi-point data calls, and abstract each component in the distributed data warehouse development system into a digital object, unifying the coupling and call differences between different components, and realizing the unified modeling of the call relationship of the distributed data warehouse. Therefore, according to the expansion of the digital object interface protocol, the rapid development of distributed digital warehouses is realized by calling digital objects. In this way, efficient and unified distributed data warehouse development is realized.

[0064] The following is a detailed description of each step of the embodiment of the present application.

[0065] In an optional embodiment, in step S120, each component of the distributed data warehouse development system is abstracted into a digital object to obtain a digital object-based distributed data warehouse development system, including steps A1 to A3:

[0066] Step A1: split the distributed data warehouse development system into multiple components according to different system functions.

[0067] Step A2: Abstract the multiple components into digital objects to obtain multiple digital object components.

[0068] Step A3: Reconstruct the interactive relationship between the multiple digital object components to obtain the digital object-based distributed data warehouse development system.

[0069] In the embodiment of the present application, the system function refers to the functions of various devices and sensors in the distributed data warehouse development system. There are various devices and sensors in the distributed data warehouse development system. These devices and sensors have different interfaces and communication protocols, and the data formats and data structures are not exactly the same. Therefore, in order to enable these devices and sensors to communicate and collaborate with each other, the present application abstracts and standardizes these devices and sensors, that is, abstracts the devices and sensors into digital objects.

[0070] Each sensor or device is equivalent to a component. By abstracting each component into a digital object, the complexity of the device or sensor can be hidden behind the interface and implementation of the object, thereby simplifying the complexity of the distributed data warehouse development system. Since there are a large number of components in the distributed data warehouse development system, their types and quantities may change over time. If each component is abstracted into an independent digital object component, the scalability and flexibility of the distributed data warehouse development system will be improved, and components (devices and sensors) can be easily added, replaced, and deleted. In addition, the abstraction of digital objects can improve the security of the distributed data warehouse development system. The components in the distributed data warehouse development system may be subject to various attacks, such as denial of service attacks and malware attacks. Abstracting components into digital objects can provide a more reliable and secure communication mechanism for the distributed data warehouse development system, including encryption, authentication, and access control.

[0071] For example, Figure 3 As shown, the digital object components include: a data space management module, a digital object browser, a distributed code repository, a contract instance management module, a code object, and an instantiated contract object.

[0072] Among them, 1) the data space management module is used to manage and coordinate the operating systems of multiple computers. Unlike the traditional single-machine operating system, the data space management module can coordinate the resources between multiple computers so that multiple computers can run as a whole. The data space management module is also used to manage the distributed data warehouse development system. In each data space, there will be a data space management module responsible for the management and resource scheduling of the entire data space.

[0073] 2) The digital object browser is a tool for browsing and managing digital objects. In a distributed data warehouse development system, there may be a large number of digital objects that need to be managed. These digital objects may be distributed on different nodes, and there may also be multiple versions of digital objects. The digital object browser helps users quickly and conveniently find, browse, and manage these digital objects, including browsing the properties, methods, version information, etc. of digital objects. Through the digital object browser, users can more conveniently manage digital objects in the distributed data warehouse development system, improving the manageability and maintainability of the system.

[0074] 3) A distributed code repository is a repository that stores code (that is, user contracts) in a distributed environment. Unlike traditional code repositories, a distributed code repository can support multiple developers to modify the code at the same time and can manage the code version. By introducing a distributed code repository, the distributed data warehouse development system has more advanced features for code management, which can help developers in the Internet of Things to collaborate on development, track version history, and ensure the stability and maintainability of the code.

[0075] 4) Contract instance management module is responsible for managing all the contract instance services launched on this server, which is equivalent to the agent and manager of all contracts on this server. When the data space management module performs cluster management, it sends the specific management content to each contract instance management module in the form of a request, so that the contract instance management module can perform actual operations and management according to its own management situation.

[0076] 5) Code objects are user code (contract code) units stored in the distributed code repository. Code objects are specific instances of contracts. To start a cluster, the contract instance management module needs to pull the corresponding version of the code object from the distributed code repository and run the business logic through the code object to provide services to users.

[0077] 6) The instantiated contract object is the running instance unit in the contract instance management module. The instantiated contract object is essentially an instantiated contract and is directly managed by the contract instance management module. The contract instance management module will pull the contract code from the distributed code repository and start the instantiated contract object according to the contract content.

[0078] Specifically, the interactive relationship between the multiple digital object components is reconstructed, including: using the data space management module as the entry for initiating requests to the distributed data warehouse; establishing a unified calling interface between the data space management module and other digital object components, so that after the data space management module receives the request to initiate the distributed data warehouse, other digital object components are called through the unified calling interface to pull up the distributed data warehouse.

[0079] In the embodiment of the present application, the distributed data warehouse development system uses the data space management module as the unified request entry for the data network cluster. The data space management module is responsible for connecting to all other components in the entire data space. Developers only need to find this entry to initiate requests to the distributed data warehouse. The data space management module will be responsible for packaging the logic of all other component calls and providing developers with a unified abstract interface.

[0080] In an optional embodiment, step S130, according to the extended digital object interface protocol, calling the digital object component in the digital object-based distributed data warehouse development system in the manner of calling the digital object, and performing distributed data warehouse development, includes steps B1 to B2:

[0081] Step B1: Determine the target routing logic according to the routing annotation in the extended digital object interface protocol, and determine the target aggregation logic according to the aggregation annotation in the extended digital object interface protocol, wherein the target routing logic represents the access path of the cluster server that executes the business logic, and the target aggregation logic is used to represent the processing strategy of the return result of the cluster server.

[0082] Step B2: According to the target routing logic and the target aggregation logic, the corresponding digital object component is called from the digital object-based distributed data warehouse development system to obtain a distributed data warehouse.

[0083] In the embodiment of the present application, the routing annotation is used to determine the access path of the cluster server, and the aggregation annotation is used to process the return result of the cluster server. When developing a distributed data warehouse, the developer determines the corresponding business logic (i.e., the target routing logic and the target aggregation logic) according to the routing annotation and aggregation annotation in the extended digital object interface protocol.

[0084] The target routing logic and target aggregation logic are implemented by calling business logic functions. When a client needs to call a function in a server cluster, it needs to know the node information where the function is located. This can be achieved by adding the @Route annotation (routing annotation) to the function. The @Route annotation defines a routing rule that specifies how the client finds the node where the function is located. When a client calls a function in a cluster, it may get data returned by multiple nodes. This data needs to be aggregated into a result and then returned to the client. This can be achieved by adding the @Join annotation to the function. The @Join annotation (aggregation annotation) defines an aggregation rule that specifies how the client aggregates data returned by multiple nodes.

[0085] In a specific implementation, the target routing logic is determined according to the routing annotation in the extended digital object interface protocol, including: determining the target routing logic according to the routing logic defined by the first annotation parameter of the routing annotation, wherein the first annotation parameter is used to characterize the routing logic provided by the digital object-based distributed data warehouse development system; or, determining the customized routing logic as the target routing logic according to the second annotation parameter of the routing annotation.

[0086] Among them, the first annotation parameter is the enumeration type of the default routing logic in the digital object-oriented distributed data warehouse development system. Each default routing logic corresponds to the type of the first annotation parameter. When developing a distributed data warehouse, the developer can use the default routing logic by adding a routing annotation in the business logic function that meets the application scenario and specifying the type of the first annotation parameter in the routing annotation.

[0087] The second annotation parameter is of string type. Developers can write routing functions that conform to their own business logic (routing functions have corresponding routing logic) and specify the second annotation parameter as the custom routing function name. The digital object-based distributed data warehouse development system automatically parses the custom routing function specified by the developer and stores the routing logic of the custom routing function in the cluster routing. The client can obtain the corresponding server cluster information and target routing logic in the cluster routing according to the distributed data warehouse it uses. When the client initiates a business request, it will automatically calculate all servers that need to call the digital object interface protocol according to the target routing logic and initiate a service call.

[0088] In actual application, developers can determine the target routing logic by setting the first annotation parameter, or determine the customized routing logic as the target routing logic according to the second annotation parameter. In this way, developers can quickly determine the target routing logic by setting different first annotation parameters, which simplifies the determination method of the target routing logic in the distributed data warehouse development process, thereby improving the development efficiency of the distributed data warehouse.

[0089] In a specific implementation, according to the aggregation annotation in the extended digital object interface protocol, determining the target aggregation logic includes steps C1 to C4:

[0090] Step C1: Determine the initial target aggregation logic according to the aggregation logic defined by the third annotation parameter of the aggregation annotation, wherein the third annotation parameter is used to characterize the aggregation logic provided by the digital object-based distributed data warehouse development system.

[0091] Step C2: According to the fourth annotation parameter of the aggregation annotation, the customized aggregation logic is used to determine the initial target aggregation logic.

[0092] Step C3: According to the fifth annotation parameter of the aggregation annotation, determine the runtime of the initial target aggregation logic to obtain the target aggregation logic, wherein the runtime is determined according to the business scenario.

[0093] Step C4: According to the sixth annotation parameter of the aggregation annotation, the customized routing logic is determined as the initial target aggregation logic, and the runtime of the initial target aggregation logic is specified to obtain the target aggregation logic, where the runtime is determined according to the business scenario.

[0094] Among them, the third annotation parameter is an enumeration type of the default aggregation logic in the digital object-based distributed data warehouse development system. Each default aggregation logic corresponds to a type of the third annotation parameter. When developing a distributed data warehouse, developers can use the default aggregation logic by adding an aggregation annotation in the business logic function that meets the application scenario and specifying the type of the third annotation parameter in the aggregation annotation.

[0095] The fourth annotation parameter is of string type. Developers can write aggregation functions that conform to their own business logic (aggregation functions have corresponding aggregation logic), and specify the second annotation parameter as the custom aggregation function name. The digital object-based distributed data warehouse development system automatically parses the custom aggregation function specified by the developer and stores the aggregation logic of the custom aggregation function in the cluster route. The client can obtain the corresponding aggregation logic in the cluster route according to the distributed data warehouse it uses, and when receiving the return results from multiple servers, it automatically completes the aggregation according to the aggregation logic and returns the final result.

[0096] The fifth annotation parameter is used to specify the runtime of the aggregation function, that is, the runtime of the initial target aggregation logic. The number of requests sent by the developer does not have to be the same as the number of requests used for aggregation. It is only necessary to perform aggregation when the number of received return results reaches a certain number to return the final result. In a distributed cluster environment, there is no way to guarantee that all cluster nodes are available. In many application scenarios (such as global statistics), developers will allow a certain amount of error, but hope that the service interface can return results as soon as possible to ensure timeliness. Based on this consideration, the fifth annotation parameter is used to adapt to specific application scenarios.

[0097] The sixth annotation parameter is of string type. You can use it to write aggregation logic functions. You can also use it to control the runtime of the specified custom aggregation function in different business scenarios.

[0098] In actual application, the target aggregation logic can be determined by the third annotation parameter and the fifth annotation parameter, that is, when the default aggregation logic provided by the system is used, the target aggregation logic is determined by steps C1 and C3; when the custom aggregation logic is used, the target aggregation logic is determined by steps C2 and C3. In addition, when the custom aggregation logic is used, the target aggregation logic can also be directly determined by the sixth annotation parameter, that is, the target aggregation logic is determined by step C4.

[0099] In the embodiment of the present application, the distributed data warehouse development system usually needs to route requests to different nodes for processing according to specific rules, and aggregate multiple returned results. In order to simplify the development process of the distributed data warehouse, the extended digital object interface protocol provides support for the default logic of the distributed data warehouse development system. Developers can use annotations to specify the target routing logic and target aggregation logic. If the target routing logic is not specified, a node will be randomly selected by default. If the target aggregation logic is not specified, the results returned by multiple nodes will be aggregated into the same structure by default and returned. This default logic allows developers to use services more easily, while also ensuring the high availability and scalability of the distributed data warehouse development system. By using these annotations, developers can focus more on the implementation of business logic without considering the details of the underlying distributed deployment and data aggregation. In addition, the extended digital object interface protocol also provides support for custom logic. Developers can customize the target routing logic through routing annotations, and specify custom target aggregation logic through aggregation annotations, thereby ensuring the flexibility of distributed data warehouse development.

[0100] In an optional embodiment, according to the target routing logic and the target aggregation logic, the corresponding digital object component is called from the digital object-based distributed data warehouse development system to obtain a distributed data warehouse, including steps D1 to D4:

[0101] Step D1: The client initiates a request for the distributed data warehouse including the target routing logic and the target aggregation logic and sends the request to the data space management module.

[0102] Step D2: the data space management module initiates a request according to the distributed data warehouse, determines a target server cluster from the managed server clusters, and updates the routing logic and aggregation logic corresponding to the target server cluster into the routing.

[0103] Step D3: The data space management module sends the distributed data warehouse initiation request to the contract instance management module through a unified call interface according to the routing.

[0104] Step D4: The contract instance management module initiates a request according to the distributed data warehouse, obtains the contract code from the distributed code warehouse, and starts the contract code locally to obtain the distributed data warehouse, where the contract code represents the code associated with the business logic.

[0105] In an embodiment of the present application, the code associated with the business logic is stored in a distributed code repository in advance so that the distributed code repository performs version management on the code. When pulling up a distributed data warehouse, all distributed data warehouse initiation requests will first be sent to the data space management module. The data space management module is responsible for the process of pulling up the entire distributed data warehouse cluster. The data space management module manages a server cluster. When the server cluster receives a distributed data warehouse initiation request, it will determine the target server cluster from the managed server cluster to form cluster information (i.e., routing logic and aggregation logic) and update it to the route. Afterwards, all contract instance management modules are called to pull up the service. After receiving the distributed data warehouse initiation request, the contract instance management module obtains the contract code (i.e., business code logic) from the distributed code repository, and starts it locally through the startup parameters to obtain a distributed data warehouse. After obtaining the distributed data warehouse, the data space management module will also return the cluster startup result to the caller or developer.

[0106] The present application embodiment also provides a distributed data object warehouse development device for a scientific data center, referring to Figure 4 As shown, Figure 4 : is a structural diagram of a distributed data object warehouse development device for a scientific data center provided in an embodiment of the present application, the device comprising:

[0107] An extension module 410 is used to extend the digital object interface protocol according to the routing annotation and the aggregation annotation to obtain an extended digital object interface protocol, wherein the routing annotation is used to determine the access path of the cluster server, and the aggregation annotation is used to process the return result of the cluster server, and the extended digital object interface protocol supports single-point to multi-point data calls;

[0108] A construction module 420 is used to construct a distributed data warehouse development system that supports the extended digital object interface protocol, and abstract each component of the distributed data warehouse development system into a digital object to obtain a digital object-based distributed data warehouse development system;

[0109] The development module 430 is used to call the digital object components in the digital object-based distributed data warehouse development system in the manner of calling digital objects according to the extended digital object interface protocol to perform distributed data warehouse development.

[0110] In an optional embodiment, the development module includes:

[0111] A logic determination module, used to determine a target routing logic according to a routing annotation in the extended digital object interface protocol, and to determine a target aggregation logic according to an aggregation annotation in the extended digital object interface protocol, wherein the target routing logic represents an access path of a cluster server that executes a business logic, and the target aggregation logic is used to represent a processing strategy for a return result of the cluster server;

[0112] The component calling module is used to call the corresponding digital object component from the digital object-based distributed data warehouse development system according to the target routing logic and the target aggregation logic to obtain a distributed data warehouse.

[0113] In an optional embodiment, the logic determination module includes:

[0114] A first determination submodule, configured to determine a target routing logic according to a routing logic defined by a first annotation parameter of the routing annotation, wherein the first annotation parameter is used to characterize the routing logic provided by the digital object-based distributed data warehouse development system;

[0115] The second determination submodule is used to determine the customized routing logic as the target routing logic according to the second annotation parameter of the routing annotation.

[0116] In an optional embodiment, the logic determination module includes:

[0117] A third determination submodule, configured to determine an initial target aggregation logic according to an aggregation logic defined by a third annotation parameter of the aggregation annotation, wherein the third annotation parameter is used to characterize the aggregation logic provided by the digital object-based distributed data warehouse development system;

[0118] A fourth determination submodule, used to determine the initial target aggregation logic based on the user-defined aggregation logic according to the fourth annotation parameter of the aggregation annotation;

[0119] The fifth determination submodule is used to determine the runtime of the initial target aggregation logic according to the fifth annotation parameter of the aggregation annotation to obtain the target aggregation logic, and the runtime is determined according to the business scenario.

[0120] In an optional embodiment, the logic determination module includes:

[0121] The sixth determination submodule is used to determine the customized routing logic as the initial target aggregation logic according to the sixth annotation parameter of the aggregation annotation, and specify the runtime of the initial target aggregation logic to obtain the target aggregation logic, and the runtime is determined according to the business scenario.

[0122] In an optional embodiment, the building block includes:

[0123] The first construction submodule is used to build a server, which is used to pull up a server cluster according to a request initiated by a distributed data warehouse, and store the routing logic and aggregation logic corresponding to the server cluster in the routing;

[0124] The second construction submodule is used to construct a client, to generate a distributed data warehouse initiation request, to obtain the routing logic and aggregation logic corresponding to the server cluster from the routing, and to execute the routing logic function and the aggregation logic function.

[0125] In an optional embodiment, the building block includes:

[0126] A splitting module, used to split the distributed data warehouse development system into multiple components according to different system functions;

[0127] An abstraction module, used for abstracting the multiple components into digital objects to obtain multiple digital object components;

[0128] The relationship reconstruction module is used to reconstruct the interactive relationship between the multiple digital object components to obtain the digital object-based distributed data warehouse development system.

[0129] In an optional embodiment, the digital object component includes: a data space management module, a digital object browser, a distributed code repository, a contract instance management module, a code object, and an instantiated contract object; the relationship reconstruction module includes:

[0130] A request entry determination module, used to use the data space management module as an entry for initiating a request to a distributed data warehouse;

[0131] The calling interface determination module is used to establish a unified calling interface between the data space management module and other digital object components, so that after the data space management module receives a request initiated by the distributed data warehouse, other digital object components are called through the unified calling interface to pull up the distributed data warehouse.

[0132] In an optional embodiment, the component calling module includes:

[0133] A first sending module, configured to initiate a request for the distributed data warehouse including the target routing logic and the target aggregation logic through a client, and send the request to a data space management module;

[0134] An update module, used for the data space management module to initiate a request according to the distributed data warehouse, determine a target server cluster from the managed server clusters, and update the routing logic and aggregation logic corresponding to the target server cluster into the routing;

[0135] A second sending module, configured for the data space management module to send the distributed data warehouse initiation request to the contract instance management module through a unified call interface according to the routing;

[0136] A startup module is used for the contract instance management module to initiate a request according to the distributed data warehouse, obtain the contract code from the distributed code warehouse, and start the contract code locally to obtain the distributed data warehouse, wherein the contract code represents the code associated with the business logic.

[0137] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0138] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods and devices according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0139] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0140] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0141] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0142] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0143] The above is a detailed introduction to a distributed data object warehouse development method and device for a scientific data center provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for developing a distributed data object warehouse for a scientific data center, characterized in that: include: The digital object interface protocol is extended according to the routing annotation and the aggregation annotation to obtain an extended digital object interface protocol, wherein the routing annotation is used to determine the access path of the cluster server, the aggregation annotation is used to process the return result of the cluster server, and the extended digital object interface protocol supports single-point to multi-point data calls; Constructing a distributed data warehouse development system that supports the extended digital object interface protocol, and abstracting each component of the distributed data warehouse development system into a digital object to obtain a digital object-based distributed data warehouse development system; According to the extended digital object interface protocol, the digital object components in the digital object-based distributed data warehouse development system are called in a digital object manner to perform distributed data warehouse development.

2. The method according to claim 1, characterized in that: According to the extended digital object interface protocol, the digital object component in the digital object-based distributed data warehouse development system is called in a digital object manner to perform distributed data warehouse development, including: Determine the target routing logic according to the routing annotation in the extended digital object interface protocol, and determine the target aggregation logic according to the aggregation annotation in the extended digital object interface protocol, wherein the target routing logic represents the access path of the cluster server that executes the business logic, and the target aggregation logic is used to represent the processing strategy of the return result of the cluster server; According to the target routing logic and the target aggregation logic, the corresponding digital object component is called from the digital object-based distributed data warehouse development system to obtain a distributed data warehouse.

3. The method according to claim 2, characterized in that Determining target routing logic according to the routing annotation in the extended digital object interface protocol includes: Determine the target routing logic according to the routing logic defined by the first annotation parameter of the routing annotation, wherein the first annotation parameter is used to characterize the routing logic provided by the digital object-based distributed data warehouse development system; or According to the second annotation parameter of the routing annotation, the customized routing logic is determined as the target routing logic.

4. The method according to claim 2, characterized in that: According to the aggregation annotation in the extended digital object interface protocol, determining the target aggregation logic includes: Determine the initial target aggregation logic according to the aggregation logic defined by the third annotation parameter of the aggregation annotation, wherein the third annotation parameter is used to characterize the aggregation logic provided by the digital object-based distributed data warehouse development system; or, determine the initial target aggregation logic according to the custom aggregation logic according to the fourth annotation parameter of the aggregation annotation; According to the fifth annotation parameter of the aggregation annotation, the runtime of the initial target aggregation logic is determined to obtain the target aggregation logic, and the runtime is determined according to the business scenario.

5. The method according to claim 2, characterized in that: According to the aggregation annotation in the extended digital object interface protocol, determining the target aggregation logic includes: According to the sixth annotation parameter of the aggregation annotation, the customized routing logic is determined as the initial target aggregation logic, and the runtime of the initial target aggregation logic is specified to obtain the target aggregation logic, where the runtime is determined according to the business scenario.

6. The method according to claim 5, characterized in that Constructing a distributed data warehouse development system supporting the extended digital object interface protocol, including: Build a server to launch a server cluster based on a request from a distributed data warehouse, and store the routing logic and aggregation logic corresponding to the server cluster in the route; Construct a client to generate a distributed data warehouse initiation request, obtain the routing logic and aggregation logic corresponding to the server cluster from the routing, and execute the routing logic function and the aggregation logic function.

7. The method according to claim 1, characterized in that Abstracting each component of the distributed data warehouse development system into a digital object to obtain a digital object-based distributed data warehouse development system, including: Splitting the distributed data warehouse development system into multiple components according to different system functions; Abstracting the multiple components into digital objects to obtain multiple digital object components; The interactive relationship between the multiple digital object components is reconstructed to obtain the digital object-based distributed data warehouse development system.

8. The method according to claim 7, characterized in that The digital object components include: a data space management module, a digital object browser, a distributed code repository, a contract instance management module, a code object, and an instantiated contract object; reconstructing the interaction relationship between the multiple digital object components includes: Using the data space management module as the entry point for initiating requests from the distributed data warehouse; A unified calling interface is established between the data space management module and other digital object components, so that after the data space management module receives a request initiated by the distributed data warehouse, other digital object components are called through the unified calling interface to pull up the distributed data warehouse.

9. The method according to claim 2, characterized in that: According to the target routing logic and the target aggregation logic, the corresponding digital object component is called from the digital object-based distributed data warehouse development system to obtain a distributed data warehouse, including: Initiate a request for the distributed data warehouse including the target routing logic and the target aggregation logic through the client and send the request to the data space management module; The data space management module initiates a request according to the distributed data warehouse, determines a target server cluster from the managed server clusters, and updates the routing logic and aggregation logic corresponding to the target server cluster into the routing; The data space management module sends the distributed data warehouse initiation request to the contract instance management module through a unified call interface according to the route; The contract instance management module initiates a request according to the distributed data warehouse, obtains the contract code from the distributed code warehouse, and starts the contract code locally to obtain the distributed data warehouse, wherein the contract code represents the code associated with the business logic.

10. A distributed data object warehouse development device for a scientific data center, characterized in that: include: An extension module is used to extend the digital object interface protocol according to the routing annotation and the aggregation annotation to obtain an extended digital object interface protocol, wherein the routing annotation is used to determine the access path of the cluster server, and the aggregation annotation is used to process the return result of the cluster server, and the extended digital object interface protocol supports single-point to multi-point data calls; A construction module is used to construct a distributed data warehouse development system that supports the extended digital object interface protocol, and abstract each component of the distributed data warehouse development system into a digital object to obtain a digital object-based distributed data warehouse development system; The development module is used to call the digital object components in the digital object-based distributed data warehouse development system in the manner of calling digital objects according to the extended digital object interface protocol to carry out distributed data warehouse development.