WO2022141287A1 - Data management method and apparatus, data query method and apparatus, service mesh system, and computing device - Google Patents

Data management method and apparatus, data query method and apparatus, service mesh system, and computing device Download PDF

Info

Publication number
WO2022141287A1
WO2022141287A1 PCT/CN2020/141773 CN2020141773W WO2022141287A1 WO 2022141287 A1 WO2022141287 A1 WO 2022141287A1 CN 2020141773 W CN2020141773 W CN 2020141773W WO 2022141287 A1 WO2022141287 A1 WO 2022141287A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
data source
module
service
sidecar
Prior art date
Application number
PCT/CN2020/141773
Other languages
French (fr)
Chinese (zh)
Inventor
于逸凡
高亮
Original Assignee
西门子(中国)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 西门子(中国)有限公司 filed Critical 西门子(中国)有限公司
Priority to PCT/CN2020/141773 priority Critical patent/WO2022141287A1/en
Priority to CN202080108052.4A priority patent/CN116802628A/en
Publication of WO2022141287A1 publication Critical patent/WO2022141287A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures

Definitions

  • the present disclosure generally relates to the field of database technology, and more particularly, to a data management and query method, apparatus, service grid system, and computing device.
  • DaaS data as a service
  • service mesh is a hot technology used in microservice scenarios, and its sidecar model helps to discover and register services.
  • the present invention proposes a technical solution of applying a service mesh (Service Mesh) technology to data, and realizing DaaS by constructing a unified data specification.
  • Service Mesh Service Mesh
  • a data management method including: adding a sidecar module for each data source, the sidecar module including at least a registration submodule, and the registration submodule includes identification information of the data source; Parsing the registration module to obtain identification information of the data source; and registering the identification information of the data source in a service registration center.
  • the sidecar module further includes: a discovery submodule, a flow control submodule, and a routing submodule, where the discovery submodule is used to realize mutual discovery between different data sources;
  • the flow control sub-module is used to control the flow of the data source;
  • the routing sub-module is used to implement data routing of the data source.
  • a data management apparatus comprising: a sidecar adding unit configured to add a sidecar module for each data source, the sidecar module including at least a registration submodule, the registration submodule including the identification information of the data source; a parsing unit, configured to parse the registration sub-module to determine the identification information of the data source; a registration unit, configured to register the identification information of the data source in the service registration center for registration.
  • a data query method comprising: receiving a user's query request for a data source; a driver browsing a registered data source in a service registration center; The user returns prompt information, and if the data source requested by the user is found in the service registration center, the driver establishes a connection with the data source by using the information in the sidecar module.
  • the method further includes: mapping the queried data into a standard format based on a pre-established standard interface specification, and returning the data in the standard format to the user
  • data sources in different formats can be converted into a unified standard format and returned to the user, so that the user can obtain data in a unified standard format without caring about the storage method of the underlying data.
  • a service mesh system including a data unit and a control unit, the data unit including a plurality of data sources, each data source having a sidecar module; and the control unit including a service registry a center and a data source parser, where the data source parser is used for parsing the sidecar module and registering the identification information of the data source obtained by parsing in the service registration center.
  • the system further includes: a driving unit, where the driving unit includes a driver for the multiple data sources and a service discovery module, the service discovery module is configured to When the driving unit receives a query request for the data source from the user, it browses the service registration center to determine whether the data source is registered in the service registration center.
  • a computing device comprising: at least one processor; and a memory coupled to the at least one processor, the memory for storing instructions, when the instructions are executed by the at least one processor When executed by the processor, the processor is caused to execute the method as described above.
  • a non-transitory machine-readable storage medium storing executable instructions that, when executed, cause the machine to perform the method as described above.
  • a computer program comprising computer-executable instructions which, when executed, cause at least one processor to perform the method as described above.
  • a computer program product tangibly stored on a computer-readable medium and comprising computer-executable instructions that, when executed, cause at least one A processor executes the method as described above.
  • the data query method and the service grid system of the present invention by adding a sidecar structure to the data source, the functions of automatic registration and discovery of the data source, flow control and routing are realized.
  • the functions of automatic registration and discovery of the data source, flow control and routing are realized.
  • raw data can be mapped into standard formats, so that standard data query results can be provided.
  • FIG. 1 is a flowchart of an exemplary process of a data management method according to a first aspect of an embodiment of the present invention
  • FIG. 2 is a block diagram of an exemplary configuration of a data management apparatus according to an embodiment of the present invention
  • FIG. 3 is a flowchart of an exemplary process of a data query method according to a second aspect of an embodiment of the present invention.
  • FIG. 4 shows an exemplary architecture diagram of a service mesh system according to an embodiment of the present invention
  • FIG. 5 illustrates a block diagram of a computing device implementing data management and data querying according to an embodiment of the present disclosure.
  • the term “including” and variations thereof represent open-ended terms meaning “including but not limited to”.
  • the term “based on” means “based at least in part on”.
  • the terms “one embodiment” and “an embodiment” mean “at least one embodiment.”
  • the term “another embodiment” means “at least one other embodiment.”
  • the terms “first”, “second”, etc. may refer to different or the same objects. Other definitions, whether explicit or implicit, may be included below. The definition of a term is consistent throughout the specification unless the context clearly dictates otherwise.
  • DaaS Data is provided as a service.
  • upper-level data consumers do not need to focus on issues such as acquiring underlying data, and can focus entirely on data usage.
  • Heterogeneous data sources Different types of databases, such as JDBC type, restful type, etc., different types of databases have different forms of data storage and data connection configuration.
  • Service mesh is a hot technology for microservices and other scenarios in recent years. Its core is to achieve rapid service discovery and registration by decoupling the data platform and the control platform.
  • the sidecar structure provides proxies that implement service discovery, load balancing, and other functions.
  • the present invention applies service mesh (Service Mesh) technology to data, and realizes DaaS by constructing a unified data specification.
  • service mesh Service Mesh
  • FIG. 1 is a flowchart of an exemplary process of a data management method 100 according to the first aspect of the embodiment of the present invention.
  • step S102 a sidecar module is added for each data source, and the sidecar module includes at least a registration sub-module, and the registration sub-module includes identification information of the data source;
  • a plurality of different data sources constitute a service mesh, and it is hoped that the data source can be discovered and registered as a separate service.
  • the data sources here can be heterogeneous, such as stored in different types of databases, such as JDBC, Restful, etc., or stored on a website. Therefore, the data management method according to the present invention can realize the management of heterogeneous data.
  • a sidecar module is added for each data source, and the sidecar module can implement the service registration function of the data source.
  • the sidecar module includes a registration sub-module that can extract identification information from the data source.
  • the identification information refers to information that can be used to uniquely identify a specific data source, such as an IP address and/or a port address.
  • the present invention does not limit the specific type of identification information of the data source.
  • the sidecar module may further include: a discovery sub-module, a flow control sub-module, and a routing sub-module.
  • the discovery sub-module is used to realize mutual discovery between different data sources; the flow control sub-module is used to control the flow of the data source; the routing sub-module is used to realize the data routing of the data source.
  • step S104 the registration sub-module is parsed to obtain identification information of the data source.
  • the identification information of the data source can be determined.
  • step S106 the identification information of the data source is registered in the service registration center.
  • the data source can be called the data plane, and the service registry that parses the registration sub-modules and registers the data source is located in the control plane.
  • the data plane and the control plane may be located on the same server, or may be located on different servers in the same cluster.
  • a sidecar structure is added for each data source, so that the data plane and the control plane are decoupled, and rapid service discovery and registration are realized.
  • the sidecar structure can provide functions such as service registration, service discovery, routing, and flow control to the control plane.
  • the sidecar structure decouples these services from the storage of the data source, making these services independent of the logic of the data source itself.
  • FIG. 2 is a block diagram of an exemplary configuration of a data management apparatus 200 according to an embodiment of the present invention.
  • the data management apparatus 200 includes a sidecar adding unit 202 , a parsing unit 204 and a registration unit 206 .
  • the sidecar adding unit 202 is configured to add a sidecar module for each data source, the sidecar module at least includes a registration sub-module, and the registration sub-module includes identification information of the data source.
  • the parsing unit 204 is configured to parse the registration submodule to obtain identification information of the data source.
  • the registration unit 206 is configured to register the identification information of the data source in the service registration center.
  • each part of the data management apparatus 200 may be the same as or similar to the relevant parts of the embodiment of the data management method 100 of the present invention described with reference to FIG. 1 , and will not be described in detail here. .
  • FIG. 3 is a flowchart of an exemplary process of a data query method 300 according to the second aspect of the embodiment of the present invention.
  • the data query method according to this embodiment is to query the database that adds a sidecar module to the data source and registers in the service registration center according to the data management method described with reference to FIG. 1 .
  • step S302 a query request for a data source from a user is received.
  • step S304 the driver browses the registered data sources in the service registration center.
  • step S306 if the data source requested by the query is not found, it means that the data source is not registered in the service registration center, and a prompt message is returned to the user; if the data source requested by the user is found in the service registration center, then The driver uses the information in the sidecar module to establish a connection with the data source.
  • the registration sub-module in the sidecar module includes the identification information of the data source, so the driver can directly establish a connection with the data source based on this information.
  • the data query method 300 may further include step S308 : mapping the queried data into a standard format based on a pre-established standard interface specification, and returning the data in the standard format to the user.
  • a standard data storage form may be defined, for example, a set of standard specifications may be specified, and metadata information related to the data source may be defined in the specifications.
  • JDBC type data sources you can define user names, passwords, and other information
  • URL proxy, schema mapping information, etc. you can define URL proxy, schema mapping information, etc.; and then convert data sources in different formats into a unified standard
  • the format is returned to the user, so that the user can obtain data in a unified standard format without caring about the storage method of the underlying data.
  • the standard specification of the data can be formulated by the user as required, and the specific format of the data is not limited.
  • the driver can determine the mapping rule between the data format of the data source and the standard data format, and add an API interface to the sidecar module or add an API interface to the data source to realize the above-mentioned operation of converting the format of the data source.
  • the data converted into the standard format is first returned to the driver, and the driver provides the data in the standard format to the user via the gateway.
  • FIG. 4 shows an exemplary architecture diagram of a service mesh system 400 according to an embodiment of the present invention, including: a data unit 401 and a control unit 402 .
  • the data unit 401 includes a plurality of data sources 4011, each data source 4011 having a sidecar module 4012.
  • Data sources 4011 may be heterogeneous data stored on different types of databases or on different websites.
  • the control unit 402 includes a service registration center 4021 and a data source parser 4022.
  • the data source parser 4022 is used to parse the sidecar module 4012 of the data source 4011, and the identification information of the data source obtained by the analysis is stored in the service registration center. 4021 to register.
  • the service mesh system 400 further includes a driving unit 403, and the driving unit 403 includes a driver 4031 and a service discovery module 4032 for different data sources, respectively.
  • the service discovery module 4032 is configured to browse the service registration center 4021 to determine whether the data source 4011 is registered in the service registration center when the driving unit 403 receives the user's query request for the data source 4011 4021.
  • the data unit 401, the control unit 402 and the drive unit 403 may be located on the same server, or may be located on different servers in the same cluster.
  • FIG. 4 also includes a gateway 404, a data user 405, and an API 406 (application program interface) between the user and the gateway.
  • a gateway 404 a data user 405
  • API 406 application program interface
  • a plurality of data sources 4011 have been registered in the service registration center 4021 according to the data management method described above with reference to FIG. 1 .
  • the service discovery module 4032 of the driver 403 browses the identification information of the registered data source in the service registration center 4021; if the requested query data is not found If the requested data source is found in the service registration center 4021, the driver 403 uses the information in the sidecar module 4012 to establish with the data source 4011 connect.
  • the driver After establishing the connection with the data source 4011, the driver determines the mapping rule between the data format of the data source and the standard format based on the pre-established standard specification, and sends the mapping rule to the API interface of the data source, and the API interface will query the data It is mapped into a standard format, and the data in the standard format is returned to the driver 403 , and the driver 403 then returns the data query result in a unified format to the user 405 through the gateway 404 .
  • the operation of converting the format of the data source can be realized by adding an API interface in the sidecar module 4012 or adding an API interface in the data source 40211, which will not be described in detail here.
  • the data sources and storage methods are diverse, the data sources may be different instruments and equipment, and the data formats collected from these equipment are also different.
  • Equipment suppliers can choose different databases to store data according to the characteristics of the equipment.
  • upper-layer applications need to connect multiple data sources.
  • the deployed data sources can be registered automatically. Different data sources can also discover each other. This reduces development effort for data sources from different vendors and improves scalability.
  • the added sidecar structure integrates functions unrelated to the data source logic itself, such as registration, discovery, flow control, and routing.
  • Data storage and control functions can be decoupled through the sidecar, which reduces the cost of DevOps (development operations and maintenance).
  • DevOps development operations and maintenance
  • the flow control function can solve the congestion problem of network transmission.
  • a new DaaS solution based on service grid is proposed.
  • the automatic registration and discovery of the data source, as well as the flow control and routing functions are realized.
  • raw data can be mapped into standard formats, so that standard data query results can be provided.
  • the connection information of the data source can also be standardized according to the data source type template.
  • the sidecar structure is used without the need for configuration files, thereby reducing the deployment time of the data source and having better expansibility.
  • the data management method, the data query method, and the service mesh system are described.
  • the above-mentioned data management apparatus and each unit of the service grid system may be implemented by hardware, or may be implemented by software or a combination of hardware and software.
  • computing device 500 may include at least one processor 502 that executes at least one computer-readable instruction (ie, the above-described in software form) stored or encoded in a computer-readable storage medium (ie, memory 504 ). implemented elements).
  • processor 502 that executes at least one computer-readable instruction (ie, the above-described in software form) stored or encoded in a computer-readable storage medium (ie, memory 504 ). implemented elements).
  • a non-transitory machine-readable medium may have machine-executable instructions (ie, the above-described elements implemented in software) that, when executed by a machine, cause the machine to perform various embodiments of the present disclosure above in conjunction with FIGS. 1-6 Various operations and functions are described.
  • a computer program comprising computer-executable instructions that, when executed, cause at least one processor to perform each of the various embodiments of the present disclosure described above in connection with FIGS. 1-6 operations and functions.
  • a computer program product comprising computer-executable instructions that, when executed, cause at least one processor to perform the various embodiments of the present disclosure described above in connection with FIGS. 1-6 Various operations and functions.
  • the device structure described in the above embodiments may be a physical structure or a logical structure, that is, some units may be implemented by the same physical entity, or some units may be implemented by multiple physical entities respectively, or may be implemented by multiple physical entities. Some components in separate devices are implemented together.

Abstract

A data management method and apparatus, a data query method and apparatus, a service mesh system, and a computing device. The data management method comprises: adding a sidecar module for each data source, the edge vehicle module at least comprising a registration submodule, the registration submodule comprising identification information of the data source (S102); parsing the registration module to obtain the identification information of the data source (S104); and registering the identification information of the data source in a service registration center (S106).

Description

数据管理和查询方法、装置、服务网格系统、计算设备Data management and query method, apparatus, service grid system, computing device 技术领域technical field
本公开通常涉及数据库技术领域,更具体地,涉及数据管理和查询方法、装置、服务网格系统、计算设备。The present disclosure generally relates to the field of database technology, and more particularly, to a data management and query method, apparatus, service grid system, and computing device.
背景技术Background technique
数据即服务(DaaS)的概念帮助企业数据资产的统一管理和应用,并且极大地提高了效率。对于企业数据资产,在市场中根据不同需要具有多种数据存储形式。另一方面,服务网格是应用于微服务场景的热点技术,其边车模型有助于发现服务以及进行服务注册。The concept of data as a service (DaaS) helps the unified management and application of enterprise data assets, and greatly improves the efficiency. For enterprise data assets, there are various data storage forms in the market according to different needs. On the other hand, service mesh is a hot technology used in microservice scenarios, and its sidecar model helps to discover and register services.
然而,目前没有一种将数据看作服务被自动注册和发现的技术方案。However, there is currently no technical solution for automatically registering and discovering data as services.
发明内容SUMMARY OF THE INVENTION
在下文中给出关于本发明的简要概述,以便提供关于本发明的某些方面的基本理解。应当理解,这个概述并不是关于本发明的穷举性概述。它并不是意图确定本发明的关键或重要部分,也不是意图限定本发明的范围。其目的仅仅是以简化的形式给出某些概念,以此作为稍后论述的更详细描述的前序。The following presents a brief summary of the present invention in order to provide a basic understanding of certain aspects of the invention. It should be understood that this summary is not an exhaustive overview of the invention. It is not intended to identify key or essential parts of the invention nor to limit the scope of the invention. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is discussed later.
有鉴于此,本发明提出了将服务网格(Service Mesh)技术应用于数据,并且通过构建统一的数据规范来实现DaaS的技术方案。In view of this, the present invention proposes a technical solution of applying a service mesh (Service Mesh) technology to data, and realizing DaaS by constructing a unified data specification.
根据本公开的一个方面,提供了数据管理方法,包括:针对每一个数据源增加边车模块,所述边车模块至少包括注册子模块,所述注册子模块包括所述数据源的标识信息;对所述注册模块进行解析,获得所述数据源的标识信息;以及将所述数据源的标识信息在服务注册中心进行注册。According to an aspect of the present disclosure, a data management method is provided, including: adding a sidecar module for each data source, the sidecar module including at least a registration submodule, and the registration submodule includes identification information of the data source; Parsing the registration module to obtain identification information of the data source; and registering the identification information of the data source in a service registration center.
通过给数据源增加边车结构,实现了数据源的自动注册。By adding a sidecar structure to the data source, the automatic registration of the data source is realized.
可选地,在上述方面的一个示例中,所述边车模块还包括:发现子模块、流量控制子模块和路由子模块,所述发现子模块用于实现不同数据源之间的互相发现;所述流量控制子模块用于控制数据源的流量;所述路由子模块用于实现数据源的数据路由。Optionally, in an example of the above aspect, the sidecar module further includes: a discovery submodule, a flow control submodule, and a routing submodule, where the discovery submodule is used to realize mutual discovery between different data sources; The flow control sub-module is used to control the flow of the data source; the routing sub-module is used to implement data routing of the data source.
通过这样的方式,进一步实现了数据源的自动发现以及流量控制和路由功能。In this way, the automatic discovery of data sources and the functions of flow control and routing are further realized.
根据本公开的另一方面,提供了数据管理装置,包括:边车增加单元,被配置为针对每一个数据源增加边车模块,所述边车模块至少包括注册子模块,所述注册子模块包括所述数据源的标识信息;解析单元,被配置为对所述注册子模块进行解析,确定所述数据源的标识信息;注册单元,被配置为将所述数据源的标识信息在服务注册中心进行注册。According to another aspect of the present disclosure, a data management apparatus is provided, comprising: a sidecar adding unit configured to add a sidecar module for each data source, the sidecar module including at least a registration submodule, the registration submodule including the identification information of the data source; a parsing unit, configured to parse the registration sub-module to determine the identification information of the data source; a registration unit, configured to register the identification information of the data source in the service registration center for registration.
根据本公开的另一方面,提供了一种数据查询方法,包括:接收用户对数据源的查询请求;驱动器在服务注册中心浏览已经注册的数据源;如果未找到请求查询的数据源,则向所述用户返回提示信息,如果在所述服务注册中心找到所述用户请求的数据源,则驱动器利用边车模块中的信息与所述数据源建立连接。According to another aspect of the present disclosure, a data query method is provided, comprising: receiving a user's query request for a data source; a driver browsing a registered data source in a service registration center; The user returns prompt information, and if the data source requested by the user is found in the service registration center, the driver establishes a connection with the data source by using the information in the sidecar module.
可选地,在上述方面的一个示例中,所述方法还包括:基于预先制定的标准接口规范将查询到的数据映射为标准格式,并向用户返回所述标准格式的数据Optionally, in an example of the above aspect, the method further includes: mapping the queried data into a standard format based on a pre-established standard interface specification, and returning the data in the standard format to the user
通过这样的方式,可以将不同格式的数据源转化为统一的标准格式返回给用户,这样对于用户来说无需关心底层数据的存储方式,就可以得到统一的标准格式的数据。In this way, data sources in different formats can be converted into a unified standard format and returned to the user, so that the user can obtain data in a unified standard format without caring about the storage method of the underlying data.
根据本公开的另一方面,提供了一种服务网格系统,包括数据单元和控制单元,所述数据单元包括多个数据源,每一个数据源具有一个边车模块;以及控制单元包括服务注册中心和数据源解析器,数据源解析器用于对所述边车模块进行解析,并将解析获得的数据源的标识信息在所述服务注册中心进行注册。According to another aspect of the present disclosure, there is provided a service mesh system including a data unit and a control unit, the data unit including a plurality of data sources, each data source having a sidecar module; and the control unit including a service registry a center and a data source parser, where the data source parser is used for parsing the sidecar module and registering the identification information of the data source obtained by parsing in the service registration center.
可选地,在上述方面的一个示例中,所述系统还包括:驱动单元,所述驱动单元包括分别针对所述多个数据源的驱动器和服务发现模块,所述服务发现模块用于在所述驱动单元接收到用户对所述数据源的查询请求时,浏览所述服务注册中心来确定所述数据源是否在所述服务注册中心注册。Optionally, in an example of the above aspect, the system further includes: a driving unit, where the driving unit includes a driver for the multiple data sources and a service discovery module, the service discovery module is configured to When the driving unit receives a query request for the data source from the user, it browses the service registration center to determine whether the data source is registered in the service registration center.
根据本公开的另一方面,提供了计算设备,包括:至少一个处理器;以及与所述至少一个处理器耦合的一个存储器,所述存储器用于存储指令,当所述指令被所述至少一个处理器执行时,使得所述处理器执行如上所述的方法。According to another aspect of the present disclosure, there is provided a computing device comprising: at least one processor; and a memory coupled to the at least one processor, the memory for storing instructions, when the instructions are executed by the at least one processor When executed by the processor, the processor is caused to execute the method as described above.
根据本公开的另一方面,提供了一种非暂时性机器可读存储介质,其存储有可执行指令,所述指令当被执行时使得所述机器执行如上所述的方法。According to another aspect of the present disclosure, there is provided a non-transitory machine-readable storage medium storing executable instructions that, when executed, cause the machine to perform the method as described above.
根据本公开的另一方面,提供了一种计算机程序,包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行如上所述的方法。According to another aspect of the present disclosure, there is provided a computer program comprising computer-executable instructions which, when executed, cause at least one processor to perform the method as described above.
根据本公开的另一方面,提供了一种计算机程序产品,所述计算机程序产品被有形地存储在计算机可读介质上并且包括计算机可执行指令,所述计算机可执行指令在被执 行时使至少一个处理器执行如上所述的方法。According to another aspect of the present disclosure, there is provided a computer program product tangibly stored on a computer-readable medium and comprising computer-executable instructions that, when executed, cause at least one A processor executes the method as described above.
根据本发明的异构数据管理方法和数据查询方法以及服务网格系统,通过给数据源增加边车结构,实现了数据源的自动注册和发现以及流量控制和路由功能。另一方面,通过定义标准的数据格式规范和API,可以将原始数据映射为标准格式,从而可以提供标准的数据查询结果。According to the heterogeneous data management method, the data query method and the service grid system of the present invention, by adding a sidecar structure to the data source, the functions of automatic registration and discovery of the data source, flow control and routing are realized. On the other hand, by defining standard data format specifications and APIs, raw data can be mapped into standard formats, so that standard data query results can be provided.
附图说明Description of drawings
参照下面结合附图对本发明实施例的说明,会更加容易地理解本发明的以上和其它目的、特点和优点。附图中的部件只是为了示出本发明的原理。在附图中,相同的或类似的技术特征或部件将采用相同或类似的附图标记来表示。附图中:The above and other objects, features and advantages of the present invention will be more easily understood with reference to the following description of the embodiments of the present invention in conjunction with the accompanying drawings. The components in the drawings are merely intended to illustrate the principles of the invention. In the drawings, the same or similar technical features or components will be denoted by the same or similar reference numerals. In the attached picture:
图1为根据本发明实施例第一方面的数据管理方法的示例性过程的流程图;1 is a flowchart of an exemplary process of a data management method according to a first aspect of an embodiment of the present invention;
图2为根据本发明实施例的数据管理装置的示例性配置的框图;2 is a block diagram of an exemplary configuration of a data management apparatus according to an embodiment of the present invention;
图3为根据本发明实施例第二方面的数据查询方法的示例性过程的流程图;3 is a flowchart of an exemplary process of a data query method according to a second aspect of an embodiment of the present invention;
图4示出了根据本发明实施例的服务网格系统的示例性架构图;FIG. 4 shows an exemplary architecture diagram of a service mesh system according to an embodiment of the present invention;
图5示出了根据本公开的实施例的实现数据管理和数据查询的计算设备的方框图。5 illustrates a block diagram of a computing device implementing data management and data querying according to an embodiment of the present disclosure.
其中,附图标记如下:Among them, the reference numerals are as follows:
100:数据管理方法                 S102、S104、S106、S302、S304、S306、100: Data management methods S102, S104, S106, S302, S304, S306,
                                  S308:步骤S308: Steps
200:数据管理装置                 202:边车增加单元200: Data management device 202: Sidecar addition unit
204:解析单元                     206:注册单元204: Parsing unit 206: Registration unit
300:数据查询方法                 400:服务网格系统300: Data query method 400: Service grid system
401:数据单元                     4011:数据源401: Data unit 4011: Data source
4012:边车模块                    402:控制单元4012: Sidecar module 402: Control unit
4021:服务注册中心                4022:数据源解析器4021: Service Registry 4022: Data Source Resolver
403:驱动单元                     4031:驱动器403: Drive unit 4031: Drive
4032:服务发现模块                404:网关4032: Service Discovery Module 404: Gateway
405:数据用户                     406:API405: Data User 406: API
500:计算设备                     502:处理器500: Computing Equipment 502: Processor
504:存储器504: memory
具体实施方式Detailed ways
现在将参考示例实施方式讨论本文描述的主题。应该理解,讨论这些实施方式只是为了使得本领域技术人员能够更好地理解从而实现本文描述的主题,并非是对权利要求书中所阐述的保护范围、适用性或者示例的限制。可以在不脱离本公开内容的保护范围的情况下,对所讨论的元素的功能和排列进行改变。各个示例可以根据需要,省略、替代或者添加各种过程或组件。例如,所描述的方法可以按照与所描述的顺序不同的顺序来执行,以及各个步骤可以被添加、省略或者组合。另外,相对一些示例所描述的特征在其它例子中也可以进行组合。The subject matter described herein will now be discussed with reference to example implementations. It should be understood that these embodiments are discussed only to enable those skilled in the art to better understand and implement the subject matter described herein, and not to limit the scope of protection, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements discussed without departing from the scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as desired. For example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with respect to some examples may also be combined in other examples.
如本文中使用的,术语“包括”及其变型表示开放的术语,含义是“包括但不限于”。术语“基于”表示“至少部分地基于”。术语“一个实施例”和“一实施例”表示“至少一个实施例”。术语“另一个实施例”表示“至少一个其他实施例”。术语“第一”、“第二”等可以指代不同的或相同的对象。下面可以包括其他的定义,无论是明确的还是隐含的。除非上下文中明确地指明,否则一个术语的定义在整个说明书中是一致的。As used herein, the term "including" and variations thereof represent open-ended terms meaning "including but not limited to". The term "based on" means "based at least in part on". The terms "one embodiment" and "an embodiment" mean "at least one embodiment." The term "another embodiment" means "at least one other embodiment." The terms "first", "second", etc. may refer to different or the same objects. Other definitions, whether explicit or implicit, may be included below. The definition of a term is consistent throughout the specification unless the context clearly dictates otherwise.
下面首先简单说明一下在本说明书所提到的几个术语。First, a few terms mentioned in this specification are briefly explained below.
DaaS:数据被提供为服务。当数据管理更加集中化时,上层数据消费者不需要关注例如获取底层数据的问题,并且可以完全集中于数据的使用。DaaS: Data is provided as a service. When data management is more centralized, upper-level data consumers do not need to focus on issues such as acquiring underlying data, and can focus entirely on data usage.
异构数据源:不同类型的数据库,例如JDBC类型、restful类型等,不同类型的数据库具有不同形式的数据存储和数据连接配置。Heterogeneous data sources: Different types of databases, such as JDBC type, restful type, etc., different types of databases have different forms of data storage and data connection configuration.
服务网格(Service Mesh):服务网格是近年来用于微服务和其他场景的热点技术。其核心在于通过解耦数据平台和控制平台来实现快速服务发现和注册。边车结构提供了实现服务发现、负载平衡和其他功能的代理。Service Mesh: Service mesh is a hot technology for microservices and other scenarios in recent years. Its core is to achieve rapid service discovery and registration by decoupling the data platform and the control platform. The sidecar structure provides proxies that implement service discovery, load balancing, and other functions.
本发明将服务网格(Service Mesh)技术应用于数据,并且通过构建统一的数据规范实现了DaaS。The present invention applies service mesh (Service Mesh) technology to data, and realizes DaaS by constructing a unified data specification.
下面首先结合附图来描述根据本公开的实施例的数据管理方法和装置。The data management method and apparatus according to the embodiments of the present disclosure will be described below first with reference to the accompanying drawings.
图1为根据本发明实施例第一方面的数据管理方法100的示例性过程的流程图。FIG. 1 is a flowchart of an exemplary process of a data management method 100 according to the first aspect of the embodiment of the present invention.
首先,在步骤S102中,针对每一个数据源增加边车模块,所述边车模块至少包括注册子模块,所述注册子模块包括所述数据源的标识信息;First, in step S102, a sidecar module is added for each data source, and the sidecar module includes at least a registration sub-module, and the registration sub-module includes identification information of the data source;
根据本发明实施例的数据管理方法,与服务网格(Service Mesh)技术结合,多个不同数据源构成一个服务网格,希望数据源能够作为单独的服务被发现和注册。这里的数 据源可以是异构的,例如存储在不同类型的数据库中,比如JDBC、Restful等,也可以存储在网站上。因此,根据本发明的数据管理方法可以实现对异构数据的管理。具体地,针对每一个数据源增加一个边车模块,边车模块可以实现数据源的服务注册功能。边车模块包括一个注册子模块,该注册子模块可以从数据源提取标识信息。标识信息是指可以用来唯一确定特定数据源的信息,例如可以是IP地址和/或端口地址等。本发明对数据源的标识信息的具体类型不做限定。According to the data management method of the embodiment of the present invention, combined with the service mesh (Service Mesh) technology, a plurality of different data sources constitute a service mesh, and it is hoped that the data source can be discovered and registered as a separate service. The data sources here can be heterogeneous, such as stored in different types of databases, such as JDBC, Restful, etc., or stored on a website. Therefore, the data management method according to the present invention can realize the management of heterogeneous data. Specifically, a sidecar module is added for each data source, and the sidecar module can implement the service registration function of the data source. The sidecar module includes a registration sub-module that can extract identification information from the data source. The identification information refers to information that can be used to uniquely identify a specific data source, such as an IP address and/or a port address. The present invention does not limit the specific type of identification information of the data source.
在一个示例中,边车模块还可以包括:发现子模块、流量控制子模块和路由子模块。其中,发现子模块用于实现不同数据源之间的互相发现;流量控制子模块用于控制数据源的流量;所述路由子模块用于实现数据源的数据路由。In one example, the sidecar module may further include: a discovery sub-module, a flow control sub-module, and a routing sub-module. The discovery sub-module is used to realize mutual discovery between different data sources; the flow control sub-module is used to control the flow of the data source; the routing sub-module is used to realize the data routing of the data source.
接着,在步骤S104中,对所述注册子模块进行解析,获得所述数据源的标识信息。Next, in step S104, the registration sub-module is parsed to obtain identification information of the data source.
通过解析边车模块的注册子模块,可以确定该数据源的标识信息。By parsing the registration sub-module of the sidecar module, the identification information of the data source can be determined.
接着在步骤S106中,将所述数据源的标识信息在服务注册中心进行注册。Next, in step S106, the identification information of the data source is registered in the service registration center.
基于Service Mesh理念,数据源可以称为数据面,对注册子模块的解析和对数据源的进行注册的服务注册中心位于控制面。在本发明中,数据面和控制面可以位于同一个服务器上,也可以位于同一集群内的不同服务器上。Based on the service mesh concept, the data source can be called the data plane, and the service registry that parses the registration sub-modules and registers the data source is located in the control plane. In the present invention, the data plane and the control plane may be located on the same server, or may be located on different servers in the same cluster.
在根据本实施例的数据管理方法中,针对每个数据源增加了一个边车结构,使得数据面和控制面解耦,实现服务的快速发现和注册。边车结构可以向控制面提供服务注册、服务发现、路由和流量控制等功能,边车结构将这些服务与数据源的存储解耦,使得这些服务与数据源本身的逻辑无关。In the data management method according to this embodiment, a sidecar structure is added for each data source, so that the data plane and the control plane are decoupled, and rapid service discovery and registration are realized. The sidecar structure can provide functions such as service registration, service discovery, routing, and flow control to the control plane. The sidecar structure decouples these services from the storage of the data source, making these services independent of the logic of the data source itself.
与第一方面对应,本发明实施例还提供一种数据管理装置。图2为根据本发明实施例的数据管理装置200的示例性配置的框图。Corresponding to the first aspect, an embodiment of the present invention further provides a data management apparatus. FIG. 2 is a block diagram of an exemplary configuration of a data management apparatus 200 according to an embodiment of the present invention.
如图2所示,数据管理装置200包括边车增加单元202、解析单元204和注册单元206。As shown in FIG. 2 , the data management apparatus 200 includes a sidecar adding unit 202 , a parsing unit 204 and a registration unit 206 .
其中,边车增加单元202被配置为针对每一个数据源增加边车模块,所述边车模块至少包括注册子模块,所述注册子模块包括所述数据源的标识信息。The sidecar adding unit 202 is configured to add a sidecar module for each data source, the sidecar module at least includes a registration sub-module, and the registration sub-module includes identification information of the data source.
解析单元204被配置为对所述注册子模块进行解析,获得所述数据源的标识信息。The parsing unit 204 is configured to parse the registration submodule to obtain identification information of the data source.
注册单元206被配置为将所述数据源的标识信息在服务注册中心进行注册。The registration unit 206 is configured to register the identification information of the data source in the service registration center.
在本发明的实施例中,数据管理装置200的各个部分的操作和功能的细节可以与参照图1描述的本发明的数据管理方法100的实施例的相关部分相同或类似,这里不再详 细描述。In the embodiment of the present invention, the details of the operation and function of each part of the data management apparatus 200 may be the same as or similar to the relevant parts of the embodiment of the data management method 100 of the present invention described with reference to FIG. 1 , and will not be described in detail here. .
图3为根据本发明实施例第二方面的数据查询方法300的示例性过程的流程图。FIG. 3 is a flowchart of an exemplary process of a data query method 300 according to the second aspect of the embodiment of the present invention.
根据本实施例的数据查询方法,是针对按照参照图1所述的数据管理方法为数据源增加边车模块,并且在服务注册中心进行注册的数据库进行查询。The data query method according to this embodiment is to query the database that adds a sidecar module to the data source and registers in the service registration center according to the data management method described with reference to FIG. 1 .
首先,在步骤S302中,接收用户对数据源的查询请求。First, in step S302, a query request for a data source from a user is received.
接着,在步骤S304中,驱动器在服务注册中心浏览已经注册的数据源。Next, in step S304, the driver browses the registered data sources in the service registration center.
在步骤S306中,如果未找到请求查询的数据源,则说明该数据源未在服务注册中心进行注册,向所述用户返回提示信息;如果在所述服务注册中心找到用户请求的数据源,则驱动器利用边车模块中的信息与所述数据源建立连接。In step S306, if the data source requested by the query is not found, it means that the data source is not registered in the service registration center, and a prompt message is returned to the user; if the data source requested by the user is found in the service registration center, then The driver uses the information in the sidecar module to establish a connection with the data source.
边车模块中的注册子模块包括数据源的标识信息,因此基于该信息可以使驱动器直接与数据源建立连接。The registration sub-module in the sidecar module includes the identification information of the data source, so the driver can directly establish a connection with the data source based on this information.
在一个示例中,数据查询方法300还可以包括步骤S308:基于预先制定的标准接口规范将查询到的数据映射为标准格式,并向用户返回所述标准格式的数据。In an example, the data query method 300 may further include step S308 : mapping the queried data into a standard format based on a pre-established standard interface specification, and returning the data in the standard format to the user.
可以理解,不同类型的数据库具有不同的数据存储形式。例如,在Restful数据库中,数据存储为json格式,而不是表格的形式。在根据本发明实施例的数据查询方法中,可以定义一种标准的数据存储形式,例如指定一组标准规范,在规范中定义与数据源有关的元数据信息。例如,针对JDBC类型的数据源,可以定义用户名、密码和其他信息等,针对Rest数据源,可以定义URL代理、模式(Schema)映射信息等;然后将不同格式的数据源转化为统一的标准格式返回给用户,这样对于用户来说无需关心底层数据的存储方式,就可以得到统一的标准格式的数据。在本发明中,可以由用户根据需要制定数据的标准规范,而对于数据的具体格式不做限定。It can be understood that different types of databases have different data storage forms. For example, in Restful database, data is stored in json format, not in the form of tables. In the data query method according to the embodiment of the present invention, a standard data storage form may be defined, for example, a set of standard specifications may be specified, and metadata information related to the data source may be defined in the specifications. For example, for JDBC type data sources, you can define user names, passwords, and other information, and for Rest data sources, you can define URL proxy, schema mapping information, etc.; and then convert data sources in different formats into a unified standard The format is returned to the user, so that the user can obtain data in a unified standard format without caring about the storage method of the underlying data. In the present invention, the standard specification of the data can be formulated by the user as required, and the specific format of the data is not limited.
具体地,可以由驱动器确定数据源的数据格式与标准数据格式的映射规则,在边车模块中增加一个API接口或者在数据源中增加一个API接口来实现上述转换数据源的格式的操作。这样首先将转换为标准格式的数据返回给驱动器,驱动器再把标准格式的数据经由网关提供给用户。Specifically, the driver can determine the mapping rule between the data format of the data source and the standard data format, and add an API interface to the sidecar module or add an API interface to the data source to realize the above-mentioned operation of converting the format of the data source. In this way, the data converted into the standard format is first returned to the driver, and the driver provides the data in the standard format to the user via the gateway.
图4示出了根据本发明实施例的服务网格系统400的示例性架构图,包括:数据单元401和控制单元402。FIG. 4 shows an exemplary architecture diagram of a service mesh system 400 according to an embodiment of the present invention, including: a data unit 401 and a control unit 402 .
数据单元401包括多个数据源4011,每一个数据源4011具有一个边车模块4012。数据源4011可以是存储在不同类型的数据库上或者不同网站上的异构数据。The data unit 401 includes a plurality of data sources 4011, each data source 4011 having a sidecar module 4012. Data sources 4011 may be heterogeneous data stored on different types of databases or on different websites.
控制单元402包括服务注册中心4021和数据源解析器4022,数据源解析器4022用于对数据源4011的边车模块4012进行解析,并将解析获得的数据源的标识信息在所述服务注册中心4021进行注册。The control unit 402 includes a service registration center 4021 and a data source parser 4022. The data source parser 4022 is used to parse the sidecar module 4012 of the data source 4011, and the identification information of the data source obtained by the analysis is stored in the service registration center. 4021 to register.
在一个示例中,服务网格系统400还包括驱动单元403,驱动单元403包括分别针对不同数据源的驱动器4031和服务发现模块4032。所述服务发现模块4032用于在所述驱动单元403接收到用户对所述数据源4011的查询请求时,浏览所述服务注册中心4021来确定所述数据源4011是否在所述服务注册中心注册4021。In one example, the service mesh system 400 further includes a driving unit 403, and the driving unit 403 includes a driver 4031 and a service discovery module 4032 for different data sources, respectively. The service discovery module 4032 is configured to browse the service registration center 4021 to determine whether the data source 4011 is registered in the service registration center when the driving unit 403 receives the user's query request for the data source 4011 4021.
数据单元401、控制单元402和驱动单元403可以位于同一个服务器上,也可以位于同一个集群中的不同服务器上。The data unit 401, the control unit 402 and the drive unit 403 may be located on the same server, or may be located on different servers in the same cluster.
下面参照图4说明用户在根据本发明实施例的服务网格系统中进行数据查询的一个示例性过程。An exemplary process for a user to query data in a service grid system according to an embodiment of the present invention will be described below with reference to FIG. 4 .
图4中除了包括数据单元401、控制单元402和驱动单元403,还包括网关404、数据用户405以及用户和网关之间的API 406(应用程序接口)。这些部件是为了帮助说明数据查询的具体过程,而并非根据本发明实施例的服务网格系统的必要部件。In addition to the data unit 401, the control unit 402 and the drive unit 403, FIG. 4 also includes a gateway 404, a data user 405, and an API 406 (application program interface) between the user and the gateway. These components are to help explain the specific process of data query, and are not necessary components of the service grid system according to the embodiment of the present invention.
在服务网格系统400中,多个数据源4011都已经按照以上参照图1所述的数据管理方法在服务注册中心4021中进行了注册。In the service mesh system 400, a plurality of data sources 4011 have been registered in the service registration center 4021 according to the data management method described above with reference to FIG. 1 .
首先,当用户405通过网关404向驱动器403发起对数据源4011的查询请求时,驱动器403的服务发现模块4032在服务注册中心4021浏览已经注册的数据源的标识信息;如果未找到请求查询的数据源,则向所述用户返回提示信息(例如“出错”),如果在所述服务注册中心4021找到所请求的数据源,则驱动器403利用边车模块4012中的信息与所述数据源4011建立连接。First, when the user 405 initiates a query request for the data source 4011 to the driver 403 through the gateway 404, the service discovery module 4032 of the driver 403 browses the identification information of the registered data source in the service registration center 4021; if the requested query data is not found If the requested data source is found in the service registration center 4021, the driver 403 uses the information in the sidecar module 4012 to establish with the data source 4011 connect.
在与数据源4011建立连接之后,驱动器基于预先制定的标准规范,确定该数据源的数据格式与标准格式的映射规则,并将映射规则发送给数据源的API接口,API接口将查询到的数据映射为标准格式,并将该标准格式的数据返回给驱动器403,驱动器403再通过网关404向用户405返回统一格式的数据查询结果。上面提到,可以通过在边车模块4012中增加一个API接口或者在数据源40211中增加一个API接口来实现转换数据源的格式的操作,在此不再详述。After establishing the connection with the data source 4011, the driver determines the mapping rule between the data format of the data source and the standard format based on the pre-established standard specification, and sends the mapping rule to the API interface of the data source, and the API interface will query the data It is mapped into a standard format, and the data in the standard format is returned to the driver 403 , and the driver 403 then returns the data query result in a unified format to the user 405 through the gateway 404 . As mentioned above, the operation of converting the format of the data source can be realized by adding an API interface in the sidecar module 4012 or adding an API interface in the data source 40211, which will not be described in detail here.
下面说明根据本公开实施例的数据管理方法和数据查询方法的一个具体应用场景。 在一个复杂的生产系统中,例如,在工业生产过程中,数据源和存储方法是多种多样的,数据的来源可能是不同的仪器和设备,从这些设备采集的数据格式也是不同的。设备供应商可以根据设备的特性选择不同的数据库来存储数据。在处理复杂的情况时,例如在对一组设备进行建模和仿真时,上层应用需要连接多种数据源。通过采用根据本发明的方法,可以对部署的数据源自动进行注册。不同数据源之间还可以互相发现。这样减小了对于来自不同供应商的数据源的开发工作,并且提高了可扩展性。增加的边车结构集成了与数据源逻辑本身无关的一些功能,比如注册、发现、流量控制以及路由等功能。通过边车可以将数据存储与控制功能解耦,这样减小了DevOps(开发运维)的成本。例如,当系统中存储多种数据源时,流量控制功能可以解决网络传输的拥堵问题。A specific application scenario of the data management method and the data query method according to the embodiment of the present disclosure will be described below. In a complex production system, for example, in the industrial production process, the data sources and storage methods are diverse, the data sources may be different instruments and equipment, and the data formats collected from these equipment are also different. Equipment suppliers can choose different databases to store data according to the characteristics of the equipment. When dealing with complex situations, such as modeling and simulating a set of devices, upper-layer applications need to connect multiple data sources. By using the method according to the present invention, the deployed data sources can be registered automatically. Different data sources can also discover each other. This reduces development effort for data sources from different vendors and improves scalability. The added sidecar structure integrates functions unrelated to the data source logic itself, such as registration, discovery, flow control, and routing. Data storage and control functions can be decoupled through the sidecar, which reduces the cost of DevOps (development operations and maintenance). For example, when multiple data sources are stored in the system, the flow control function can solve the congestion problem of network transmission.
根据本发明的数据管理方法和数据查询方法以及服务网格系统,提出了一种基于服务网格的新的DaaS解决方案。通过给数据源增加边车结构,实现了数据源的自动注册和发现以及流量控制和路由功能。另一方面,通过定义标准的数据格式规范和API,可以将原始数据映射为标准格式,从而可以提供标准的数据查询结果。此外,数据源的连接信息也可以根据数据源类型模板而标准化,当数据源部署在集群中时,利用边车,可以提供标准连接信息的数据源将自动在注册中心进行注册。According to the data management method, data query method and service grid system of the present invention, a new DaaS solution based on service grid is proposed. By adding a sidecar structure to the data source, the automatic registration and discovery of the data source, as well as the flow control and routing functions, are realized. On the other hand, by defining standard data format specifications and APIs, raw data can be mapped into standard formats, so that standard data query results can be provided. In addition, the connection information of the data source can also be standardized according to the data source type template. When the data source is deployed in the cluster, using the sidecar, the data source that can provide the standard connection information will be automatically registered in the registry.
根据本发明的数据管理方法和数据查询方法,利用边车结构而无需配置文件,从而减小了数据源部署时间,并且具有更好的扩展性。According to the data management method and the data query method of the present invention, the sidecar structure is used without the need for configuration files, thereby reducing the deployment time of the data source and having better expansibility.
当从底层数据库获得数据时,将以标准化形式作为服务。从数据消费者的方面来说,这样无需关注底层数据的存储方式。When data is obtained from the underlying database, it will be in a standardized form as a service. From the data consumer's perspective, this eliminates the need to pay attention to how the underlying data is stored.
如上参照图1至图4,对根据本公开的实施例的数据管理方法和数据查询方法以及服务网格系统进行了描述。以上所述的数据管理装置以及服务网格系统的各个单元可以采用硬件实现,也可以采用软件或者硬件和软件的组合来实现。As above, with reference to FIGS. 1 to 4 , the data management method, the data query method, and the service mesh system according to the embodiments of the present disclosure are described. The above-mentioned data management apparatus and each unit of the service grid system may be implemented by hardware, or may be implemented by software or a combination of hardware and software.
图5示出了根据本公开的实施例的实现数据管理和数据查询的计算设备500的方框图。根据一个实施例,计算设备500可以包括至少一个处理器502,处理器502执行在计算机可读存储介质(即,存储器504)中存储或编码的至少一个计算机可读指令(即,上述以软件形式实现的元素)。5 illustrates a block diagram of a computing device 500 implementing data management and data querying according to an embodiment of the present disclosure. According to one embodiment, computing device 500 may include at least one processor 502 that executes at least one computer-readable instruction (ie, the above-described in software form) stored or encoded in a computer-readable storage medium (ie, memory 504 ). implemented elements).
应该理解,在存储器504中存储的计算机可执行指令当执行时使得至少一个处理器502进行本公开的各个实施例中以上结合图1-4描述的各种操作和功能。It should be understood that the computer-executable instructions stored in memory 504, when executed, cause at least one processor 502 to perform various operations and functions described above in connection with FIGS. 1-4 in various embodiments of the present disclosure.
根据一个实施例,提供了一种非暂时性机器可读介质。该非暂时性机器可读介质可以具有机器可执行指令(即,上述以软件形式实现的元素),该指令当被机器执行时, 使得机器执行本公开的各个实施例中以上结合图1-6描述的各种操作和功能。According to one embodiment, a non-transitory machine-readable medium is provided. The non-transitory machine-readable medium may have machine-executable instructions (ie, the above-described elements implemented in software) that, when executed by a machine, cause the machine to perform various embodiments of the present disclosure above in conjunction with FIGS. 1-6 Various operations and functions are described.
根据一个实施例,提供了一种计算机程序,包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行本公开的各个实施例中以上结合图1-6描述的各种操作和功能。According to one embodiment, there is provided a computer program comprising computer-executable instructions that, when executed, cause at least one processor to perform each of the various embodiments of the present disclosure described above in connection with FIGS. 1-6 operations and functions.
根据一个实施例,提供了一种计算机程序产品,包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行本公开的各个实施例中以上结合图1-6描述的各种操作和功能。According to one embodiment, there is provided a computer program product comprising computer-executable instructions that, when executed, cause at least one processor to perform the various embodiments of the present disclosure described above in connection with FIGS. 1-6 Various operations and functions.
应当理解的是,本说明书中的各个实施例均采用递进的方式来描述,各个实施例之间相同或相似的部分相互参见即可,每个实施例重点说明的都是与其它实施例的不同之处。例如,对于上述关于装置的实施例、关于计算设备的实施例以及关于机器可读存储介质的实施例而言,由于它们基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。It should be understood that, the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the description of other embodiments. the difference. For example, for the above-mentioned embodiments about the apparatus, the embodiment about the computing device, and the embodiment about the machine-readable storage medium, since they are basically similar to the method embodiments, the descriptions are relatively simple, and the relevant details refer to the method implementation Part of the example can be explained.
上文对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。Specific embodiments of the present specification have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
上述各流程和各系统结构图中不是所有的步骤和单元都是必须的,可以根据实际的需要忽略某些步骤或单元。上述各实施例中描述的装置结构可以是物理结构,也可以是逻辑结构,即,有些单元可能由同一物理实体实现,或者,有些单元可能分别由多个物理实体实现,或者,可以由多个独立设备中的某些部件共同实现。Not all steps and units in the above processes and system structure diagrams are necessary, and some steps or units may be omitted according to actual needs. The device structure described in the above embodiments may be a physical structure or a logical structure, that is, some units may be implemented by the same physical entity, or some units may be implemented by multiple physical entities respectively, or may be implemented by multiple physical entities. Some components in separate devices are implemented together.
上面结合附图阐述的具体实施方式描述了示例性实施例,但并不表示可以实现的或者落入权利要求书的保护范围的所有实施例。在整个本说明书中使用的术语“示例性”意味着“用作示例、实例或例示”,并不意味着比其它实施例“优选”或“具有优势”。出于提供对所描述技术的理解的目的,具体实施方式包括具体细节。然而,可以在没有这些具体细节的情况下实施这些技术。在一些实例中,为了避免对所描述的实施例的概念造成难以理解,公知的结构和装置以框图形式示出。The detailed description set forth above in connection with the accompanying drawings describes exemplary embodiments and does not represent all embodiments that may be implemented or fall within the scope of the claims. The term "exemplary" as used throughout this specification means "serving as an example, instance, or illustration" and does not mean "preferred" or "advantage" over other embodiments. The detailed description includes specific details for the purpose of providing an understanding of the described technology. However, these techniques may be practiced without these specific details. In some instances, well-known structures and devices are shown in block diagram form in order to avoid obscuring the concepts of the described embodiments.
本公开内容的上述描述被提供来使得本领域任何普通技术人员能够实现或者使用本公开内容。对于本领域普通技术人员来说,对本公开内容进行的各种修改是显而易见的,并且,也可以在不脱离本公开内容的保护范围的情况下,将本文所定义的一般性原理应 用于其它变型。因此,本公开内容并不限于本文所描述的示例和设计,而是与符合本文公开的原理和新颖性特征的最广范围相一致。The above description of the present disclosure is provided to enable any person of ordinary skill in the art to make or use the present disclosure. Various modifications to this disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the scope of this disclosure . Thus, the present disclosure is not intended to be limited to the examples and designs described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of the present invention. within the scope of protection.

Claims (11)

  1. 数据管理方法,包括:Data management methods, including:
    针对每一个数据源增加边车模块,所述边车模块至少包括注册子模块,所述注册子模块包括所述数据源的标识信息;A sidecar module is added for each data source, and the sidecar module includes at least a registration submodule, and the registration submodule includes identification information of the data source;
    对所述注册模块进行解析,获得所述数据源的标识信息;以及Parsing the registration module to obtain identification information of the data source; and
    将所述数据源的标识信息在服务注册中心进行注册。The identification information of the data source is registered in the service registration center.
  2. 如权利要求1所述的方法,其中,所述边车模块还包括:发现子模块、流量控制子模块和路由子模块,所述发现子模块用于实现不同数据源之间的互相发现;所述流量控制子模块用于控制数据源的流量;所述路由子模块用于实现数据源的数据路由。The method of claim 1, wherein the sidecar module further comprises: a discovery sub-module, a flow control sub-module and a routing sub-module, the discovery sub-module is used to realize mutual discovery between different data sources; The flow control sub-module is used to control the flow of the data source; the routing sub-module is used to implement data routing of the data source.
  3. 数据管理装置,包括:Data management device, including:
    边车增加单元,被配置为针对每一个数据源增加边车模块,所述边车模块至少包括注册子模块,所述注册子模块包括所述数据源的标识信息;a sidecar adding unit, configured to add a sidecar module for each data source, the sidecar module including at least a registration sub-module, and the registration sub-module includes identification information of the data source;
    解析单元,被配置为对所述注册子模块进行解析,确定所述数据源的标识信息;a parsing unit, configured to parse the registration submodule to determine the identification information of the data source;
    注册单元,被配置为将所述数据源的标识信息在服务注册中心进行注册。The registration unit is configured to register the identification information of the data source in the service registration center.
  4. 数据查询方法,包括:Data query methods, including:
    接收用户对数据源的查询请求;Receive user's query request for data source;
    驱动器在服务注册中心浏览已经注册的数据源;The driver browses the registered data sources in the service registry;
    如果未找到请求查询的数据源,则向所述用户返回提示信息,如果在所述服务注册中心找到所述用户请求的数据源,则驱动器利用边车模块中的信息与所述数据源建立连接。If the data source requested to be queried is not found, a prompt message is returned to the user, and if the data source requested by the user is found in the service registration center, the driver uses the information in the sidecar module to establish a connection with the data source .
  5. 如权利要求4所述的方法,还包括:The method of claim 4, further comprising:
    基于预先制定的标准接口规范将查询到的数据映射为标准格式,并向用户返回所述标准格式的数据。The queried data is mapped into a standard format based on a pre-established standard interface specification, and the data in the standard format is returned to the user.
  6. 服务网格系统,包括数据单元和控制单元,Service mesh system, including data unit and control unit,
    所述数据单元包括多个数据源,每一个数据源具有一个边车模块;以及the data unit includes a plurality of data sources, each data source having a sidecar module; and
    所述控制单元包括服务注册中心和数据源解析器,数据源解析器用于对所述边车模块进行解析,并将解析获得的数据源的标识信息在所述服务注册中心进行注册。The control unit includes a service registration center and a data source resolver, and the data source resolver is used to parse the sidecar module and register the identification information of the data source obtained by the analysis in the service registration center.
  7. 如权利要求6所述的系统,还包括:驱动单元,所述驱动单元包括分别针对所述多个数据源的驱动器和服务发现模块,所述服务发现模块用于在所述驱动单元接收到用户对所述数据源的查询请求时,浏览所述服务注册中心来确定所述数据源是否在所述服务注册中心注册。The system of claim 6, further comprising: a driving unit, the driving unit comprising a driver and a service discovery module for the plurality of data sources, respectively, the service discovery module for receiving the user information at the driving unit When querying the data source, browse the service registration center to determine whether the data source is registered in the service registration center.
  8. 计算设备(500),包括:A computing device (500) comprising:
    至少一个处理器(502);以及at least one processor (502); and
    与所述至少一个处理器(502)耦合的一个存储器(504),所述存储器用于存储指令,当所述指令被所述至少一个处理器(502)执行时,使得所述处理器(502)执行如权利要求1至2和4至5中任意一项所述的方法。a memory (504) coupled to the at least one processor (502) for storing instructions that, when executed by the at least one processor (502), cause the processor (502) ) to perform a method as claimed in any one of claims 1 to 2 and 4 to 5.
  9. 一种非暂时性机器可读存储介质,其存储有可执行指令,所述指令当被执行时使得所述机器执行如权利要求1至2和4至5中任意一项所述的方法。A non-transitory machine-readable storage medium storing executable instructions which, when executed, cause the machine to perform the method of any one of claims 1-2 and 4-5.
  10. 一种计算机程序,包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行根据权利要求1至2和4至5中任意一项所述的方法。A computer program comprising computer-executable instructions which, when executed, cause at least one processor to perform the method of any one of claims 1-2 and 4-5.
  11. 一种计算机程序产品,所述计算机程序产品被有形地存储在计算机可读介质上并且包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行根据权利要求1至2和4至5任意一项所述的方法。A computer program product tangibly stored on a computer-readable medium and comprising computer-executable instructions which, when executed, cause at least one processor to perform the execution according to claims 1 to 2 and the method of any one of 4 to 5.
PCT/CN2020/141773 2020-12-30 2020-12-30 Data management method and apparatus, data query method and apparatus, service mesh system, and computing device WO2022141287A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/141773 WO2022141287A1 (en) 2020-12-30 2020-12-30 Data management method and apparatus, data query method and apparatus, service mesh system, and computing device
CN202080108052.4A CN116802628A (en) 2020-12-30 2020-12-30 Data management and query method and device, service grid system and computing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/141773 WO2022141287A1 (en) 2020-12-30 2020-12-30 Data management method and apparatus, data query method and apparatus, service mesh system, and computing device

Publications (1)

Publication Number Publication Date
WO2022141287A1 true WO2022141287A1 (en) 2022-07-07

Family

ID=82260062

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/141773 WO2022141287A1 (en) 2020-12-30 2020-12-30 Data management method and apparatus, data query method and apparatus, service mesh system, and computing device

Country Status (2)

Country Link
CN (1) CN116802628A (en)
WO (1) WO2022141287A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115357240A (en) * 2022-08-04 2022-11-18 中粮信托有限责任公司 Micro-service model construction method and device, computer equipment and storage medium
CN115757552A (en) * 2022-11-29 2023-03-07 广发银行股份有限公司 Bank historical data management system based on distributed micro-service

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106886592A (en) * 2017-02-21 2017-06-23 北京航空航天大学 A kind of city space-time data collecting system and method based on data source service
CN109086301A (en) * 2018-06-20 2018-12-25 江苏网域科技有限公司 A kind of data management platform based on cloud computing
EP3563545A2 (en) * 2016-12-30 2019-11-06 INTEL Corporation Blockchains for securing iot devices
CN111989897A (en) * 2018-04-10 2020-11-24 奈特朗茨公司 Measurement indicators for computer networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3563545A2 (en) * 2016-12-30 2019-11-06 INTEL Corporation Blockchains for securing iot devices
CN106886592A (en) * 2017-02-21 2017-06-23 北京航空航天大学 A kind of city space-time data collecting system and method based on data source service
CN111989897A (en) * 2018-04-10 2020-11-24 奈特朗茨公司 Measurement indicators for computer networks
CN109086301A (en) * 2018-06-20 2018-12-25 江苏网域科技有限公司 A kind of data management platform based on cloud computing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115357240A (en) * 2022-08-04 2022-11-18 中粮信托有限责任公司 Micro-service model construction method and device, computer equipment and storage medium
CN115757552A (en) * 2022-11-29 2023-03-07 广发银行股份有限公司 Bank historical data management system based on distributed micro-service

Also Published As

Publication number Publication date
CN116802628A (en) 2023-09-22

Similar Documents

Publication Publication Date Title
JP7037555B2 (en) Access control policy synchronization for the service tier
US11093556B2 (en) Restful operations for semantic IoT
US7970943B2 (en) Providing interoperability in software identifier standards
EP2005709B1 (en) Service registry and relevant system and method
US10698969B2 (en) Representation/invocation of actions/functions in a hypermedia-driven environment
JP7065082B2 (en) Semantic queries against distributed semantic descriptors
WO2022141287A1 (en) Data management method and apparatus, data query method and apparatus, service mesh system, and computing device
US20130159286A1 (en) Generation of a query plan for accessing a database
WO2018201887A1 (en) Data response method, apparatus, terminal device, and medium
US20070124344A1 (en) Method, apparatus and program storage device for providing web services-based data replication for Heterogeneous storage systems
AU2012337242A1 (en) Systems and methods for dynamic service integration
US8230448B2 (en) Methods, systems and computer program products for web service interaction with a resource management system
US9411612B2 (en) Techniques for creating and/or maintaining scalable heterogeneous read-only federations of registries
Rompothong et al. A query federation of UDDI registries
US20130046900A1 (en) Dynamic transaction protocol upgrades
US20070162476A1 (en) Using soap messages for inverse query expressions
US20070050394A1 (en) Method and apparatus for automated database creation from Web Services Description Language (WSDL)
US20140172913A1 (en) Method and Apparatus for Document Matching
CN110020243A (en) Querying method, device, Internet of Things server and the storage medium of internet of things data
US20120143949A1 (en) Achieving interoperability for web services using a map engine
WO2023125773A1 (en) Global exception handling method and platform in large-scale micro-service cluster scenario
WO2021238771A1 (en) Data access method in edge node, apparatus and system
WO2022028170A1 (en) Data transmission method, related network node and storage medium
US8782079B2 (en) Configuration information management device, distributed information management system and method
US20220101962A1 (en) Enabling distributed semantic mashup

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20967627

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202080108052.4

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20967627

Country of ref document: EP

Kind code of ref document: A1