WO2020124619A1 - Data processing method and device, computer apparatus, and storage medium - Google Patents

Data processing method and device, computer apparatus, and storage medium Download PDF

Info

Publication number
WO2020124619A1
WO2020124619A1 PCT/CN2018/123263 CN2018123263W WO2020124619A1 WO 2020124619 A1 WO2020124619 A1 WO 2020124619A1 CN 2018123263 W CN2018123263 W CN 2018123263W WO 2020124619 A1 WO2020124619 A1 WO 2020124619A1
Authority
WO
WIPO (PCT)
Prior art keywords
data processing
microservice
database
target database
processing request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2018/123263
Other languages
French (fr)
Chinese (zh)
Inventor
熊友军
贾亮亮
黄开清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ubtech Robotics Corp
Original Assignee
Ubtech Robotics Corp
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 Ubtech Robotics Corp filed Critical Ubtech Robotics Corp
Publication of WO2020124619A1 publication Critical patent/WO2020124619A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems

Definitions

  • the present invention relates to the field of database technology, and in particular, to a data processing method, device, computer equipment, and storage medium.
  • Database refers to a collection of data.
  • Existing databases include relational databases and non-relational databases.
  • mysql and Oracle are relatively common relational databases.
  • traditional relational databases are dealing with large When it comes to dynamic websites with large scale, large traffic, and high concurrency, they seem to be unable to handle it.
  • non-relational databases have developed rapidly.
  • non-relational databases have different operations for addition, deletion, modification, and checking. Developers need to spend a lot of time to understand the operation methods of different non-relational databases, that is, use different languages to perform addition, deletion, Modify and check operations to reduce data processing efficiency.
  • Step S104 Determine a target database microservice according to the database identifier, and the target database microservice provides a data processing interface of the target database corresponding to the data processing request.
  • the server instructs the data area to delete the resource data; for another example, the function ID is 02-cha-shan, instructing the database microservice to complete the data processing operation of deleting data, the database
  • the microservice After identifying the functional task identifier, the microservice first queries resource data to be deleted from the data area indicated by the server according to the identifier information cha, and then deletes the queried resource data in the database according to the identifier information shan.
  • the instruction data area is a storage area in the server, and the instruction data area is used to indicate data that needs to be added, deleted, or modified.
  • the sending the data processing request to the target database microservice includes:
  • the method further includes:
  • an abnormal data storage request is generated based on the data processing abnormal information, and an abnormal data storage request is sent to the abnormal database to make the abnormal data inventory record data processing abnormal information , Used as an exception information check.
  • Step 506 When polling the processing sequence number, obtain the data processing request, where the data processing request includes a database identifier, and enter a step of determining a target database microservice according to the database identifier.
  • step 508 is entered.
  • the obtaining module 602 is used to obtain a data processing request, where the data processing request includes a database identifier;
  • the sending module 606 is configured to send the data processing request to the target database microservice to perform a data processing operation corresponding to the data processing request through a data processing interface provided by the target database microservice.
  • database microservices provide data processing interfaces corresponding to the database, so that when performing related operations on the database, it is no longer necessary to understand the operating language of the database, and Directly confirm the corresponding database microservice according to the data processing request and send the request to the microservice, which improves the efficiency of data processing.
  • the data processing request further includes a function identifier
  • the sending module 606 includes:
  • the sending module 606 includes:
  • a search module used to search the address information of the microservice of the target database through the microservice registration center;
  • the searching and sending module is configured to send the data processing request to the target database microservice according to the address information.
  • the storage module is configured to correspondingly store the ID of the microservice to be registered and the address information of the microservice to be registered to complete the registration of the microservice to be registered.
  • the acquisition module 602 includes:
  • the device 600 further includes:
  • the abnormal request generating module is configured to generate an abnormal data storage request according to the data processing abnormal information when receiving the data processing abnormal information;
  • the abnormal request sending module is configured to send the abnormal data storage request to the abnormal database to store the data processing abnormal information in the abnormal database.
  • FIG. 7 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied.
  • the specific computer equipment may It includes more or fewer components than shown in the figure, or some components are combined, or have a different component arrangement.
  • the data processing method provided by the present application may be implemented in the form of a computer program, and the computer program may run on the computer device shown in FIG. 7.
  • Various program templates constituting the data processing device can be stored in the memory of the computer equipment.
  • a computer device includes a memory and a processor.
  • the memory stores a computer program.
  • the processor is caused to perform the following steps:
  • the target database microservice provides a data processing interface of the target database corresponding to the data processing request
  • the above computer device first obtains a data processing request, the data processing request includes a database identifier; and then determines a target database microservice according to the database identifier, the target database microservice provides a target database corresponding to the data processing request Data processing interface; finally send the data processing request to the target database microservice to perform the data processing operation corresponding to the data processing request through the data processing interface provided by the target database microservice.
  • database microservices provide data processing interfaces corresponding to the database, so that when performing related operations on the database, it is no longer necessary to understand the operating language of the database, and Directly confirm the corresponding database microservice according to the data processing request and send the request to the microservice, which improves the efficiency of data processing.
  • the data processing request further includes a function identifier
  • sending the data processing request to the target database microservice includes:
  • the sending the data processing request to the target database microservice includes:
  • microservice registration request includes a microservice identifier of the microservice to be registered and address information of the microservice to be registered;
  • the processing request for acquiring data includes:
  • the data processing request is obtained, and the step of determining the target database microservice according to the database identifier is entered.
  • a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to perform the following steps:
  • the target database microservice provides a data processing interface of the target database corresponding to the data processing request
  • the above computer-readable storage medium first obtains a data processing request, and the data processing request includes a database identifier; then, based on the database identifier, a target database microservice is determined, and the target database microservice provides the corresponding The data processing interface of the target database; finally, the data processing request is sent to the target database microservice to perform the data processing operation corresponding to the data processing request through the data processing interface provided by the target database microservice.
  • database microservices provide data processing interfaces corresponding to the database, so that when performing related operations on the database, it is no longer necessary to understand the operating language of the database, and Directly confirm the corresponding database microservice according to the data processing request and send the request to the microservice, which improves the efficiency of data processing.
  • the data processing request further includes a function identifier
  • sending the data processing request to the target database microservice includes:
  • the sending the data processing request to the target database microservice includes:
  • microservice registration request includes a microservice identifier of the microservice to be registered and address information of the microservice to be registered;
  • the processing request for acquiring data includes:
  • the data processing request is obtained, and the step of determining the target database microservice according to the database identifier is entered.
  • FIG. 8 is an application environment diagram of a data processing method in an embodiment. Referring to FIG. 8, this data processing method is applied to a data processing system.
  • the data processing system includes a terminal 802 and a server 804.
  • the terminal 802 and the server 804 are connected through a network.
  • the terminal 802 may specifically be a desktop terminal or a mobile terminal, the desktop terminal may specifically be a desktop computer, and the mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a notebook computer, and the like.
  • the server 904 may be implemented by an independent server or a server cluster composed of multiple servers.
  • the terminal 802 is used to send a data processing request to the server 804, and the server 804 is used to obtain a data processing request, the data processing request includes a database identifier; according to the database identifier, a target database microservice is determined, and the target database microservice provides A data processing interface of the target database corresponding to the data processing request; sending the data processing request to the target database microservice to execute the data processing request through the data processing interface provided by the target database microservice Corresponding data processing operations.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A data processing method and device, a computer apparatus, and a storage medium. The method comprises: obtaining a data processing request comprising a database identifier (S102); determining, according to the database identifier, a target database microservice, wherein the target database microservice provides a data processing interface of a target database corresponding to the data processing request (S104); and sending the data processing request to the target database microservice, and performing, by means of the data processing interface provided by the target database microservice, a data processing operation corresponding to the data processing request (S106). The present method can improve the efficiency of data processing.

Description

数据处理方法、装置、计算机设备及存储介质Data processing method, device, computer equipment and storage medium 技术领域Technical field

本发明涉及数据库技术领域,尤其涉及一种数据处理方法、装置、计算机设备及存储介质。The present invention relates to the field of database technology, and in particular, to a data processing method, device, computer equipment, and storage medium.

背景技术Background technique

数据库是指数据的集合,现有的数据库包括关系型数据库和非关系型数据库,比如,mysql和Oracle就是比较常见的关系型数据库,但随着互联网的高速发展,传统的关系型数据库在应付超大规模、超大流量以及高并发的动态网站的时候显得力不从心,在这个时候,非关系型数据库得到高速的发展。Database refers to a collection of data. Existing databases include relational databases and non-relational databases. For example, mysql and Oracle are relatively common relational databases. However, with the rapid development of the Internet, traditional relational databases are dealing with large When it comes to dynamic websites with large scale, large traffic, and high concurrency, they seem to be unable to handle it. At this time, non-relational databases have developed rapidly.

技术问题technical problem

但是,不同的非关系型数据库,其增、删、改、查等操作并不相同,开发人员需要花费大量的时间了解不同非关系型数据库的操作方法,即使用不同的语言执行增、删、改、查等操作,降低数据处理效率。However, different non-relational databases have different operations for addition, deletion, modification, and checking. Developers need to spend a lot of time to understand the operation methods of different non-relational databases, that is, use different languages to perform addition, deletion, Modify and check operations to reduce data processing efficiency.

技术解决方案Technical solution

基于此,有必要针对上述问题,提出一种数据处理效率高的数据处理方法、装置、计算机设备及存储介质。Based on this, it is necessary to propose a data processing method, device, computer equipment, and storage medium with high data processing efficiency in view of the above problems.

一种数据处理方法,所述方法包括:A data processing method, the method includes:

获取数据处理请求,所述数据处理请求包括数据库标识;Obtain a data processing request, which includes a database identifier;

根据所述数据库标识,确定目标数据库微服务,所述目标数据库微服务提供与所述数据处理请求对应的目标数据库的数据处理接口;Determine the target database microservice according to the database identifier, the target database microservice provides a data processing interface of the target database corresponding to the data processing request;

将所述数据处理请求发送至所述目标数据库微服务,以通过所述目标数据库微服务提供的数据处理接口执行与所述数据处理请求对应的数据处理操作。Sending the data processing request to the target database microservice to perform a data processing operation corresponding to the data processing request through a data processing interface provided by the target database microservice.

在其中一个实施例中,所述数据处理请求还包括功能标识,所述将所述数据处理请求发送至所述目标数据库微服务,包括:将所述功能标识发送至所述目标数据库微服务,以使所述目标数据库微服务通过根据所述功能标识确定的功能接口执行与所述功能标识对应的数据处理操作。In one of the embodiments, the data processing request further includes a function identifier, and sending the data processing request to the target database microservice includes sending the function identifier to the target database microservice, In order that the target database microservice executes the data processing operation corresponding to the function identifier through the function interface determined according to the function identifier.

在其中一个实施例中,所述将所述数据处理请求发送至所述目标数据库微服务,包括:通过微服务注册中心查找所述目标数据库微服务的地址信息;根据所述地址信息,将所述数据处理请求发送至所述目标数据库微服务。In one of the embodiments, the sending the data processing request to the target database microservice includes: searching the address information of the target database microservice through a microservice registration center; based on the address information, the The data processing request is sent to the target database microservice.

在其中一个实施例中,在所述获取数据处理请求之前,还包括:通过所述微服务注册中心接收微服务注册请求,所述微服务注册请求中包括待注册微服务的微服务标识和所述待注册微服务的地址信息;将所述待注册微服务标识和所述待注册微服务的地址信息进行对应存储,完成所述待注册微服务的注册。In one of the embodiments, before the acquiring data processing request, the method further includes: receiving a microservice registration request through the microservice registration center, where the microservice registration request includes the microservice identifier and the location of the microservice to be registered The address information of the microservice to be registered; correspondingly storing the identifier of the microservice to be registered and the address information of the microservice to be registered to complete the registration of the microservice to be registered.

在其中一个实施例中,所述获取数据处理请求,包括:获取所述数据处理请求的发送时间;根据所述发送时间,确定所述数据处理请求的处理序号;当轮询到所述处理序号时,获取所述数据处理请求,进入根据所述数据库标识,确定目标数据库微服务的步骤。In one of the embodiments, the acquiring the data processing request includes: acquiring the sending time of the data processing request; determining the processing sequence number of the data processing request according to the sending time; when polling the processing sequence number At that time, the data processing request is obtained, and the step of determining the target database microservice according to the database identifier is entered.

在其中一个实施例中,在所述将所述数据处理请求发送至所述目标数据库微服务之后,还包括:当接收到数据处理异常信息时,根据所述数据处理异常信息生成异常数据存储请求;将所述异常数据存储请求发送至异常数据库,以在所述异常数据库中存储所述数据处理异常信息。In one embodiment, after the data processing request is sent to the target database microservice, the method further includes: when receiving data processing exception information, generating an abnormal data storage request according to the data processing exception information Sending the abnormal data storage request to the abnormal database to store the abnormal data processing information in the abnormal database.

一种数据处理装置,所述装置包括:A data processing device, the device includes:

获取模块,用于获取数据处理请求,所述数据处理请求包括数据库标识;An acquisition module, for acquiring a data processing request, the data processing request including a database identifier;

确定模块,用于根据所述数据库标识,确定目标数据库微服务,所述目标数据库微服务提供与所述数据处理请求对应的目标数据库的数据处理接口;A determining module, configured to determine a target database microservice according to the database identifier, and the target database microservice provides a data processing interface of the target database corresponding to the data processing request;

发送模块,用于将所述数据处理请求发送至所述目标数据库微服务,以通过所述目标数据库微服务提供的数据处理接口执行与所述数据处理请求对应的数据处理操作。The sending module is configured to send the data processing request to the target database microservice to perform a data processing operation corresponding to the data processing request through a data processing interface provided by the target database microservice.

在其中一个实施例中,所述数据处理请求还包括功能标识,所述发送模块606,包括:功能发送模块,用于将所述功能标识发送至所述目标数据库微服务,以使所述目标数据库微服务通过根据所述功能标识确定的功能接口执行与所述功能标识对应的数据处理操作。In one of the embodiments, the data processing request further includes a function identifier, and the sending module 606 includes: a function sending module, configured to send the function identifier to the target database microservice to enable the target The database microservice performs a data processing operation corresponding to the function identifier through the function interface determined according to the function identifier.

在其中一个实施例中,所述发送模块606,包括:查找模块,用于通过微服务注册中心查找所述目标数据库微服务的地址信息;查找发送模块,用于根据所述地址信息,将所述数据处理请求发送至所述目标数据库微服务。In one of the embodiments, the sending module 606 includes: a searching module for searching the address information of the microservice of the target database through a microservices registration center; a searching sending module for searching the address based on the address information The data processing request is sent to the target database microservice.

在其中一个实施例中,所述装置600,还包括:接收模块,用于通过所述微服务注册中心接收微服务注册请求,所述微服务注册请求中包括待注册微服务的微服务标识和所述待注册微服务的地址信息;存储模块,用于将所述待注册微服务标识和所述待注册微服务的地址信息进行对应存储,完成所述待注册微服务的注册。In one of the embodiments, the apparatus 600 further includes: a receiving module, configured to receive a microservice registration request through the microservice registration center, where the microservice registration request includes the microservice identifier and the microservice identifier of the microservice to be registered Address information of the microservice to be registered; a storage module, configured to correspondingly store the identifier of the microservice to be registered and the address information of the microservice to be registered to complete the registration of the microservice to be registered.

在其中一个实施例中,所述获取模块602,包括:时间获取模块,用于获取所述数据处理请求的发送时间;序号确定模块,用于根据所述发送时间,确定所述数据处理请求的处理序号;轮训模块,用于当轮询到所述处理序号时,获取所述数据处理请求,进入根据所述数据库标识,确定目标数据库微服务的步骤。In one of the embodiments, the acquisition module 602 includes: a time acquisition module for acquiring the sending time of the data processing request; a serial number determining module for determining the data processing request according to the sending time Processing sequence number; the rotation training module is used to obtain the data processing request when polling the processing sequence number, and enter the step of determining the target database microservice according to the database identification.

在其中一个实施例中,所述装置600,还包括:异常请求生成模块,用于当接收到数据处理异常信息时,根据所述数据处理异常信息生成异常数据存储请求;异常请求发送模块,用于将所述异常数据存储请求发送至异常数据库,以在所述异常数据库中存储所述数据处理异常信息。In one of the embodiments, the device 600 further includes: an abnormal request generating module, configured to generate an abnormal data storage request according to the data processing abnormal information when receiving data processing abnormal information; an abnormal request sending module, used Sending the abnormal data storage request to the abnormal database to store the data processing abnormal information in the abnormal database.

一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行以下步骤:A computer device includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor is caused to perform the following steps:

获取数据处理请求,所述数据处理请求包括数据库标识;Obtain a data processing request, which includes a database identifier;

根据所述数据库标识,确定目标数据库微服务,所述目标数据库微服务提供与所述数据处理请求对应的目标数据库的数据处理接口;Determine the target database microservice according to the database identifier, the target database microservice provides a data processing interface of the target database corresponding to the data processing request;

将所述数据处理请求发送至所述目标数据库微服务,以通过所述目标数据库微服务提供的数据处理接口执行与所述数据处理请求对应的数据处理操作。Sending the data processing request to the target database microservice to perform a data processing operation corresponding to the data processing request through a data processing interface provided by the target database microservice.

一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行以下步骤:A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to perform the following steps:

获取数据处理请求,所述数据处理请求包括数据库标识;Obtain a data processing request, which includes a database identifier;

根据所述数据库标识,确定目标数据库微服务,所述目标数据库微服务提供与所述数据处理请求对应的目标数据库的数据处理接口;Determine the target database microservice according to the database identifier, the target database microservice provides a data processing interface of the target database corresponding to the data processing request;

将所述数据处理请求发送至所述目标数据库微服务,以通过所述目标数据库微服务提供的数据处理接口执行与所述数据处理请求对应的数据处理操作。Sending the data processing request to the target database microservice to perform a data processing operation corresponding to the data processing request through a data processing interface provided by the target database microservice.

有益效果Beneficial effect

实施本发明实施例,将具有如下有益效果:The implementation of the embodiments of the present invention will have the following beneficial effects:

本发明提出了一种数据处理方法、装置、计算机设备及存储介质,首先获取数据处理请求,所述数据处理请求包括数据库标识;然后根据所述数据库标识,确定目标数据库微服务,所述目标数据库微服务提供与所述数据处理请求对应的目标数据库的数据处理接口;最后将所述数据处理请求发送至所述目标数据库微服务,以通过所述目标数据库微服务提供的数据处理接口执行与所述数据处理请求对应的数据处理操作。可见,通过上述方式,由于不同的数据库对应不同的数据库微服务,数据库微服务提供了与数据库对应的数据处理接口,使得在对数据库执行相关操作的时候,不用再了解该数据库的操作语言,而直接根据数据处理请求确认对应的数据库微服务,将请求发送至该微服务既可,提高了数据处理的效率。The invention proposes a data processing method, device, computer equipment and storage medium. First, a data processing request is obtained, and the data processing request includes a database identifier; then according to the database identifier, a target database microservice is determined, and the target database The microservice provides a data processing interface of the target database corresponding to the data processing request; finally, the data processing request is sent to the target database microservice to execute and execute the data processing interface provided by the target database microservice The data processing operation corresponding to the data processing request. It can be seen that, in the above manner, because different databases correspond to different database microservices, database microservices provide data processing interfaces corresponding to the database, so that when performing related operations on the database, it is no longer necessary to understand the operating language of the database, and Directly confirm the corresponding database microservice according to the data processing request and send the request to the microservice, which improves the efficiency of data processing.

附图说明BRIEF DESCRIPTION

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, without paying any creative labor, other drawings can be obtained based on these drawings.

其中:among them:

图1为一个实施例中数据处理方法的实现流程示意图;1 is a schematic diagram of an implementation process of a data processing method in an embodiment;

图2为一个实施例中数据处理方法的部分实现流程示意图;2 is a schematic diagram of a partial implementation process of a data processing method in an embodiment;

图3为一个实施例中数据库微服务在微服务注册中心注册的示意图;FIG. 3 is a schematic diagram of database microservices registered in a microservices registration center in an embodiment;

图4为一个实施例中数据处理方法的应用环境示意图;4 is a schematic diagram of an application environment of a data processing method in an embodiment;

图5为一个实施例中数据处理方法的实现流程示意图;5 is a schematic diagram of an implementation process of a data processing method in an embodiment;

图6为一个实施例中数据处理装置的结构框图;6 is a structural block diagram of a data processing device in an embodiment;

图7为一个实施例中计算机设备的结构框图;7 is a structural block diagram of a computer device in an embodiment;

图8为一个实施例中数据处理方法的应用环境图。FIG. 8 is an application environment diagram of a data processing method in an embodiment.

本发明的实施方式Embodiments of the invention

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without making creative efforts fall within the protection scope of the present invention.

如图1所示,在一个实施例中,提供了一种数据处理方法。该方法应用于服务器。所述服务器为高性能计算机或高性能计算机集群。该数据处理方法具体包括如下步骤:As shown in FIG. 1, in one embodiment, a data processing method is provided. This method is applied to the server. The server is a high-performance computer or a high-performance computer cluster. The data processing method specifically includes the following steps:

步骤102,获取数据处理请求,所述数据处理请求包括数据库标识。Step 102: Obtain a data processing request, where the data processing request includes a database identifier.

所述数据处理请求,用于指示要执行操作的数据库和要该数据库执行的数据处理操作,其中,所述数据处理操作指对数据库进行的操作,所述数据处理操作可以包括但不限于增加数据操作、删除数据操作、查找数据操作和修改数据操作。在本发明实施例中,在数据处理请求中设置数据库标识,用于指示数据库。The data processing request is used to indicate a database to perform an operation and a data processing operation to be performed by the database, wherein the data processing operation refers to an operation performed on the database, and the data processing operation may include but is not limited to adding data Operation, delete data operation, find data operation and modify data operation. In the embodiment of the present invention, a database identifier is set in the data processing request to indicate the database.

所述数据库标识,用于唯一标记一个数据库,或者,唯一标识数据库微服务。例如,某一数据库为Redis数据库,该数据库的数据库标识可以是Redis-SJCC,用于指示Redis数据库;若某一数据库标识为RedisWservice-SJCC,则该数据库标识用于指示数据库微服务。The database identifier is used to uniquely mark a database, or to uniquely identify a database microservice. For example, a certain database is a Redis database, and the database identifier of the database may be Redis-SJCC, which is used to indicate a Redis database; if a certain database identifier is RedisWservice-SJCC, then the database identifier is used to indicate a database microservice.

所述数据库标识,可以由数字和/或字母和/或字符组成,例如,所述数据库标识为01-Redis-SJK,用于指示Redis数据库,或者,数据库标识为01-RedisWservice-SJKWFF,用于指示数据库微服务。The database identifier may be composed of numbers and/or letters and/or characters. For example, the database identifier is 01-Redis-SJK for indicating the Redis database, or the database identifier is 01-RedisWservice-SJKWFF for Indicates database microservices.

所述数据处理请求,可以由用户通过客户端发送至服务器,即用户在客户端远程操作服务器。例如,用户在客户端进行某一数据库的数据查询操作,于是提交了一个用于查询数据的数据处理请求。The data processing request may be sent by the user to the server through the client, that is, the user remotely operates the server on the client. For example, a user performs a data query operation on a database on the client, and then submits a data processing request for querying the data.

所述数据处理请求,也可以是用户直接操作服务器,即用户在服务器端提交数据处理请求,例如,用户通过服务器端的数据库操作界面(通过该数据操作界面,能够方便用户对多个数据库执行数据处理操作,对多个数据库进行统一管理)输入了查询信息,并点击了查询按钮,通过点击该查询按钮,生成了数据处理请求,以使服务器获取到该数据处理请求。The data processing request may also be that the user directly operates the server, that is, the user submits the data processing request on the server side, for example, the user passes the database operation interface on the server side (through the data operation interface, it is convenient for the user to perform data processing on multiple databases Operation, unified management of multiple databases) Enter the query information, and click the query button, by clicking the query button, a data processing request is generated, so that the server obtains the data processing request.

步骤S104,根据所述数据库标识,确定目标数据库微服务,所述目标数据库微服务提供与所述数据处理请求对应的目标数据库的数据处理接口。Step S104: Determine a target database microservice according to the database identifier, and the target database microservice provides a data processing interface of the target database corresponding to the data processing request.

在本发明实施例中,数据库与数据库微服务建立一一对应的关系,即一个数据库唯一对应一个数据库微服务。所以不管数据库标识是用于指示数据库还是数据库微服务,都能对对应的数据库执行对应的数据处理操作。In the embodiment of the present invention, a one-to-one relationship is established between a database and a database microservice, that is, one database uniquely corresponds to one database microservice. Therefore, regardless of whether the database identifier is used to indicate the database or the database microservice, the corresponding data processing operation can be performed on the corresponding database.

在本发明实施例中,根据数据库标识,可以唯一确目标数据库微服务。具体的,若数据库标识为用于指示数据库的库标识,则首先根据库标识查找到数据库,然后再根据数据库与数据库微服务的一一对应关系,确定目标数据库微服务,如表1所示;若数据库标识为用于指示数据库微服务的微服务标识,则能够直接查找到与该微服务标识对应的目标数据库微服务,然后再根据数据库微服务与数据库的一一对应关系,确定执行数据处理操作的目标数据库,如表2所示。In the embodiment of the present invention, according to the database identifier, the target database microservice can be uniquely identified. Specifically, if the database identifier is a library identifier used to indicate the database, the database is first found according to the library identifier, and then the target database microservice is determined according to the one-to-one correspondence between the database and the database microservice, as shown in Table 1; If the database identifier is a microservice identifier used to indicate the database microservice, the target database microservice corresponding to the microservice identifier can be directly found, and then the data processing is determined according to the one-to-one correspondence between the database microservice and the database The target database for operation is shown in Table 2.

表1Table 1

  库标识Library ID 数据库database 数据库微服务Database microservices   ReRe RedisRedis Re-WserviceRe-Wservice   HBHB HBbaseHBbase HB-WserviceHB-Wservice   MoMo MongoDbMongoDb Mo-WserviceMo-Wservice

表2Table 2

  微服务标识Microservice logo   数据库微服务Database microservices 数据库database   Redis-serviceRedis-service   Re-WserviceRe-Wservice RedisRedis   HBbase-serviceHBbase-service   HB-WserviceHB-Wservice HBbaseHBbase   MongoDb-serviceMongoDb-service   Mo-WserviceMo-Wservice MongoDbMongoDb

在本发明实施例中,所述数据库,包括关系型数据库和非关系型数据库。其中,关系型数据库可以包括但不限于:MySQL、Oracle和Microsoft Access;非关系型数据库可以包括但不限于:Redis、HBbase和MongoDb。In the embodiment of the present invention, the database includes a relational database and a non-relational database. Among them, the relational database may include but not limited to: MySQL, Oracle and Microsoft Access; the non-relational database may include but not limited to: Redis, HBbase and MongoDb.

所述数据库微服务,为与数据库对应的,能够实现数据库的数据处理操作的微服务,具体的,该数据库微服务能够提供数据库的数据处理接口,例如,数据库增操作、删操作、查操作和改操作的数据处理接口,以实现增删查改的数据处理功能。所述目标数据库微服务,用于指示根据所述数据库标识确定的数据库微服务。The database microservice is a microservice corresponding to the database and capable of realizing the data processing operation of the database. Specifically, the database microservice can provide a data processing interface of the database, for example, database add operation, delete operation, check operation and Change the data processing interface of the operation to realize the data processing function of adding, deleting, checking and modifying. The target database microservice is used to indicate the database microservice determined according to the database identifier.

所述数据处理接口,可以采用restful服务接口。REST原则:网络上的所有事物都被抽象为资源;每个资源都有一个唯一的资源标识符;同一个资源具有多种表现形式(XML,JSON等)(xml,json等);对资源的各种操作不会改变资源标识符;所有的操作都是无状态的。通过将数据库微服务的数据处理接口采用restful服务接口,能够屏蔽不同语言调用的问题,实现客户端不同语言的调用。The data processing interface may use a restful service interface. REST principle: all things on the network are abstracted as resources; each resource has a unique resource identifier; the same resource has multiple manifestations (XML, JSON, etc.) (xml, json, etc.); Various operations do not change the resource identifier; all operations are stateless. By adopting the restful service interface for the data processing interface of the database microservices, it is possible to shield the problem of calling in different languages and realize the calling in different languages of clients.

步骤S106,将所述数据处理请求发送至所述目标数据库微服务,以通过所述目标数据库微服务提供的数据处理接口执行与所述数据处理请求对应的数据处理操作。Step S106: Send the data processing request to the target database microservice to perform a data processing operation corresponding to the data processing request through a data processing interface provided by the target database microservice.

在这里,将数据处理请求发送至目标数据库微服务,目标数据库微服务在接收到该数据处理请求后,通过解析该数据数据处理请求知晓要执行的数据处理操作,然后通过数据处理接口执行该数据处理操作。Here, the data processing request is sent to the target database microservice. After receiving the data processing request, the target database microservice knows the data processing operation to be performed by parsing the data data processing request, and then executes the data through the data processing interface Handling operations.

在本发明实施例中,所述数据处理请求还包括功能标识,所述将所述数据处理请求发送至所述目标数据库微服务,包括:In the embodiment of the present invention, the data processing request further includes a function identifier, and sending the data processing request to the target database microservice includes:

将所述功能标识发送至所述目标数据库微服务,以使所述目标数据库微服务通过根据所述功能标识确定的功能接口执行与所述功能标识对应的数据处理操作。Sending the function identifier to the target database microservice, so that the target database microservice performs a data processing operation corresponding to the function identifier through a function interface determined according to the function identifier.

所述功能标识,用于指示需要数据库微服务完成的数据处理操作。The function identifier is used to indicate a data processing operation that needs to be completed by a database microservice.

所述功能标识,可以只包括功能任务标识,用于指示数据库微服务完成的数据处理操作,例如,功能标识为01-cha-zeng,其中,01-cha-zeng为功能任务标识,指示数据库微服务完成增加数据的数据处理操作,数据库微服务在识别该功能任务标识之后,首先根据标识信息cha从服务器指示数据区域处获取到新增的资源数据,然后根据标识信息zeng将获取到的资源数据加入数据库,相应的,在该资源数据被加入数据库之后,服务器指示数据区域处删除该资源数据;再如,功能标识为02-cha-shan,指示数据库微服务完成删除数据的数据处理操作,数据库微服务在识别该功能任务标识之后,首先根据标识信息cha从服务器指示数据区域处查询到需要删除的资源数据,然后根据标识信息shan将查询到的资源数据在数据库中删除。其中,指示数据区域,为服务器中的一个存储区域,该指示数据区域用于指示需要增加、删除、修改的数据。The function identifier may include only the function task identifier, which is used to indicate the data processing operation completed by the database microservice. For example, the function identifier is 01-cha-zeng, where 01-cha-zeng is the function task identifier, indicating that the database microservice After the service completes the data processing operation of adding data, after identifying the functional task identifier, the database microservice first obtains the newly added resource data from the data area indicated by the server according to the identifier information cha, and then obtains the obtained resource data according to the identifier information zeng Join the database. Correspondingly, after the resource data is added to the database, the server instructs the data area to delete the resource data; for another example, the function ID is 02-cha-shan, instructing the database microservice to complete the data processing operation of deleting data, the database After identifying the functional task identifier, the microservice first queries resource data to be deleted from the data area indicated by the server according to the identifier information cha, and then deletes the queried resource data in the database according to the identifier information shan. The instruction data area is a storage area in the server, and the instruction data area is used to indicate data that needs to be added, deleted, or modified.

所述功能标识,可以包括功能任务标识和处理数据标识,用于指示数据库微服务对指定数据完成指定的数据处理操作。例如,功能标识为01-zeng-yonghu1,指示数据库微服务将用户1的数据添加至数据库;再如,功能标识为01-shan-yonghu1,指示数据库微服务将用户1的数据在数据库中删除。所述功能标识,还可以更为具体的指示数据位置,例如,功能标识为01-shan-biao1-yonghu1,用户指示数据库删除表1中的用户1的数据。The function identifier may include a function task identifier and a processing data identifier, which are used to instruct the database microservice to complete the specified data processing operation on the specified data. For example, the function identifier is 01-zeng-yonghu1, instructing the database microservice to add user 1's data to the database; for another example, the function identifier is 01-shan-yonghu1, instructing the database microservice to delete user 1's data in the database. The function identifier may also indicate the data location more specifically. For example, the function identifier is 01-shan-biao1-yonghu1, and the user instructs the database to delete the data of user 1 in Table 1.

所述功能标识,可以由数字和/或字母和/或字符组成,例如,所述功能标识为01-zeng-yonghu1。The function identifier may be composed of numbers and/or letters and/or characters. For example, the function identifier is 01-zeng-yonghu1.

在本发明实施例中,如图2和图3所示,在步骤102所述获取数据处理请求之前,还包括:In the embodiment of the present invention, as shown in FIGS. 2 and 3, before acquiring the data processing request described in step 102, the method further includes:

步骤100,通过所述微服务注册中心接收微服务注册请求,所述微服务注册请求中包括待注册微服务的微服务标识和所述待注册微服务的地址信息。Step 100: Receive a microservice registration request through the microservice registration center, where the microservice registration request includes a microservice identifier of the microservice to be registered and address information of the microservice to be registered.

步骤101,将所述待注册微服务标识和所述待注册微服务的地址信息进行对应存储,完成所述待注册微服务的注册。Step 101: Correspondingly store the ID of the microservice to be registered and the address information of the microservice to be registered to complete the registration of the microservice to be registered.

所述微服务注册中心,用于实现不同数据库微服务的注册,通过数据库微服务的注册,微服务注册中心能够获取到不同数据库微服务的微服务标识和地址信息。The microservice registration center is used to realize the registration of microservices of different databases. Through the registration of database microservices, the microservice registration center can obtain the microservice identification and address information of microservices of different databases.

在执行步骤102之前,不同数据库对应的数据库微服务在注册中心进行注册,具体的,数据库微服务在上线的时候(即有新增的数据库的时候),向微服务注册中心发送微服务注册请求,该微服务注册请求中包括待注册微服务的微服务标识和所述待注册微服务的地址信息,微服务注册中心在接收到该微服务注册请求之后,解析出微服务标识和地址信息,并将其进行存储,这样,后续在有数据处理请求的时候,能够提供已完成注册的数据库微服务的地址信息。Before performing step 102, database microservices corresponding to different databases are registered in the registration center. Specifically, when the database microservices are online (that is, when a new database is added), a microservice registration request is sent to the microservice registration center The microservice registration request includes the microservice identifier of the microservice to be registered and the address information of the microservice to be registered. After receiving the microservice registration request, the microservice registration center parses out the microservice identifier and address information, And store it, so that when there is a data processing request, it can provide the address information of the registered database microservice.

在数据库微服务下线的时候,即与该数据库微服务对应的数据库停止使用的时候,微服务注册中心需要删除该数据库微服务的微服务标识信息和地址信息。具体的,在数据库微服务下线时,向微服务注册中心发送下线请求,所述下线请求包括用于指示所述数据库微服务下线的下线标识,微服务注册中心在解析出该下线标识之后,将该数据库微服务的微服务标识和地址信息进行删除。When the database microservice is offline, that is, when the database corresponding to the database microservice is stopped, the microservice registration center needs to delete the microservice identification information and address information of the database microservice. Specifically, when the database microservice goes offline, a logoff request is sent to the microservice registration center, and the logoff request includes an offline identifier indicating that the database microservice is offline, and the microservice registration center parses out the After going offline, delete the microservice ID and address information of the database microservice.

可选的,表1和表2内置于微服务管理模块和微服务注册中心。Optionally, Table 1 and Table 2 are built into the microservice management module and the microservice registration center.

可选的,表1和表2内置于微服务注册中心,某一数据库微服务在微服务注册中心完成注册之后,微服务注册中心将已完成注册的数据库微服务的库标识、微服务标识和地址信息发送至微服务管理模块,同时,微服务管理模块对接收到的数据库微服务的库标识、微服务标识和地址信息进行存储,这样,当微服务管理模块在接收到数据处理请求的时候,能够直接根据数据处理请求中的数据库标识获取到目标数据库微服务的地址信息,而不用再通过微服务注册中心查找目标数据库微服务的地址信息。Optionally, Tables 1 and 2 are built in the microservices registration center. After a database microservice is registered in the microservices registration center, the microservices registration center will register the database ID, microservices ID and The address information is sent to the microservice management module, and at the same time, the microservice management module stores the library identifier, microservice identifier, and address information of the received database microservice, so that when the microservice management module receives the data processing request , Can directly obtain the address information of the target database microservice according to the database identifier in the data processing request, without searching the address information of the target database microservice through the microservice registration center.

在本发明实施例中,所述将所述数据处理请求发送至所述目标数据库微服务,包括:In the embodiment of the present invention, the sending the data processing request to the target database microservice includes:

通过微服务注册中心查找所述目标数据库微服务的地址信息;Find the address information of the microservice of the target database through the microservice registration center;

根据所述地址信息,将所述数据处理请求发送至所述目标数据库微服务。According to the address information, send the data processing request to the target database microservice.

当微服务管理模块中没有存储地址信息时,即微服务注册中心没有将数据库微服务的地址信息发送给微服务管理模块,微服务管理模块在接收到数据处理请求的时候,通过对该数据处理请求进行解析,得到数据库标识,然后将该数据库标识发送至微服务注册中心,微服务注册中心根据该数据库标识查找除目标数据库微服务的地址信息,并将查找到的数据库微服务的地址信息发送给微服务管理模块模块,微服务管理模块模块在获取到目标数据库微服务的地址信息之后,根据该地址信息,将数据处理请求发送至目标数据库微服务。When there is no address information stored in the microservice management module, that is, the microservice registration center does not send the address information of the database microservice to the microservice management module. When the microservice management module receives the data processing request, it processes the data The request is parsed to obtain the database identifier, and then the database identifier is sent to the microservice registration center. The microservice registration center searches for the address information of the target database microservice based on the database identifier, and sends the address information of the database microservice found To the microservice management module module, after obtaining the address information of the target database microservice, the microservice management module module sends a data processing request to the target database microservice according to the address information.

具体的,所述的数据处理方法可应用于如图4所示的系统,微服务管理模块获取数据处理请求,所述数据处理请求包括数据库标识,然后根据所述数据库标识,通过微服务注册中心查找所述目标数据库微服务的地址信息,在查找到地址信息之后,根据所述地址信息,将所述数据处理请求发送至所述目标数据库微服务。Specifically, the data processing method can be applied to the system shown in FIG. 4, the microservice management module obtains a data processing request, the data processing request includes a database identifier, and then, according to the database identifier, through the microservice registration center Find the address information of the target database microservice, and after finding the address information, send the data processing request to the target database microservice according to the address information.

上述数据处理方法,首先获取数据处理请求,所述数据处理请求包括数据库标识;然后根据所述数据库标识,确定目标数据库微服务,所述目标数据库微服务提供与所述数据处理请求对应的目标数据库的数据处理接口;最后将所述数据处理请求发送至所述目标数据库微服务,以通过所述目标数据库微服务提供的数据处理接口执行与所述数据处理请求对应的数据处理操作。可见,通过上述方式,由于不同的数据库对应不同的数据库微服务,数据库微服务提供了与数据库对应的数据处理接口,使得在对数据库执行相关操作的时候,不用再了解该数据库的操作语言,而直接根据数据处理请求确认对应的数据库微服务,将请求发送至该微服务既可,提高了数据处理的效率。In the above data processing method, a data processing request is first obtained, and the data processing request includes a database identifier; then, based on the database identifier, a target database microservice is determined, and the target database microservice provides a target database corresponding to the data processing request Data processing interface; and finally send the data processing request to the target database microservice to perform the data processing operation corresponding to the data processing request through the data processing interface provided by the target database microservice. It can be seen that, in the above manner, because different databases correspond to different database microservices, database microservices provide data processing interfaces corresponding to the database, so that when performing related operations on the database, it is no longer necessary to understand the operating language of the database, and Directly confirm the corresponding database microservice according to the data processing request and send the request to the microservice, which improves the efficiency of data processing.

需要说明的是,数据库在完成数据处理请求中要求的数据处理操作的时候,向客户端或微服务管理模块返回结果信息。It should be noted that when the database completes the data processing operation required in the data processing request, it returns the result information to the client or the microservice management module.

在本发明实施例中,在步骤106所述将所述数据处理请求发送至所述目标数据库微服务之后,还包括:In the embodiment of the present invention, after sending the data processing request to the target database microservice in step 106, the method further includes:

当接收到数据处理异常信息时,根据所述数据处理异常信息生成异常数据存储请求;When receiving data processing abnormal information, generate an abnormal data storage request according to the data processing abnormal information;

将所述异常数据存储请求发送至异常数据库,以在所述异常数据库中存储所述数据处理异常信息。Sending the abnormal data storage request to an abnormal database to store the data processing abnormal information in the abnormal database.

所述数据处理异常信息,用于指示数据处理操作未能成功完成,由数据库发送给微服务管理模块,所述数据处理异常信息可以包括但不限于:客户端地址信息、数据处理请求的发起时间、数据处理请求的耗时和错误原因描述信息。The data processing exception information is used to indicate that the data processing operation failed to be completed successfully, and is sent to the microservice management module by the database. The data processing exception information may include but is not limited to: client address information, data processing request initiation time , Time-consuming data processing and error description information.

在这里,当数据库没有完成数据库处理请求中要求的数据处理操作的时候,根据数据处理异常信息生成异常数据存储请求,并向异常数据库发送异常数据存储请求,以使异常数据库存记录数据处理异常信息,作为异常信息排查使用。Here, when the database does not complete the data processing operation required in the database processing request, an abnormal data storage request is generated based on the data processing abnormal information, and an abnormal data storage request is sent to the abnormal database to make the abnormal data inventory record data processing abnormal information , Used as an exception information check.

在一个实施例中,如图5所述,提供一种数据处理方法,该方法包括:In one embodiment, as shown in FIG. 5, a data processing method is provided. The method includes:

步骤502,获取所述数据处理请求的发送时间。Step 502: Obtain the sending time of the data processing request.

所述发送时间,为服务器(即服务器中的微服务管理模块)接收到数据处理请求的时间。The sending time is the time when the server (that is, the microservice management module in the server) receives the data processing request.

步骤504,根据所述发送时间,确定所述数据处理请求的处理序号。Step 504: Determine the processing sequence number of the data processing request according to the sending time.

根据所述发送时间,确定所述数据处理请求的处理序号,例如,10:00:00接收到的数据处理请求的处理序号为1,10:00:05接收到的数据处理请求的处理序号为2,10:00:20接收到的数据处理请求的处理序号为3。Determine the processing sequence number of the data processing request according to the sending time, for example, the processing sequence number of the data processing request received at 10:00:00 is 1, and the processing sequence number of the data processing request received at 10:00:05 is 2. The processing sequence number of the data processing request received at 10:00:20 is 3.

步骤506,当轮询到所述处理序号时,获取所述数据处理请求,所述数据处理请求包括数据库标识,进入根据所述数据库标识,确定目标数据库微服务的步骤。Step 506: When polling the processing sequence number, obtain the data processing request, where the data processing request includes a database identifier, and enter a step of determining a target database microservice according to the database identifier.

若某一数据处理请求的处理序号为N,则需要在轮训到处理序号N的时候才获取该数据处理请求,然后进入步骤508。If the processing sequence number of a certain data processing request is N, the data processing request needs to be acquired only when the training sequence number N is polled, and then step 508 is entered.

需要说明的时候,服务器可以同时处理多条数据处理请求,也可以每次只处理一条数据处理请求。When it needs to be explained, the server can process multiple data processing requests at the same time or only one data processing request at a time.

步骤508,根据所述数据库标识,确定目标数据库微服务,所述目标数据库微服务提供与所述数据处理请求对应的目标数据库的数据处理接口。Step 508: Determine a target database microservice according to the database identifier, and the target database microservice provides a data processing interface of the target database corresponding to the data processing request.

步骤510,将所述数据处理请求发送至所述目标数据库微服务,以通过所述目标数据库微服务提供的数据处理接口执行与所述数据处理请求对应的数据处理操作。Step 510: Send the data processing request to the target database microservice to perform a data processing operation corresponding to the data processing request through a data processing interface provided by the target database microservice.

上述数据处理方法,首先获取所述数据处理请求的发送时间,然后根据所述发送时间,确定所述数据处理请求的处理序号,最后当轮询到所述处理序号时,获取所述数据处理请求,所述数据处理请求包括数据库标识,进入根据所述数据库标识,确定目标数据库微服务的步骤。可见,通过上述方式,当在某一较小的时间段获取到大量数据请求的时候,由于根据处理序号来进行数据请求的处理,所以在一定程度上解决了高并发造成的请求失败的问题,提高了请求成功率。The above data processing method first obtains the sending time of the data processing request, then determines the processing number of the data processing request according to the sending time, and finally obtains the data processing request when polling the processing number The data processing request includes a database identifier, and the step of determining the target database microservice according to the database identifier is entered. It can be seen that through the above method, when a large number of data requests are obtained in a small period of time, since the data request is processed according to the processing sequence number, the problem of request failure caused by high concurrency is solved to a certain extent. Increased request success rate.

在一个实施例中,如图6所示,提供一种数据处理装置600,该装置600包括:In one embodiment, as shown in FIG. 6, a data processing device 600 is provided. The device 600 includes:

获取模块602,用于获取数据处理请求,所述数据处理请求包括数据库标识;The obtaining module 602 is used to obtain a data processing request, where the data processing request includes a database identifier;

确定模块604,用于根据所述数据库标识,确定目标数据库微服务,所述目标数据库微服务提供与所述数据处理请求对应的目标数据库的数据处理接口;The determining module 604 is configured to determine a target database microservice according to the database identifier, and the target database microservice provides a data processing interface of the target database corresponding to the data processing request;

发送模块606,用于将所述数据处理请求发送至所述目标数据库微服务,以通过所述目标数据库微服务提供的数据处理接口执行与所述数据处理请求对应的数据处理操作。The sending module 606 is configured to send the data processing request to the target database microservice to perform a data processing operation corresponding to the data processing request through a data processing interface provided by the target database microservice.

上述数据处理装置,首先获取数据处理请求,所述数据处理请求包括数据库标识;然后根据所述数据库标识,确定目标数据库微服务,所述目标数据库微服务提供与所述数据处理请求对应的目标数据库的数据处理接口;最后将所述数据处理请求发送至所述目标数据库微服务,以通过所述目标数据库微服务提供的数据处理接口执行与所述数据处理请求对应的数据处理操作。可见,通过上述方式,由于不同的数据库对应不同的数据库微服务,数据库微服务提供了与数据库对应的数据处理接口,使得在对数据库执行相关操作的时候,不用再了解该数据库的操作语言,而直接根据数据处理请求确认对应的数据库微服务,将请求发送至该微服务既可,提高了数据处理的效率。The above data processing device first obtains a data processing request, and the data processing request includes a database identifier; and then determines a target database microservice according to the database identifier, and the target database microservice provides a target database corresponding to the data processing request Data processing interface; and finally send the data processing request to the target database microservice to perform the data processing operation corresponding to the data processing request through the data processing interface provided by the target database microservice. It can be seen that, in the above manner, because different databases correspond to different database microservices, database microservices provide data processing interfaces corresponding to the database, so that when performing related operations on the database, it is no longer necessary to understand the operating language of the database, and Directly confirm the corresponding database microservice according to the data processing request and send the request to the microservice, which improves the efficiency of data processing.

在一个实施例中,所述数据处理请求还包括功能标识,所述发送模块606,包括:In one embodiment, the data processing request further includes a function identifier, and the sending module 606 includes:

功能发送模块,用于将所述功能标识发送至所述目标数据库微服务,以使所述目标数据库微服务通过根据所述功能标识确定的功能接口执行与所述功能标识对应的数据处理操作。The function sending module is configured to send the function identifier to the target database microservice, so that the target database microservice performs a data processing operation corresponding to the function identifier through the function interface determined according to the function identifier.

在一个实施例中,所述发送模块606,包括:In one embodiment, the sending module 606 includes:

查找模块,用于通过微服务注册中心查找所述目标数据库微服务的地址信息;A search module, used to search the address information of the microservice of the target database through the microservice registration center;

查找发送模块,用于根据所述地址信息,将所述数据处理请求发送至所述目标数据库微服务。The searching and sending module is configured to send the data processing request to the target database microservice according to the address information.

在一个实施例中,所述装置600,还包括:In one embodiment, the device 600 further includes:

接收模块,用于通过所述微服务注册中心接收微服务注册请求,所述微服务注册请求中包括待注册微服务的微服务标识和所述待注册微服务的地址信息;A receiving module, configured to receive a microservice registration request through the microservice registration center, where the microservice registration request includes a microservice identifier of the microservice to be registered and address information of the microservice to be registered;

存储模块,用于将所述待注册微服务标识和所述待注册微服务的地址信息进行对应存储,完成所述待注册微服务的注册。The storage module is configured to correspondingly store the ID of the microservice to be registered and the address information of the microservice to be registered to complete the registration of the microservice to be registered.

在一个实施例中,所述获取模块602,包括:In one embodiment, the acquisition module 602 includes:

时间获取模块,用于获取所述数据处理请求的发送时间;A time obtaining module, used to obtain the sending time of the data processing request;

序号确定模块,用于根据所述发送时间,确定所述数据处理请求的处理序号;A serial number determining module, configured to determine the processing serial number of the data processing request according to the sending time;

轮训模块,用于当轮询到所述处理序号时,获取所述数据处理请求,进入根据所述数据库标识,确定目标数据库微服务的步骤。The rotation training module is used to obtain the data processing request when polling the processing serial number and enter the step of determining the target database microservice according to the database identification.

在一个实施例中,所述装置600,还包括:In one embodiment, the device 600 further includes:

异常请求生成模块,用于当接收到数据处理异常信息时,根据所述数据处理异常信息生成异常数据存储请求;The abnormal request generating module is configured to generate an abnormal data storage request according to the data processing abnormal information when receiving the data processing abnormal information;

异常请求发送模块,用于将所述异常数据存储请求发送至异常数据库,以在所述异常数据库中存储所述数据处理异常信息。The abnormal request sending module is configured to send the abnormal data storage request to the abnormal database to store the data processing abnormal information in the abnormal database.

图7示出了一个实施例中计算机设备的内部结构图。该计算机设备具体可以是服务器。如图7所示,该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,存储器包括非易失性存储介质和内存储器。该计算机设备的非易失性存储介质存储有操作系统,还可存储有计算机程序,该计算机程序被处理器执行时,可使得处理器实现数据处理方法。该内存储器中也可储存有计算机程序,该计算机程序被处理器执行时,可使得处理器执行数据处理方法。网络接口用于与外部进行通信。本领域技术人员可以理解,图7中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。7 shows an internal structure diagram of a computer device in an embodiment. The computer device may specifically be a server. As shown in FIG. 7, the computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may cause the processor to implement a data processing method. A computer program may also be stored in the internal memory. When the computer program is executed by the processor, the processor may cause the processor to execute the data processing method. The network interface is used to communicate with the outside. Those skilled in the art may understand that the structure shown in FIG. 7 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. The specific computer equipment may It includes more or fewer components than shown in the figure, or some components are combined, or have a different component arrangement.

在一个实施例中,本申请提供的数据处理方法可以实现为一种计算机程序的形式,计算机程序可在如图7所示的计算机设备上运行。计算机设备的存储器中可存储组成数据处理装置的各个程序模板。比如,获取模块602、确定模块604以及发送模块606。In one embodiment, the data processing method provided by the present application may be implemented in the form of a computer program, and the computer program may run on the computer device shown in FIG. 7. Various program templates constituting the data processing device can be stored in the memory of the computer equipment. For example, the obtaining module 602, the determining module 604, and the sending module 606.

一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下步骤:A computer device includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor is caused to perform the following steps:

获取数据处理请求,所述数据处理请求包括数据库标识;Obtain a data processing request, which includes a database identifier;

根据所述数据库标识,确定目标数据库微服务,所述目标数据库微服务提供与所述数据处理请求对应的目标数据库的数据处理接口;Determine the target database microservice according to the database identifier, the target database microservice provides a data processing interface of the target database corresponding to the data processing request;

将所述数据处理请求发送至所述目标数据库微服务,以通过所述目标数据库微服务提供的数据处理接口执行与所述数据处理请求对应的数据处理操作。Sending the data processing request to the target database microservice to perform a data processing operation corresponding to the data processing request through a data processing interface provided by the target database microservice.

上述计算机设备,首先获取数据处理请求,所述数据处理请求包括数据库标识;然后根据所述数据库标识,确定目标数据库微服务,所述目标数据库微服务提供与所述数据处理请求对应的目标数据库的数据处理接口;最后将所述数据处理请求发送至所述目标数据库微服务,以通过所述目标数据库微服务提供的数据处理接口执行与所述数据处理请求对应的数据处理操作。可见,通过上述方式,由于不同的数据库对应不同的数据库微服务,数据库微服务提供了与数据库对应的数据处理接口,使得在对数据库执行相关操作的时候,不用再了解该数据库的操作语言,而直接根据数据处理请求确认对应的数据库微服务,将请求发送至该微服务既可,提高了数据处理的效率。The above computer device first obtains a data processing request, the data processing request includes a database identifier; and then determines a target database microservice according to the database identifier, the target database microservice provides a target database corresponding to the data processing request Data processing interface; finally send the data processing request to the target database microservice to perform the data processing operation corresponding to the data processing request through the data processing interface provided by the target database microservice. It can be seen that, in the above manner, because different databases correspond to different database microservices, database microservices provide data processing interfaces corresponding to the database, so that when performing related operations on the database, it is no longer necessary to understand the operating language of the database, and Directly confirm the corresponding database microservice according to the data processing request and send the request to the microservice, which improves the efficiency of data processing.

在一个实施例中,所述数据处理请求还包括功能标识,所述将所述数据处理请求发送至所述目标数据库微服务,包括:In one embodiment, the data processing request further includes a function identifier, and sending the data processing request to the target database microservice includes:

将所述功能标识发送至所述目标数据库微服务,以使所述目标数据库微服务通过根据所述功能标识确定的功能接口执行与所述功能标识对应的数据处理操作。Sending the function identifier to the target database microservice, so that the target database microservice performs a data processing operation corresponding to the function identifier through a function interface determined according to the function identifier.

在一个实施例中,所述将所述数据处理请求发送至所述目标数据库微服务,包括:In one embodiment, the sending the data processing request to the target database microservice includes:

通过微服务注册中心查找所述目标数据库微服务的地址信息;Find the address information of the microservice of the target database through the microservice registration center;

根据所述地址信息,将所述数据处理请求发送至所述目标数据库微服务。According to the address information, send the data processing request to the target database microservice.

在一个实施例中,上述计算机程序被所述处理器执行时,还用于执行以下步骤:In one embodiment, when the above computer program is executed by the processor, it is also used to perform the following steps:

通过所述微服务注册中心接收微服务注册请求,所述微服务注册请求中包括待注册微服务的微服务标识和所述待注册微服务的地址信息;Receiving a microservice registration request through the microservice registration center, where the microservice registration request includes a microservice identifier of the microservice to be registered and address information of the microservice to be registered;

将所述待注册微服务标识和所述待注册微服务的地址信息进行对应存储,完成所述待注册微服务的注册。Correspondingly storing the ID of the microservice to be registered and the address information of the microservice to be registered to complete the registration of the microservice to be registered.

在一个实施例中,所述获取数据处理请求,包括:In one embodiment, the processing request for acquiring data includes:

获取所述数据处理请求的发送时间;Obtaining the sending time of the data processing request;

根据所述发送时间,确定所述数据处理请求的处理序号;Determine the processing sequence number of the data processing request according to the sending time;

当轮询到所述处理序号时,获取所述数据处理请求,进入根据所述数据库标识,确定目标数据库微服务的步骤。When the processing sequence number is polled, the data processing request is obtained, and the step of determining the target database microservice according to the database identifier is entered.

在一个实施例中,上述计算机程序被所述处理器执行时,还用于执行以下步骤:In one embodiment, when the above computer program is executed by the processor, it is also used to perform the following steps:

当接收到数据处理异常信息时,根据所述数据处理异常信息生成异常数据存储请求;When receiving data processing abnormal information, generate an abnormal data storage request according to the data processing abnormal information;

将所述异常数据存储请求发送至异常数据库,以在所述异常数据库中存储所述数据处理异常信息。Sending the abnormal data storage request to an abnormal database to store the data processing abnormal information in the abnormal database.

一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行如下步骤:A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to perform the following steps:

获取数据处理请求,所述数据处理请求包括数据库标识;Obtain a data processing request, which includes a database identifier;

根据所述数据库标识,确定目标数据库微服务,所述目标数据库微服务提供与所述数据处理请求对应的目标数据库的数据处理接口;Determine the target database microservice according to the database identifier, the target database microservice provides a data processing interface of the target database corresponding to the data processing request;

将所述数据处理请求发送至所述目标数据库微服务,以通过所述目标数据库微服务提供的数据处理接口执行与所述数据处理请求对应的数据处理操作。Sending the data processing request to the target database microservice to perform a data processing operation corresponding to the data processing request through a data processing interface provided by the target database microservice.

上述计算机可读存储介质,首先获取数据处理请求,所述数据处理请求包括数据库标识;然后根据所述数据库标识,确定目标数据库微服务,所述目标数据库微服务提供与所述数据处理请求对应的目标数据库的数据处理接口;最后将所述数据处理请求发送至所述目标数据库微服务,以通过所述目标数据库微服务提供的数据处理接口执行与所述数据处理请求对应的数据处理操作。可见,通过上述方式,由于不同的数据库对应不同的数据库微服务,数据库微服务提供了与数据库对应的数据处理接口,使得在对数据库执行相关操作的时候,不用再了解该数据库的操作语言,而直接根据数据处理请求确认对应的数据库微服务,将请求发送至该微服务既可,提高了数据处理的效率。The above computer-readable storage medium first obtains a data processing request, and the data processing request includes a database identifier; then, based on the database identifier, a target database microservice is determined, and the target database microservice provides the corresponding The data processing interface of the target database; finally, the data processing request is sent to the target database microservice to perform the data processing operation corresponding to the data processing request through the data processing interface provided by the target database microservice. It can be seen that, in the above manner, because different databases correspond to different database microservices, database microservices provide data processing interfaces corresponding to the database, so that when performing related operations on the database, it is no longer necessary to understand the operating language of the database, and Directly confirm the corresponding database microservice according to the data processing request and send the request to the microservice, which improves the efficiency of data processing.

在一个实施例中,所述数据处理请求还包括功能标识,所述将所述数据处理请求发送至所述目标数据库微服务,包括:In one embodiment, the data processing request further includes a function identifier, and sending the data processing request to the target database microservice includes:

将所述功能标识发送至所述目标数据库微服务,以使所述目标数据库微服务通过根据所述功能标识确定的功能接口执行与所述功能标识对应的数据处理操作。Sending the function identifier to the target database microservice, so that the target database microservice performs a data processing operation corresponding to the function identifier through a function interface determined according to the function identifier.

在一个实施例中,所述将所述数据处理请求发送至所述目标数据库微服务,包括:In one embodiment, the sending the data processing request to the target database microservice includes:

通过微服务注册中心查找所述目标数据库微服务的地址信息;Find the address information of the microservice of the target database through the microservice registration center;

根据所述地址信息,将所述数据处理请求发送至所述目标数据库微服务。According to the address information, send the data processing request to the target database microservice.

在一个实施例中,上述计算机程序被所述处理器执行时,还用于执行以下步骤:In one embodiment, when the above computer program is executed by the processor, it is also used to perform the following steps:

通过所述微服务注册中心接收微服务注册请求,所述微服务注册请求中包括待注册微服务的微服务标识和所述待注册微服务的地址信息;Receiving a microservice registration request through the microservice registration center, where the microservice registration request includes a microservice identifier of the microservice to be registered and address information of the microservice to be registered;

将所述待注册微服务标识和所述待注册微服务的地址信息进行对应存储,完成所述待注册微服务的注册。Correspondingly storing the ID of the microservice to be registered and the address information of the microservice to be registered to complete the registration of the microservice to be registered.

在一个实施例中,所述获取数据处理请求,包括:In one embodiment, the processing request for acquiring data includes:

获取所述数据处理请求的发送时间;Obtaining the sending time of the data processing request;

根据所述发送时间,确定所述数据处理请求的处理序号;Determine the processing sequence number of the data processing request according to the sending time;

当轮询到所述处理序号时,获取所述数据处理请求,进入根据所述数据库标识,确定目标数据库微服务的步骤。When the processing sequence number is polled, the data processing request is obtained, and the step of determining the target database microservice according to the database identifier is entered.

在一个实施例中,上述计算机程序被所述处理器执行时,还用于执行以下步骤:In one embodiment, when the above computer program is executed by the processor, it is also used to perform the following steps:

当接收到数据处理异常信息时,根据所述数据处理异常信息生成异常数据存储请求;When receiving data processing abnormal information, generate an abnormal data storage request according to the data processing abnormal information;

将所述异常数据存储请求发送至异常数据库,以在所述异常数据库中存储所述数据处理异常信息。Sending the abnormal data storage request to an abnormal database to store the data processing abnormal information in the abnormal database.

图8为一个实施例中数据处理方法的应用环境图。参照图8,该数据处理方法应用于数据处理系统。该数据处理系统包括终端802和服务器804。终端802和服务器804通过网络连接,终端802具体可以是台式终端或移动终端,台式终端具体可以是台式电脑,移动终端具体可以是手机、平板电脑、笔记本电脑等中的至少一种。服务器904可以用独立的服务器或者是多个服务器组成的服务器集群来实现。终端802用于将数据处理请求发送至服务器804,服务器804用于获取数据处理请求,所述数据处理请求包括数据库标识;根据所述数据库标识,确定目标数据库微服务,所述目标数据库微服务提供与所述数据处理请求对应的目标数据库的数据处理接口;将所述数据处理请求发送至所述目标数据库微服务,以通过所述目标数据库微服务提供的数据处理接口执行与所述数据处理请求对应的数据处理操作。FIG. 8 is an application environment diagram of a data processing method in an embodiment. Referring to FIG. 8, this data processing method is applied to a data processing system. The data processing system includes a terminal 802 and a server 804. The terminal 802 and the server 804 are connected through a network. The terminal 802 may specifically be a desktop terminal or a mobile terminal, the desktop terminal may specifically be a desktop computer, and the mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server 904 may be implemented by an independent server or a server cluster composed of multiple servers. The terminal 802 is used to send a data processing request to the server 804, and the server 804 is used to obtain a data processing request, the data processing request includes a database identifier; according to the database identifier, a target database microservice is determined, and the target database microservice provides A data processing interface of the target database corresponding to the data processing request; sending the data processing request to the target database microservice to execute the data processing request through the data processing interface provided by the target database microservice Corresponding data processing operations.

需要说明的是,各个实施例中所述的数据处理方法、数据处理装置、计算机设备和计算机可读存储介质都属于同一发明构思,数据处理方法、数据处理装置、计算机设备和计算机可读存储介质实施例中涉及的内容可相互适用。It should be noted that the data processing method, data processing apparatus, computer equipment, and computer-readable storage medium described in the embodiments all belong to the same inventive concept. The data processing method, data processing apparatus, computer equipment, and computer-readable storage medium The contents involved in the embodiments are applicable to each other.

上述本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the process in the method of the above embodiments can be completed by instructing relevant hardware through a computer program, and the program can be stored in a non-volatile computer readable storage In the medium, when the program is executed, it may include the processes of the foregoing method embodiments. Wherein, any reference to the memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be arbitrarily combined. In order to simplify the description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered as the scope described in this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiment only expresses several implementation manners of the present application, and its description is more specific and detailed, but it cannot be understood as a limitation of the patent scope of the present application. It should be noted that, for those of ordinary skill in the art, without departing from the concept of the present application, a number of modifications and improvements can also be made, which all fall within the protection scope of the present application. Therefore, the protection scope of the patent of this application shall be subject to the appended claims.

Claims (10)

一种数据处理方法,其特征在于,所述方法包括:A data processing method, characterized in that the method includes: 获取数据处理请求,所述数据处理请求包括数据库标识;Obtain a data processing request, which includes a database identifier; 根据所述数据库标识,确定目标数据库微服务,所述目标数据库微服务提供与所述数据处理请求对应的目标数据库的数据处理接口;Determine the target database microservice according to the database identifier, the target database microservice provides a data processing interface of the target database corresponding to the data processing request; 将所述数据处理请求发送至所述目标数据库微服务,以通过所述目标数据库微服务提供的数据处理接口执行与所述数据处理请求对应的数据处理操作。Sending the data processing request to the target database microservice to perform a data processing operation corresponding to the data processing request through a data processing interface provided by the target database microservice. 如权利要求1所述的方法,其特征在于,所述数据处理请求还包括功能标识,所述将所述数据处理请求发送至所述目标数据库微服务,包括:The method of claim 1, wherein the data processing request further includes a function identifier, and the sending the data processing request to the target database microservice includes: 将所述功能标识发送至所述目标数据库微服务,以使所述目标数据库微服务通过根据所述功能标识确定的功能接口执行与所述功能标识对应的数据处理操作。Sending the function identifier to the target database microservice, so that the target database microservice performs a data processing operation corresponding to the function identifier through a function interface determined according to the function identifier. 如权利要求1所述的方法,其特征在于,所述将所述数据处理请求发送至所述目标数据库微服务,包括:The method of claim 1, wherein the sending the data processing request to the target database microservice includes: 通过微服务注册中心查找所述目标数据库微服务的地址信息;Find the address information of the microservice of the target database through the microservice registration center; 根据所述地址信息,将所述数据处理请求发送至所述目标数据库微服务。According to the address information, send the data processing request to the target database microservice. 如权利要求3所述的方法,其特征在于,在所述获取数据处理请求之前,还包括:The method according to claim 3, characterized in that, before the data processing request is obtained, the method further comprises: 通过所述微服务注册中心接收微服务注册请求,所述微服务注册请求中包括待注册微服务的微服务标识和所述待注册微服务的地址信息;Receiving a microservice registration request through the microservice registration center, where the microservice registration request includes a microservice identifier of the microservice to be registered and address information of the microservice to be registered; 将所述待注册微服务标识和所述待注册微服务的地址信息进行对应存储,完成所述待注册微服务的注册。Correspondingly storing the ID of the microservice to be registered and the address information of the microservice to be registered to complete the registration of the microservice to be registered. 如权利要求1所述的方法,其特征在于,所述获取数据处理请求,包括:The method of claim 1, wherein the processing request for acquiring data comprises: 获取所述数据处理请求的发送时间;Obtaining the sending time of the data processing request; 根据所述发送时间,确定所述数据处理请求的处理序号;Determine the processing sequence number of the data processing request according to the sending time; 当轮询到所述处理序号时,获取所述数据处理请求,进入根据所述数据库标识,确定目标数据库微服务的步骤。When the processing sequence number is polled, the data processing request is obtained, and the step of determining the target database microservice according to the database identifier is entered. 如权利要求1至5任一项所述的方法,其特征在于,在所述将所述数据处理请求发送至所述目标数据库微服务之后,还包括:The method according to any one of claims 1 to 5, wherein after the sending the data processing request to the target database microservice, the method further comprises: 当接收到数据处理异常信息时,根据所述数据处理异常信息生成异常数据存储请求;When receiving data processing abnormal information, generate an abnormal data storage request according to the data processing abnormal information; 将所述异常数据存储请求发送至异常数据库,以在所述异常数据库中存储所述数据处理异常信息。Sending the abnormal data storage request to an abnormal database to store the data processing abnormal information in the abnormal database. 一种数据处理装置,其特征在于,所述装置包括:A data processing device, characterized in that the device includes: 获取模块,用于获取数据处理请求,所述数据处理请求包括数据库标识;An acquisition module, for acquiring a data processing request, the data processing request including a database identifier; 确定模块,用于根据所述数据库标识,确定目标数据库微服务,所述目标数据库微服务提供与所述数据处理请求对应的目标数据库的数据处理接口;A determining module, configured to determine a target database microservice according to the database identifier, and the target database microservice provides a data processing interface of the target database corresponding to the data processing request; 发送模块,用于将所述数据处理请求发送至所述目标数据库微服务,以通过所述目标数据库微服务提供的数据处理接口执行与所述数据处理请求对应的数据处理操作。The sending module is configured to send the data processing request to the target database microservice to perform a data processing operation corresponding to the data processing request through a data processing interface provided by the target database microservice. 如权利要求7所述的装置,其特征在于,所述数据处理请求还包括功能标识,所述发送模块,包括:The apparatus according to claim 7, wherein the data processing request further includes a function identifier, and the sending module includes: 功能发送模块,用于将所述功能标识发送至所述目标数据库微服务,以使所述目标数据库微服务通过根据所述功能标识确定的功能接口执行与所述功能标识对应的数据处理操作。The function sending module is configured to send the function identifier to the target database microservice, so that the target database microservice performs a data processing operation corresponding to the function identifier through the function interface determined according to the function identifier. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至6中任一项所述方法的步骤。A computer device comprising a memory and a processor, the memory storing a computer program, when the computer program is executed by the processor, the processor is caused to perform the method according to any one of claims 1 to 6. A step of. 一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行如权利要求1至6中任一项所述方法的步骤。A computer-readable storage medium storing a computer program, which when executed by a processor, causes the processor to perform the steps of the method according to any one of claims 1 to 6.
PCT/CN2018/123263 2018-12-19 2018-12-24 Data processing method and device, computer apparatus, and storage medium Ceased WO2020124619A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811559135.6 2018-12-19
CN201811559135.6A CN111339170A (en) 2018-12-19 2018-12-19 Data processing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2020124619A1 true WO2020124619A1 (en) 2020-06-25

Family

ID=71100066

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/123263 Ceased WO2020124619A1 (en) 2018-12-19 2018-12-24 Data processing method and device, computer apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN111339170A (en)
WO (1) WO2020124619A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113138999A (en) * 2021-05-12 2021-07-20 泰康保险集团股份有限公司 Data processing method and device, computer storage medium and electronic equipment

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112488538A (en) * 2020-12-04 2021-03-12 国泰新点软件股份有限公司 Evaluation index reporting processing method, device and storage medium
CN114490579A (en) * 2022-01-24 2022-05-13 深圳壹账通智能科技有限公司 Cross-network-area database detection method, device, equipment and storage medium
CN115048356A (en) * 2022-06-16 2022-09-13 平安银行股份有限公司 Database ID generation method, electronic device and storage medium
CN115643300A (en) * 2022-10-09 2023-01-24 日立楼宇技术(广州)有限公司 Elevator debugging data transmission method and device based on micro-service and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060116138A1 (en) * 2004-11-29 2006-06-01 Argela Technologies Value added services creation (vasc) platform
CN108011768A (en) * 2017-12-26 2018-05-08 杭州电子科技大学 A kind of aop intercept types HBase data store micro services framework construction method
CN108255614A (en) * 2016-12-28 2018-07-06 中国移动通信集团公司 A kind of interface calling system and method based on micro services framework
CN108306955A (en) * 2018-01-24 2018-07-20 北京万得嘉瑞汽车技术有限公司 A kind of car-mounted terminal interconnects cluster method on a large scale
CN108650262A (en) * 2018-05-09 2018-10-12 聚龙股份有限公司 A kind of cloud platform extended method and system based on micro services framework

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107665233B (en) * 2017-07-24 2020-07-31 深圳壹账通智能科技有限公司 Database data processing method and device, computer equipment and storage medium
CN107862084A (en) * 2017-11-28 2018-03-30 湖北三新文化传媒有限公司 Data managing method, device and storage medium based on web services
CN108733787A (en) * 2018-05-11 2018-11-02 中国平安人寿保险股份有限公司 Database operation method, device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060116138A1 (en) * 2004-11-29 2006-06-01 Argela Technologies Value added services creation (vasc) platform
CN108255614A (en) * 2016-12-28 2018-07-06 中国移动通信集团公司 A kind of interface calling system and method based on micro services framework
CN108011768A (en) * 2017-12-26 2018-05-08 杭州电子科技大学 A kind of aop intercept types HBase data store micro services framework construction method
CN108306955A (en) * 2018-01-24 2018-07-20 北京万得嘉瑞汽车技术有限公司 A kind of car-mounted terminal interconnects cluster method on a large scale
CN108650262A (en) * 2018-05-09 2018-10-12 聚龙股份有限公司 A kind of cloud platform extended method and system based on micro services framework

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113138999A (en) * 2021-05-12 2021-07-20 泰康保险集团股份有限公司 Data processing method and device, computer storage medium and electronic equipment
CN113138999B (en) * 2021-05-12 2023-11-17 泰康保险集团股份有限公司 Data processing method and device, computer storage medium and electronic equipment

Also Published As

Publication number Publication date
CN111339170A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
WO2020124619A1 (en) Data processing method and device, computer apparatus, and storage medium
US20110302277A1 (en) Methods and apparatus for web-based migration of data in a multi-tenant database system
CN113094387A (en) Data query method and device, electronic equipment and machine-readable storage medium
CN103995879B (en) Data query method, apparatus and system based on OLAP system
CN107534671B (en) Aggregation and Federation of Distributed Service Entities and Associations
US10120941B2 (en) Dynamic runtime environment configuration for query applications
CN112817973B (en) Data processing method, device, data processing equipment and storage medium
US10262046B2 (en) Profile-enabled dynamic runtime environment for web application servers
EP3376403A1 (en) Method of accessing distributed database and device providing distributed data service
JP2019532368A5 (en)
WO2018201887A1 (en) Data response method, apparatus, terminal device, and medium
US20140365523A1 (en) Push subscriptions
WO2020192141A1 (en) Method and device for simulating interface, computer apparatus, and storage medium
CN108090064A (en) A kind of data query method, apparatus, data storage server and system
CN113839977A (en) Message push method, device, computer equipment and storage medium
CN110532123A (en) The failover method and device of HBase system
CN106484694B (en) Full text search method and system based on distributed database
WO2022252510A1 (en) Resource management method, apparatus and device
CN114416689A (en) Data migration method and device, computer equipment and storage medium
CN104781814B (en) Splitting of reference data from a single table to multiple tables
CN104462488B (en) The High Availabitity of database solves method and apparatus
CN105653566B (en) A method and device for realizing database write access
CN110737662A (en) data analysis method, device, server and computer storage medium
CN106992999B (en) A cross-server data communication processing method
CN104462514B (en) High Availabitity solution, connection control device and the system of database

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: 18943847

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18943847

Country of ref document: EP

Kind code of ref document: A1