CN110289999B - A data processing method, system and device - Google Patents
A data processing method, system and device Download PDFInfo
- Publication number
- CN110289999B CN110289999B CN201910542091.4A CN201910542091A CN110289999B CN 110289999 B CN110289999 B CN 110289999B CN 201910542091 A CN201910542091 A CN 201910542091A CN 110289999 B CN110289999 B CN 110289999B
- Authority
- CN
- China
- Prior art keywords
- service group
- server
- data
- client device
- correspondence table
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/03—Credit; Loans; Processing thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Marketing (AREA)
- Signal Processing (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
技术领域technical field
本发明涉及金融科技(Fintech)技术领域,尤其涉及一种数据处理方法、系统及装置。The present invention relates to the technical field of financial technology (Fintech), in particular to a data processing method, system and device.
背景技术Background technique
随着计算机技术的发展,越来越多的技术应用在金融领域,传统金融业正在逐步向金融科技(Fintech)转变,然而由于金融行业的安全性、实时性要求,金融科技也对技术提出了更高的要求。金融科技领域每天都会生成大量的数据,比如贷款业务系统与客户的贷款数据、保险业务系统与客户之间的营销数据、管理业务系统的清算数据等;由于不同业务系统对应着不同的数据,导致不同业务系统对数据处理的要求也不同,因此,如何实现对不同业务系统的数据进行处理,对于金融科技领域的正常发展非常重要。With the development of computer technology, more and more technologies are applied in the financial field, and the traditional financial industry is gradually transforming into financial technology (Fintech). However, due to the security and real-time requirements of the financial industry, financial technology has also raised the higher requirement. The field of financial technology generates a large amount of data every day, such as loan data between the loan business system and customers, marketing data between the insurance business system and customers, liquidation data of the management business system, etc.; because different business systems correspond to different data, resulting in Different business systems have different requirements for data processing. Therefore, how to realize the data processing of different business systems is very important for the normal development of the financial technology field.
在一种现有的实现方式中,金融科技领域中可以设置每个业务系统对应的专属服务器,从而可以使用多个专属服务器分别处理不同业务系统的数据。举例来说,贷款业务系统对应的专属服务器可以为贷款服务器,若贷款服务器接收到贷款业务系统发送的数据,则可以使用贷款服务器中的资源(比如硬盘、磁盘、中央处理器、网络等)对数据进行处理。然而,在该种实现方式中,每个业务系统对应一个专属服务器,若某一专属服务器上的资源损坏,通常需要专业人员对该专属服务器进行维护(比如维修该专属服务器,或者设置新的专属服务器)。如此,业务系统则需要等待维护过程完成方可继续执行数据处理过程,由此可知,采用上述实现方式可能会导致该业务系统的数据处理过程受到阻塞,从而无法实现数据处理的高可用性。In an existing implementation manner, dedicated servers corresponding to each business system can be set in the financial technology field, so that multiple dedicated servers can be used to process data of different business systems respectively. For example, the dedicated server corresponding to the loan business system can be a loan server. If the loan server receives the data sent by the loan business system, it can use the resources in the loan server (such as hard disk, disk, central processing unit, network, etc.) to The data is processed. However, in this implementation, each business system corresponds to a dedicated server. If the resources on a certain dedicated server are damaged, professionals are usually required to maintain the dedicated server (such as repairing the dedicated server, or setting up a new dedicated server). server). In this way, the business system needs to wait for the completion of the maintenance process before continuing to execute the data processing process. It can be seen that the above implementation method may cause the data processing process of the business system to be blocked, so that high availability of data processing cannot be achieved.
综上,目前亟需一种数据处理方法,用以解决使用每个业务系统对应的专属服务器处理数据所导致的数据处理的可用性较低的技术问题。To sum up, there is an urgent need for a data processing method to solve the technical problem of low availability of data processing caused by using a dedicated server corresponding to each business system to process data.
发明内容Contents of the invention
本发明实施例提供一种数据处理方法、系统及装置,用以解决使用每个业务系统对应的专属服务器处理数据所导致的数据处理的可用性较低的技术问题。Embodiments of the present invention provide a data processing method, system, and device to solve the technical problem of low availability of data processing caused by using a dedicated server corresponding to each business system to process data.
第一方面,本发明实施例提供的一种数据处理方法,所述方法应用于数据处理系统,所述数据处理系统包括至少一个服务组,所述至少一个服务组中的每个服务组包括主服务器以及一个或多个从服务器;所述方法包括:In the first aspect, an embodiment of the present invention provides a data processing method, the method is applied to a data processing system, the data processing system includes at least one service group, and each service group in the at least one service group includes a master server and one or more slave servers; the method includes:
接收第一客户端设备发送的数据请求消息,所述数据请求消息中包括所述第一客户端设备的标识和待处理数据;进一步地,查询预设对应关系表,得到所述第一客户端设备的标识对应的目标服务组,并使用所述目标服务组中的主服务器处理所述待处理数据;其中,所述预设对应关系表中存储有一个或多个客户端设备的标识与所述至少一个服务组的对应关系。Receiving a data request message sent by the first client device, the data request message including the identifier of the first client device and data to be processed; further, querying a preset correspondence table to obtain the first client device The target service group corresponding to the device identifier, and use the main server in the target service group to process the data to be processed; wherein, the preset correspondence table stores the identifiers of one or more client devices and the Describe the corresponding relationship of at least one service group.
在上述设计中,通过设置至少一个服务组以及每个服务组包括的主服务器和一个或多个从服务器,可以保证每个服务组中的主服务器是实时存在的(比如若当前时刻某一服务组的主服务器损坏,则可以为该服务组分配新的主服务器),从而可以使得至少一个服务组处于时刻可用的状态;如此,通过为第一客户端设备分配对应的服务组,可以通过第一客户端设备对应的服务组中的主服务器执行与第一客户端设备相关的数据处理过程,保证数据处理过程的高可用性。In the above design, by setting at least one service group and the master server and one or more slave servers included in each service group, it can be ensured that the master server in each service group exists in real time (for example, if a certain service If the primary server of the group is damaged, a new primary server can be assigned to the service group), so that at least one service group can be in a state of being available at all times; thus, by assigning the corresponding service group to the first client device, the second The main server in the service group corresponding to a client device executes the data processing process related to the first client device, ensuring high availability of the data processing process.
在一种可能的设计中,若所述目标服务组中的主服务器发生故障,则从所述目标服务组中的一个或多个从服务器中选取第一从服务器,并使用所述第一从服务器处理所述待处理数据。In a possible design, if the master server in the target service group fails, select a first slave server from one or more slave servers in the target service group, and use the first slave server The server processes the data to be processed.
在上述设计中,若某一服务组中的主服务器损坏,则可以从该服务组包括的其它服务器中选取新的主服务器,从而可以使用新的主服务器处理待处理数据,一方面,通过在主服务器损坏时自动选取新的主服务器,可以无需人工维护,从而操作简单,便于实现,且可以降低维护成本;另一方面,通过使用新的主服务器处理待处理数据,使得用户无需再次输入数据请求消息即可得到数据处理结果,从而使得用户的体验较好。In the above design, if the primary server in a certain service group is damaged, a new primary server can be selected from other servers included in the service group, so that the new primary server can be used to process pending data. On the one hand, through When the main server is damaged, a new main server is automatically selected, which eliminates the need for manual maintenance, so the operation is simple, easy to implement, and can reduce maintenance costs; on the other hand, by using the new main server to process the pending data, the user does not need to input data again The data processing result can be obtained by requesting a message, so that the user experience is better.
在一种可能的设计中,所述预设对应关系表还包括每个服务组中的主服务器的IP地址;所述使用所述目标服务组中的主服务器处理所述待处理数据,包括:根据所述预设对应关系表包括的所述目标服务组中的主服务器的IP地址,将所述待处理数据发送给所述目标服务组中的主服务器,以使所述目标服务组中的主服务器处理所述待处理数据。In a possible design, the preset correspondence table further includes the IP address of the main server in each service group; the processing of the data to be processed using the main server in the target service group includes: According to the IP address of the main server in the target service group included in the preset correspondence table, send the data to be processed to the main server in the target service group, so that the The main server processes the data to be processed.
在上述设计中,通过在预设对应关系表中添加客户端设备、服务组和服务组中的主服务器的IP地址的对应关系,使得查询预设对应关系表即可确定处理待处理数据的主服务器,而无需再对每个服务组中的每个服务器进行分析,从而可以提高数据处理的效率。In the above design, by adding the corresponding relationship between the client device, the service group, and the IP address of the master server in the service group in the preset correspondence table, the master who processes the data to be processed can be determined by querying the preset correspondence table. server, instead of analyzing each server in each service group, which can improve the efficiency of data processing.
在一种可能的设计中,若所述预设对应关系表中不存在与所述第一客户端设备的标识对应的服务组,则根据所述至少一个服务组的性能从所述至少一个服务组中选取第一服务组,并使用所述第一服务组中的主服务器处理所述待处理数据;所述至少一个服务组中每个服务组的性能是由所述每个服务组中的主服务器和一个或多个从服务器的磁盘容量确定的。In a possible design, if there is no service group corresponding to the identifier of the first client device in the preset correspondence table, the at least one service group is selected according to the performance of the at least one service group. Select the first service group from the group, and use the main server in the first service group to process the data to be processed; the performance of each service group in the at least one service group is determined by the The disk capacity of the master server and one or more slave servers is determined.
在上述设计中,通过选取至少一个服务组中当前性能最好的服务组作为新的客户端设备对应的服务组,不仅可以提高对客户端设备的数据进行处理的效率,还可以保证至少一个服务组的负载的均衡性,提高数据处理系统的数据处理能力。In the above design, by selecting the service group with the best current performance in at least one service group as the service group corresponding to the new client device, it can not only improve the efficiency of processing the data of the client device, but also ensure that at least one service group The load balance of the group improves the data processing capability of the data processing system.
在一种可能的设计中,所述根据所述至少一个服务组的性能从所述至少一个服务组中选取第一服务组之后,还可以在所述预设对应关系表中生成所述第一客户端设备的标识与所述第一服务组的对应关系。In a possible design, after the first service group is selected from the at least one service group according to the performance of the at least one service group, the first service group may also be generated in the preset correspondence table. The correspondence between the identifier of the client device and the first service group.
在上述设计中,为新的客户端设备分配目标服务组后,可以将新的客户端设备与目标服务组的对应关系更新预设对应关系表,从而可以提高预设对应关系表的实时性,进而提高基于预设对应关系表处理数据的准确性。In the above design, after assigning the target service group to the new client device, the correspondence between the new client device and the target service group can be updated to the preset correspondence table, thereby improving the real-time performance of the preset correspondence table, Further, the accuracy of data processing based on the preset correspondence table is improved.
在一种可能的设计中,所述使用所述目标服务组中的主服务器处理所述待处理数据之前,还可以确定所述第一客户端设备合法。In a possible design, before using the main server in the target service group to process the data to be processed, it may also be determined that the first client device is legal.
在上述设计中,通过在对客户端设备的数据进行处理之前对客户端设备进行合法性验证,可以避免对其它客户端设备的数据进行处理,保证不同的客户端设备数据处理的有序性和安全性。In the above design, by verifying the legality of the client device before processing the data of the client device, it is possible to avoid processing the data of other client devices and ensure the orderliness and security of data processing of different client devices. safety.
第二方面,本发明实施例提供的一种所述数据处理系统包括一个或多个客户端设备,代理服务器和至少一个服务组,所述至少一个服务组中的每个服务组包括至少一个主服务器以及一个或多个从服务器;In a second aspect, the data processing system provided by an embodiment of the present invention includes one or more client devices, a proxy server, and at least one service group, and each service group in the at least one service group includes at least one master server and one or more slave servers;
所述客户端设备,用于根据用户的触发操作生成数据请求消息,并将所述数据请求消息发送给所述代理服务器;所述数据请求消息中包括所述客户端设备的标识和待处理数据;The client device is configured to generate a data request message according to a user's trigger operation, and send the data request message to the proxy server; the data request message includes the identifier of the client device and data to be processed ;
所述代理服务器,用于在接收到所述客户端设备发送的数据请求消息后,查询预设对应关系表确定所述客户端设备的标识对应的目标服务组,并将所述待处理数据发送给所述目标服务组中的主服务器;所述预设对应关系表中存储有所述一个或多个客户端设备的标识与所述至少一个服务组的对应关系;The proxy server is configured to, after receiving the data request message sent by the client device, query a preset correspondence table to determine the target service group corresponding to the identifier of the client device, and send the data to be processed To the main server in the target service group; the preset correspondence table stores the correspondence between the identifiers of the one or more client devices and the at least one service group;
所述目标服务组中的主服务器,用于在接收到所述代理服务器发送的待处理数据后,对所述待处理数据进行处理。The main server in the target service group is configured to process the data to be processed after receiving the data to be processed sent by the proxy server.
在一种可能的设计中,所述系统还包括存储服务器;所述存储服务器用于:接收每个服务组中的主服务器以及一个或多个从服务器分别上报的信息,并根据所述信息生成所述预设对应关系表;相应地,所述代理服务器还用于:从所述存储服务器中获取所述预设对应关系表。In a possible design, the system further includes a storage server; the storage server is configured to: receive the information respectively reported by the master server and one or more slave servers in each service group, and generate The preset correspondence table; correspondingly, the proxy server is further configured to: acquire the preset correspondence table from the storage server.
在一种可能的设计中,所述预设对应关系表中还包括每个服务组中的主服务器的IP;所述目标服务组在所述目标服务组中的主服务器故障时,从所述目标服务组中的一个或多个从服务器中选取性能大于第一预设性能的第一从服务器,并将所述第一从服务器的IP发送给所述存储服务器;相应地,所述存储服务器还用于:接收所述第一从服务器的IP后,使用所述第一从服务器的IP更新所述预设对应关系表所述目标服务组中的主服务器的IP。In a possible design, the preset correspondence table also includes the IP of the master server in each service group; when the master server in the target service group fails, the One or more slave servers in the target service group select a first slave server whose performance is greater than a first preset performance, and send the IP of the first slave server to the storage server; correspondingly, the storage server It is further used for: after receiving the IP of the first slave server, using the IP of the first slave server to update the IP of the master server in the target service group in the preset correspondence table.
第三方面,本发明实施例提供的一种数据处理装置,所述装置应用于数据处理系统,所述数据处理系统包括至少一个服务组,所述至少一个服务组中的每个服务组包括主服务器以及一个或多个从服务器;所述装置包括:In a third aspect, an embodiment of the present invention provides a data processing device, the device is applied to a data processing system, the data processing system includes at least one service group, and each service group in the at least one service group includes a master server and one or more slave servers; the apparatus includes:
收发模块,用于接收第一客户端设备发送的数据请求消息,所述数据请求消息中包括所述第一客户端设备的标识和待处理数据;A transceiver module, configured to receive a data request message sent by the first client device, where the data request message includes the identifier of the first client device and data to be processed;
查询模块,用于查询预设对应关系表,得到所述第一客户端设备的标识对应的目标服务组;所述预设对应关系表中存储有一个或多个客户端设备的标识与所述至少一个服务组的对应关系;A query module, configured to query a preset correspondence table to obtain a target service group corresponding to the identifier of the first client device; the preset correspondence table stores one or more client device identifiers and the A correspondence relationship of at least one service group;
处理模块,用于使用所述目标服务组中的主服务器处理所述待处理数据。A processing module, configured to use the main server in the target service group to process the data to be processed.
在一种可能的设计中,所述处理模块还用于:若所述目标服务组中的主服务器发生故障,则从所述目标服务组中的一个或多个从服务器中选取第一从服务器,并使用所述第一从服务器处理所述待处理数据。In a possible design, the processing module is further configured to: select a first slave server from one or more slave servers in the target service group if the master server in the target service group fails , and use the first slave server to process the data to be processed.
在一种可能的设计中,所述预设对应关系表还包括每个服务组中的主服务器的互联网协议地址IP;处理模块还用于:根据所述预设对应关系表包括的所述目标服务组中的主服务器的IP,将所述待处理数据发送给所述目标服务组中的主服务器,以使所述目标服务组中的主服务器处理所述待处理数据。In a possible design, the preset correspondence table further includes the Internet Protocol address IP of the main server in each service group; the processing module is further configured to: according to the target included in the preset correspondence table the IP of the main server in the service group, and send the data to be processed to the main server in the target service group, so that the main server in the target service group processes the data to be processed.
在一种可能的设计中,所述处理模块还用于:若所述预设对应关系表中不存在与所述第一客户端设备的标识对应的服务组,则根据所述至少一个服务组的性能从所述至少一个服务组中选取第一服务组,并使用所述第一服务组中的主服务器处理所述待处理数据;所述至少一个服务组中每个服务组的性能是由所述每个服务组中的主服务器的磁盘容量以及一个或多个从服务器的磁盘容量确定的。In a possible design, the processing module is further configured to: if there is no service group corresponding to the identifier of the first client device in the preset correspondence table, according to the at least one service group Select the first service group from the at least one service group, and use the main server in the first service group to process the data to be processed; the performance of each service group in the at least one service group is determined by The disk capacity of the master server in each service group and the disk capacity of one or more slave servers are determined.
在一种可能的设计中,所述处理模块还用于:在所述预设对应关系表中生成所述第一客户端设备的标识与所述第一服务组的对应关系。In a possible design, the processing module is further configured to: generate a correspondence between the identifier of the first client device and the first service group in the preset correspondence table.
在一种可能的设计中,所述处理模块还用于:确定所述第一客户端设备合法。In a possible design, the processing module is further configured to: determine that the first client device is legal.
第四方面,本发明实施例提供的一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如第一方面任意所述的方法。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, including instructions, which, when run on a computer, cause the computer to execute any of the methods described in the first aspect.
第五方面,本发明实施例提供的一种计算机程序产品,当其在计算机上运行时,使得计算机执行如第一方面任意所述的方法。In a fifth aspect, an embodiment of the present invention provides a computer program product, which, when run on a computer, causes the computer to execute any method described in the first aspect.
本发明的这些实现方式或其他实现方式在以下实施例的描述中会更加简明易懂。These implementation manners or other implementation manners of the present invention will be more concise and understandable in the description of the following embodiments.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.
图1为本发明实施例提供的一种数据处理方法对应的架构示意图;FIG. 1 is a schematic diagram of an architecture corresponding to a data processing method provided by an embodiment of the present invention;
图2为本发明实施例提供的一种数据处理系统的架构示意图;FIG. 2 is a schematic diagram of the architecture of a data processing system provided by an embodiment of the present invention;
图3为本发明实施例提供的一种数据处理方法对应的流程示意图;FIG. 3 is a schematic flowchart corresponding to a data processing method provided by an embodiment of the present invention;
图4为本发明实施例提供的一种数据处理装置的结构示意图。FIG. 4 is a schematic structural diagram of a data processing device provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
金融科技(Fintech)是指将信息技术融入金融领域后,为金融领域带来的一种新的创新科技,通过使用先进的信息技术辅助实现金融作业、交易执行以及金融系统改进,可以提升金融系统的处理效率、业务规模,并可以降低成本和金融风险。一般来说,金融科技领域通常会涉及到大量的数据,比如信贷业务系统的贷款数据、销售业务系统的售卡数据、支付业务系统的转账数据等,如何采用科技的手段从大量的数据中挖掘出金融领域所需要的特征,一直是金融科技领域追求的目标。Financial technology (Fintech) refers to a new innovative technology brought to the financial field after the integration of information technology into the financial field. By using advanced information technology to assist in the realization of financial operations, transaction execution and financial system improvement, the financial system can be improved. Processing efficiency, business scale, and can reduce costs and financial risks. Generally speaking, the field of financial technology usually involves a large amount of data, such as loan data in the credit business system, card sales data in the sales business system, transfer data in the payment business system, etc. How to use technology to mine large amounts of data? Finding out the characteristics required by the financial field has always been the goal pursued by the financial technology field.
由于为每个业务系统设置专属服务器的方案无法保证数据处理的高可用性,因此,为了保证数据处理的高可用性,在一种可能的实现方式中,可以为同一个业务系统设置多个专属服务器(两个或者两个以上),如此,若某一专属服务器发生损坏,则可以使用其它的专属服务器处理该业务系统的数据,保证对该业务系统中的数据进行处理的连续性。Since the scheme of setting up a dedicated server for each business system cannot guarantee high availability of data processing, in order to ensure high availability of data processing, in a possible implementation, multiple dedicated servers can be set for the same business system ( Two or more), in this way, if a dedicated server is damaged, other dedicated servers can be used to process the data of the business system to ensure the continuity of data processing in the business system.
以对同一个业务系统设置两个专属服务器为例,图1为该种实现方式对应的系统架构示意图,如图1所示,该系统中可以设置有客户端设备110、负载均衡服务器120、专属服务器131、专属服务器132和网络附属存储(Network Attached Storage,NAS)服务器140。其中,负载均衡服务器120可以分别与客户端设备110、专属服务器131和专属服务器132连接,NAS服务器140可以分别与专属服务器131和专属服务器132连接;实现连接的方式可以有多种,比如可以通过有线方式实现连接,或者也可以通过无线方式实现连接,具体不作限定。Taking two dedicated servers for the same business system as an example, Figure 1 is a schematic diagram of the system architecture corresponding to this implementation, as shown in Figure 1, the system can be set with a
本发明实施例中,NAS服务器140可以由多块硬盘组成,NAS服务器140中可以存储有与客户端设备110相关的多个数据,比如文本数据、音频数据、视频数据等。相应地,专属服务器131和/或专属服务器132上可以存储有客户端设备110的身份信息,其中,客户端设备110的身份信息可以包括客户端设备100的用户名、与用户名对应的密码等;如此,专属服务器131和/或专属服务器132可以通过客户端设备110的身份信息访问NAS服务器140,从而实现对客户端设备110的数据进行处理。在一个示例中,专属服务器131与专属服务器132之间可以通过传输数据流实现对客户端设备110的身份信息进行共享。举例来说,专属服务器131与专属服务器132上可以分别设置有同步工具(比如sersync工具),若专属服务器131检测到某一时刻客户端设备110的身份信息由第一身份信息更新为第二身份信息,则可以通过sersync工具将第二身份信息中不同于第一身份信息的差异数据传送给专属服务器132;如此,专属服务器132可以根据接收到的差异数据更新内部存储的客户端设备110的身份信息,从而实现专属服务器131与专属服务器132的数据共享过程。In the embodiment of the present invention, the
具体实施中,客户端设备110可以根据用户的触发指令生成数据请求消息,进而将数据请求消息发送给负载均衡服务器120;相应地,负载均衡服务器120接收到数据处理请求后,可以根据专属服务器131和专属服务器132的负载情况(比如内存和/或硬盘的占用率、中央处理器的核数等)从专属服务器131和专属服务器132中选择一个目标专属服务器(比如专属服务器132),进而可以将数据处理请求发送给专属服务器132;在某种情况下,若专属服务器132发生故障,则负载均衡服务器120可以将数据处理请求发送给专属服务器131;进一步地,若数据处理请求为修改文件a,则专属服务器132(或专属服务器131)接收到数据处理请求后,可以预先对客户端设备110的身份进行验证,若确定客户端设备110的身份合法,则可以获取与客户端设备100匹配的NAS服务器140中的文件a,并对文件a进行修改。In a specific implementation, the
根据上述内容可知,在该种实现方式中,除了需要设置多个专属服务器,还需要设置独立于多个专属服务器之外的NAS服务器140,虽然该种实现方式可以在某一专属服务器故障时使用其它的专属服务器处理数据,但是若NAS服务器140发生故障(比如构成NAS服务器140的某一硬盘损坏、网络故障、内存不足等),则任一专属服务器均无法实现对数据进行处理,从而导致数据处理不可用;也就是说,上述实现过程仍然无法实现数据的高可用性。According to the above content, it can be seen that in this implementation, in addition to setting up multiple dedicated servers, it is also necessary to set up a
除此之外,上述实现方式还存在如下问题:In addition, the above implementation also has the following problems:
(1)由于设置了独立的NAS服务器140,导致系统的成本较高。(1) Since the
(2)专属服务器131与专属服务器132之间同步数据流的过程与基于NAS服务器140处理数据的过程使用同一网络,导致同步数据流的过程占用较大的网络空间,从而可能会使得数据处理过程中的网络受到阻塞,数据处理的效率较低。(2) The process of synchronizing data streams between
(3)专属服务器131和专属服务器132访问同一个NAS设备,导致无法按照实际的业务场景动态分配不同专属服务器对应的数据,从而使得数据处理的扩展性较差。(3) The
基于此,本发明实施例提供一种数据处理系统,用以实现数据处理的高可用性,提高数据处理的效率和扩展性,并降低成本。Based on this, an embodiment of the present invention provides a data processing system to achieve high availability of data processing, improve data processing efficiency and scalability, and reduce costs.
图2为本发明实施例提供的一种数据处理系统的架构示意图,如图2所示,该系统可以包括一个或多个客户端设备(比如图2所示意的客户端设备211、客户端设备212和客户端设备213)、代理服务器220、存储服务器组230和至少一个服务组(比如图2所示意的服务组241、服务组242和服务组243)。其中,代理服务器220可以分别与至少一个客户端设备、存储服务器组230、至少一个服务组连接,至少一个服务组的每个服务组可以与存储服务器组230连接,实现连接的方式可以为有线连接,或者也可以为无线连接,具体不作限定。Figure 2 is a schematic diagram of the architecture of a data processing system provided by an embodiment of the present invention. As shown in Figure 2, the system may include one or more client devices (such as the
本发明实施例中,每个服务组中可以设置有多个服务器,多个服务器中的任意两个服务器可以实现数据共享,比如可以通过RAFT协议实现数据共享。以服务组241为例,服务组241中可以设置有服务器2411~服务器2413,相应地,服务组241可以采用多种方式从服务器2411~服务器2413中选取得到一个主服务器,比如可以根据RAFT协议从服务器2411~服务器2413中选举得到主服务器,或者也可以由本领域技术人员根据经验设置主服务器,具体不作限定。在一个示例中,服务组241可以从服务器2411~服务器2413中选取性能最好的服务器(比如服务器2411)作为主服务器,如此,服务器1412和服务器2413可以作为主服务器2411管理的两个从服务器。其中,服务器的性能可以由服务器中磁盘的可用容量、内存的占用量、中央处理器(Central Processing Unit,CPU)的核数、网络流量中的任意一项或任意多项来确定,具体不作限定。In the embodiment of the present invention, multiple servers can be set in each service group, and any two servers in the multiple servers can realize data sharing, for example, data sharing can be realized through the RAFT protocol. Taking
需要说明的是,图2中的服务组仅是一种示例性的简单说明,其所列举的服务组中服务器的数量仅是为了便于说明方案,并不构成对方案的限定,在具体实施中,服务组中服务器的数量可以大于3个,比如可以为5个或5个以上。在一个示例中,为了保证RAFT协议选举的准确性,可以设置每个服务组中服务器的数量为奇数。It should be noted that the service group in Figure 2 is only an exemplary simple description, and the number of servers in the service group listed is only for the convenience of illustrating the solution, and does not constitute a limitation on the solution. In specific implementation , the number of servers in the service group may be greater than 3, for example, it may be 5 or more. In an example, in order to ensure the accuracy of the RAFT protocol election, the number of servers in each service group may be set to be an odd number.
在一种可能的实现方式中,存储服务器集群230中也可以设置有一个或多个存储服务器,比如存储服务器231~存储服务器233,存储服务器231~存储服务器233中的任意两个存储服务器可以实现数据共享。相应地,存储服务器集群230也可以按照上述方式从存储服务器231~存储服务器233中选取得到一个主存储服务器(比如存储服务器231),如此,存储服务器232和存储服务器233可以为主存储服务器231管理的两个从存储服务器。In a possible implementation manner, one or more storage servers may also be set in the storage server cluster 230, such as
具体实施中,服务组241~服务组243中的任一服务组确定主服务器后,可以将该服务组对应的客户端设备的标识、主服务器的信息和从服务器的信息上报给主存储服务器231。举例来说,以服务组241为例,在确定主服务器2411和从服务器2412、从服务器2413后,主服务器2411可以将其所属的服务组241的标识、服务组241对应的客户端设备的标识、当前可用的磁盘容量、互联网协议地址(Internet Protocol Address,IP)、端口号、服务器编号等信息发送给主存储服务器231,而从服务器2412和从服务器2413可以分别将其所属的服务组241的标识和当前可用的磁盘容量发送给主存储服务器231。如此,主存储服务器231可以根据服务组241~服务组243对应的客户端设备的标识、主服务器的信息和从服务器的信息建立预设对应关系表,并可以将预设对应关系表通过RAFT协议共享给从存储服务器232和从存储服务器233,因此,主存储服务器231、从存储服务器232和从存储服务器233中可以分别存储有相同的预设对应关系表。In specific implementation, after any service group in
表1为本发明实施例提供的一种预设对应关系表的示意表。Table 1 is a schematic table of a preset correspondence table provided by an embodiment of the present invention.
表1:一种预设对应关系表的示意Table 1: An illustration of a preset correspondence table
如表1所示,预设对应关系表中可以包括每个服务组的标识、每个服务组对应的客户端设备的标识、每个服务组包括的主服务器和从服务器的标识、可用的磁盘容量以及主服务器的IP地址等信息。以服务组241为例,基于表1所示意的内容,服务组241对应的客户端设备可以为客户端设备212,服务组241中的主服务器可以为主服务器2411,从服务器可以为从服务器2412和从服务器2413;主服务器2411中可用的磁盘容量为500M,从服务器2412中可用的磁盘容量为300M,从服务器2413中可用的磁盘容量为200M;主服务器2411的IP地址可以为http://2411.com。As shown in Table 1, the preset correspondence table may include the identifier of each service group, the identifier of the client device corresponding to each service group, the identifiers of the master server and slave server included in each service group, and the available disk information such as the capacity and the IP address of the main server. Taking the
以服务组241为例,在一种可能的实现方式中,若服务组241中的主服务器2411发生故障(比如磁盘损坏、磁盘空间不足、内存不足、网络故障、硬件设备损坏、软件运行故障等),则服务组241可以根据RAFT协议从从服务器2412和从服务器2413中重新选举得到新的主服务器(比如服务器2413)。进一步地,新的主服务器2413可以将其IP地址和旧的主服务器2411的故障信息上报给主存储服务器231,如此,主存储服务器231可以根据新的主服务器2413的IP地址和主服务器2411的故障信息更新预设对应关系表。Taking the
在一个示例中,主存储服务器231可以将新的主服务器2412标记为主服务器2412,并可以将旧的主服务器2411的状态标识为不可用状态,进而生成并推送旧的主服务器2411对应的告警信息给运维人员。在另一个示例中,主存储服务器231可以将新的主服务器2412标记为主服务器2412,并可以将旧的主服务器2411标记为从服务器2411,采用该示例中的方法可以将表1所示的预设对应关系表更新为表2所示。In one example, the
表2:一种更新后的预设对应关系表的示意Table 2: An illustration of an updated preset correspondence table
可以理解地,主存储服务器231在更新预设对应关系表后,也可以将更新后的预设对应关系表通过RAFT协议共享给从存储服务器232和从存储服务器233,以使主存储服务器231、从存储服务器232和从存储服务器233中可以分别存储有相同的预设对应关系表。It can be understood that, after the
本发明实施例中,若服务组中的主服务器故障,则服务组可以从其它服务器中选举得到新的主服务器,如此,可以使用新的主服务器对客户端设备的数据请求消息进行处理;也就是说,通过服务组自动选取主服务器,可以实现故障的自动恢复,从而使得数据处理过程具有高可用性。In the embodiment of the present invention, if the main server in the service group fails, the service group can elect a new main server from other servers, so that the new main server can be used to process the data request message of the client device; That is to say, through the automatic selection of the primary server by the service group, the automatic recovery of the failure can be realized, so that the data processing process has high availability.
基于图2所示意的系统架构,图3为本发明实施例提供的数据处理方法对应的流程示意图,该方法包括:Based on the system architecture shown in Figure 2, Figure 3 is a schematic flowchart corresponding to the data processing method provided by the embodiment of the present invention, the method comprising:
步骤301,第一客户端设备向代理服务器发送数据请求消息。Step 301, the first client device sends a data request message to the proxy server.
本发明实施例中,客户端设备211~客户端设备213可以为不同业务系统对应的客户端设备,比如,客户端设备211为贷款业务系统对应的客户端设备、客户端设备212为保险业务系统对应的客户端设备、客户端设备213为销售业务系统对应的客户端设备;如此,贷款业务系统可以通过客户端设备211对贷款业务系统执行业务的过程中所生成的贷款数据进行处理,保险业务系统可以通过客户端设备212对保险业务系统执行业务的过程中所生成的保险数据进行处理,销售业务系统可以通过客户端设备213对销售业务系统执行业务的过程中所生成的销售数据进行处理。In the embodiment of the present invention,
下面以贷款业务系统处理贷款数据为例描述本发明实施例中的数据处理方法,可以理解地,其它业务系统处理各自数据的过程也可以参照该方法进行实现,具体不作限定。The data processing method in the embodiment of the present invention is described below by taking the loan business system processing loan data as an example. It is understandable that other business systems can also refer to this method to implement the process of processing their own data, and the details are not limited.
在一个示例中,客户端设备211中可以设置有(World Wide Web,web)浏览器,贷款业务系统中的用户可以通过在web浏览器中输入预设链接得到资源管理界面;其中,资源管理界面上可以设置有多个功能图标,比如“修改资源”功能图标、“删除资源”功能图标、“获取资源”功能图标等。以删除贷款数据a为例,客户端设备211若检测到用户触发“删除资源”功能图标,则可以提示用户在资源管理界面中输入待删除资源的标识,进而在检测到用户输入贷款数据a的标识后,根据贷款数据a的标识生成数据请求消息,数据请求消息中可以包括客户端设备211的标识和贷款数据a的标识。In one example, a (World Wide Web, web) browser may be set in the
进一步地,客户端设备211可以将数据请求消息发送给代理服务器200,其中,将数据请求消息发送给代理服务器200的方式可以有多种,比如可以通过光纤、网线等有线设备发送数据请求消息,或者可以通过声波、蓝牙等无线设备发送数据请求消息,具体不作限定。Further, the
步骤302,代理服务器查询预设对应关系表,确定与第一客户端设备对应的目标服务组。In step 302, the proxy server queries a preset correspondence table to determine a target service group corresponding to the first client device.
如图2所示,在一个示例中,存储服务组230中确定主存储服务器231和从存储服务器232、从存储服务器233后,可以将主存储服务器231的信息(比如IP地址)发送给代理服务器220;如此,代理服务器220可以根据主存储服务器231的IP地址与主存储服务器231进行通信,获取主存储服务器231中存储的预设对应关系表,并将预设对应关系表存储在预设存储空间中,比如存储在代理服务器220的磁盘或硬盘中。As shown in Figure 2, in an example, after determining the
本发明实施例中,代理服务器220获取预设对应关系表的方式可以有多种,在一种可能的实现方式中,代理服务器220可以按照预设周期更新预设存储空间中存储的预设对应关系表,比如,代理服务器220可以每5min向主存储服务器231发送一次请求消息,相应地,主存储服务器231接收到请求消息后,可以将预设对应关系表发送给代理服务器220;如此,代理服务器220可以每5min更新一次预设存储空间存储的预设对应关系表。在另一种可能的实现方式中,代理服务器220可以根据主存储服务器231的指示实时更新预设存储空间中存储的预设对应关系表,举例来说,若由于主服务器2411损坏导致主存储服务器231更新了预设对应关系表,则主存储服务器231可以主动将更新后的预设对应关系表发送给代理服务器220;如此,代理服务器220可以使用实时接收到的预设对应关系表更新预设存储空间存储的预设对应关系表。In the embodiment of the present invention, there are many ways for the
具体实施中,代理服务器220若接收到客户端设备211发送的数据请求消息,则可以获取预设存储空间存储的预设对应关系表,进而可以根据客户端设备211的标识查询预设对应关系表,若预设对应关系表中存在客户端设备211对应的目标服务组,则查询的结果可以为查询成功;若预设对应关系表中不存在客户端设备211对应的服务组,则查询的结果可以为查询失败。下面分别从这两种情形描述代理服务器220确定客户端设备对应的主服务器的过程。In a specific implementation, if the
情形一Case 1
在情形一中,预设对应关系表中存在客户端设备对应的目标服务组。In case one, the target service group corresponding to the client device exists in the preset correspondence table.
基于表1所示意的预设对应关系表,若客户端设备为客户端设备211,则代理服务器220可以确定客户端设备211对应的服务组为服务组241。Based on the preset correspondence table shown in Table 1, if the client device is the
情形二Scenario 2
在情形二中,预设对应关系表中不存在客户端设备对应的服务组。In the second situation, the service group corresponding to the client device does not exist in the preset correspondence table.
基于表1所示意的预设对应关系表,若客户端设备为客户端设备214,则代理服务器220可以确定预设对应关系表中不存在客户端设备214对应的服务组;如此,代理服务器220可以根据服务组241~服务器243的性能从服务组241~服务器243中选取目标服务组,并可以将目标服务组中的主服务器作为客户端设备211对应的主服务器。其中,服务组241~服务器243的性能可以是由服务组241~服务器243所包括的服务器的总磁盘容量确定的。Based on the preset correspondence table shown in Table 1, if the client device is the client device 214, the
举例来说,基于表1所示意的预设对应关系表,服务组241包括的服务器2411~服务器2413的可用总空间为1000M,服务组242包括的服务器2421~服务器2423的可用总空间为600M,服务组243包括的服务器2431~服务器2433的可用总空间为1400M;由此可知,服务组241~服务器243的性能由高到低可以为:服务组243>服务组241>服务器242。由于性能最好的服务组为服务组243,因此,代理服务器220可以将服务组243中的主服务器2432作为客户端设备211对应的主服务器。For example, based on the default correspondence table shown in Table 1, the total available space of the servers 2411-2413 included in the
本发明实施例中,通过选取至少一个服务组中当前性能最好的服务组作为新的客户端设备对应的服务组,不仅可以提高对客户端设备的数据进行处理的效率,还可以保证至少一个服务组的负载的均衡性,提高数据处理系统的数据处理能力。In the embodiment of the present invention, by selecting the service group with the best current performance in at least one service group as the service group corresponding to the new client device, it can not only improve the efficiency of processing the data of the client device, but also ensure that at least one The load balance of the service group improves the data processing capability of the data processing system.
步骤303,代理服务器220将数据处理请求发送给目标服务组中的主服务器。Step 303, the
具体实施中,若客户端设备对应的目标服务组为服务组241,由于服务组241中的主服务器为主服务器2411,因此,代理服务器220可以从预设对应关系表中获取主服务器2411的IP地址(即http://2411.com),进而可以根据主服务器2411的IP地址将贷款数据a的标识转发至主服务器2411。具体地说,代理服务器220可以根据代理服务器220的IP地址、主服务器2411的IP地址http://2411.com和贷款数据a的标识生成报文,报文的发送方地址可以为代理服务器220的IP地址,接收方地址可以为http://2411.com,报文的内容可以包括贷款数据a的标识,或者也可以包括其它信息,比如客户端设备211的标识等。In a specific implementation, if the target service group corresponding to the client device is the
步骤304,目标服务组中的主服务器对待处理数据进行处理。Step 304, the main server in the target service group processes the data to be processed.
具体实施中,主服务器2411若接收到数据处理请求,则可以从主服务器2411的磁盘中查询确定贷款数据a所在的位置,并可以将贷款数据a从磁盘中删除。在一个示例中,主服务器2411可以在成功删除贷款数据a后,向代理服务器220发送数据处理成功的响应消息,以使代理服务器220将数据处理成功的响应消息转发给客户端设备211,如此,客户端设备211可以在web界面上将成功删除贷款数据a的信息显示给贷款业务系统的用户。In a specific implementation, if the
在一种可能的实现方式中,主服务器2411在接收到数据处理请求后,将贷款数据a从磁盘中删除之前,还可以对客户端设备211进行鉴权。具体地说,客户端设备211可以预先将第一授权信息发送给主服务器2411,相应地,客户端设备211发送给代理服务器220的数据请求消息中可以包括客户端设备211的第二鉴权信息,从而代理服务器220向主服务器2411发送的报文中也可以包括客户端设备211的第二鉴权信息。如此,主服务器2411在接收到数据处理请求后,可以使用客户端设备211的第一鉴权信息和客户端设备211的第二鉴权信息验证客户端设备211的合法性,若确定客户端设备211合法,则可以将贷款数据a从磁盘中删除,若确定客户端设备211不合法,则可以向代理服务器220发送数据处理失败的响应消息,以使代理服务器220将数据处理失败的响应消息转发给客户端设备211,如此,客户端设备211可以在web界面上将删除贷款数据a失败的信息显示给贷款业务系统的用户。In a possible implementation manner, after receiving the data processing request, the
具体实施中,若客户端设备211的第一鉴权信息和第二鉴权信息为用户名和密码,则在第一鉴权信息与第二鉴权信息相同时主服务器2411可以确定客户端设备211合法,若客户端设备211的第一鉴权信息为私钥,客户端设备211的第二鉴权信息为公钥,则在第一鉴权信息与第二鉴权信息匹配时主服务器2411可以确定客户端设备211合法。需要说明的是,客户端设备211的第一鉴权信息和第二鉴权信息还可以为其它信息,比如条码信息,具体不作限定。In a specific implementation, if the first authentication information and the second authentication information of the
本发明实施例中,通过在对客户端设备的数据进行处理之前对客户端设备进行合法性验证,可以避免对其它客户端设备的数据进行处理,保证不同的客户端设备数据处理的有序性和安全性。In the embodiment of the present invention, by verifying the legality of the client device before processing the data of the client device, it is possible to avoid processing data of other client devices and ensure the orderliness of data processing of different client devices and security.
本发明的上述实施例中,接收第一客户端设备发送的数据请求消息,所述数据请求消息中包括所述第一客户端设备的标识和待处理数据;进一步地,查询预设对应关系表,得到所述第一客户端设备的标识对应的目标服务组,并使用所述目标服务组中的主服务器处理所述待处理数据;所述预设对应关系表中存储有一个或多个客户端设备的标识与所述至少一个服务组的对应关系。本发明实施例中,通过设置至少一个服务组以及每个服务组包括的主服务器和一个或多个从服务器,可以保证每个服务组中的主服务器是实时存在的(比如若当前时刻某一服务组的主服务器损坏,则可以为该服务组分配新的主服务器),从而可以使得至少一个服务组处于时刻可用的状态;如此,通过为第一客户端设备分配对应的服务组,可以通过第一客户端设备对应的服务组中的主服务器执行与第一客户端设备相关的数据处理过程,保证数据处理过程的高可用性;且,通过设置预设对应关系表,使得基于预设对应关系表即可确定处理待处理数据的主服务器,而无需再对服务组中的每个服务器进行分析,从而可以提高数据处理的效率。In the above embodiments of the present invention, the data request message sent by the first client device is received, and the data request message includes the identification of the first client device and the data to be processed; further, querying the preset correspondence table , obtain the target service group corresponding to the identifier of the first client device, and use the main server in the target service group to process the data to be processed; one or more clients are stored in the preset correspondence table The corresponding relationship between the identifier of the end device and the at least one service group. In the embodiment of the present invention, by setting at least one service group and the master server and one or more slave servers included in each service group, it can be ensured that the master server in each service group exists in real time (for example, if a certain If the primary server of the service group is damaged, a new primary server can be assigned to the service group), so that at least one service group can be in a state available at all times; thus, by assigning the corresponding service group to the first client device, it can pass The main server in the service group corresponding to the first client device executes the data processing process related to the first client device to ensure the high availability of the data processing process; and, by setting the preset correspondence table, based on the preset correspondence relationship Tables can determine the main server that processes the data to be processed, instead of analyzing each server in the service group, so that the efficiency of data processing can be improved.
针对上述方法流程,本发明实施例还提供一种数据处理装置,该装置的具体内容可以参照上述方法实施。With regard to the above-mentioned method flow, the embodiment of the present invention also provides a data processing device, and the specific content of the device can be implemented with reference to the above-mentioned method.
图4为本发明实施例提供的一种数据处理装置的结构示意图,所述装置应用于数据处理系统,所述数据处理系统包括至少一个服务组,所述至少一个服务组中的每个服务组包括主服务器以及一个或多个从服务器;所述装置包括:Fig. 4 is a schematic structural diagram of a data processing device provided by an embodiment of the present invention, the device is applied to a data processing system, the data processing system includes at least one service group, and each service group in the at least one service group including a master server and one or more slave servers; the apparatus includes:
收发模块401,用于接收第一客户端设备发送的数据请求消息,所述数据请求消息中包括所述第一客户端设备的标识和待处理数据;A
查询模块402,用于查询预设对应关系表,得到所述第一客户端设备的标识对应的目标服务组;所述预设对应关系表中存储有一个或多个客户端设备的标识与所述至少一个服务组的对应关系;The
处理模块403,用于使用所述目标服务组中的主服务器处理所述待处理数据。The
可选地,所述处理模块403还用于:Optionally, the
若所述目标服务组中的主服务器发生故障,则从所述目标服务组中的一个或多个从服务器中选取第一从服务器,并使用所述第一从服务器处理所述待处理数据。If the master server in the target service group fails, select a first slave server from one or more slave servers in the target service group, and use the first slave server to process the data to be processed.
可选地,所述预设对应关系表还包括每个服务组中的主服务器的IP地址;Optionally, the preset correspondence table also includes the IP address of the main server in each service group;
所述处理模块403具体用于:根据所述预设对应关系表包括的所述目标服务组中的主服务器的IP地址,将所述待处理数据发送给所述目标服务组中的主服务器,以使所述目标服务组中的主服务器处理所述待处理数据。The
可选地,所述装置处理模块403还用于:Optionally, the
若所述预设对应关系表中不存在与所述第一客户端设备的标识对应的服务组,则根据所述至少一个服务组的性能从所述至少一个服务组中选取第一服务组,并使用所述第一服务组中的主服务器处理所述待处理数据;所述至少一个服务组中每个服务组的性能是由所述每个服务组中的主服务器和一个或多个从服务器的磁盘容量确定的。If there is no service group corresponding to the identifier of the first client device in the preset correspondence table, selecting a first service group from the at least one service group according to the performance of the at least one service group, And use the master server in the first service group to process the data to be processed; the performance of each service group in the at least one service group is determined by the master server in each service group and one or more slaves The disk capacity of the server is determined.
可选地,所述处理模块403还用于:Optionally, the
在所述预设对应关系表中生成所述第一客户端设备的标识与所述第一服务组的对应关系。Generate a correspondence between the identifier of the first client device and the first service group in the preset correspondence table.
可选地,所述处理模块403还用于:Optionally, the
确定所述第一客户端设备合法。It is determined that the first client device is legitimate.
从上述内容可以看出:本发明的上述实施例中,接收第一客户端设备发送的数据请求消息,所述数据请求消息中包括所述第一客户端设备的标识和待处理数据;进一步地,查询预设对应关系表,得到所述第一客户端设备的标识对应的目标服务组,并使用所述目标服务组中的主服务器处理所述待处理数据;所述预设对应关系表中存储有一个或多个客户端设备的标识与所述至少一个服务组的对应关系。本发明实施例中,通过设置至少一个服务组以及每个服务组包括的主服务器和一个或多个从服务器,可以保证每个服务组中的主服务器是实时存在的(比如若当前时刻某一服务组的主服务器损坏,则可以为该服务组分配新的主服务器),从而可以使得至少一个服务组处于时刻可用的状态;如此,通过为第一客户端设备分配对应的服务组,可以通过第一客户端设备对应的服务组中的主服务器执行与第一客户端设备相关的数据处理过程,保证数据处理过程的高可用性;且,通过设置预设对应关系表,使得基于预设对应关系表即可确定处理待处理数据的主服务器,而无需再对服务组中的每个服务器进行分析,从而可以提高数据处理的效率。It can be seen from the foregoing that in the above embodiments of the present invention, the data request message sent by the first client device is received, and the data request message includes the identifier of the first client device and the data to be processed; further , querying the preset correspondence table, obtaining the target service group corresponding to the identifier of the first client device, and using the master server in the target service group to process the data to be processed; in the preset correspondence table A correspondence relationship between one or more identifiers of client devices and the at least one service group is stored. In the embodiment of the present invention, by setting at least one service group and the master server and one or more slave servers included in each service group, it can be ensured that the master server in each service group exists in real time (for example, if a certain If the primary server of the service group is damaged, a new primary server can be assigned to the service group), so that at least one service group can be in a state available at all times; thus, by assigning the corresponding service group to the first client device, it can pass The main server in the service group corresponding to the first client device executes the data processing process related to the first client device to ensure the high availability of the data processing process; and, by setting the preset correspondence table, based on the preset correspondence relationship Tables can determine the main server that processes the data to be processed, instead of analyzing each server in the service group, so that the efficiency of data processing can be improved.
基于同一发明构思,本发明实施例还提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如图3任意所述的数据处理方法。Based on the same inventive concept, an embodiment of the present invention also provides a computer-readable storage medium, including instructions, which, when run on a computer, cause the computer to execute the data processing method as described in FIG. 3 .
基于同一发明构思,本发明实施例还提供一种计算机程序产品,当其在计算机上运行时,使得计算机执行如图3任意所述的数据处理方法。Based on the same inventive concept, an embodiment of the present invention further provides a computer program product, which, when run on a computer, causes the computer to execute the data processing method as described in any of FIG. 3 .
本领域内的技术人员应明白,本发明的实施例可提供为方法、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (14)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910542091.4A CN110289999B (en) | 2019-06-21 | 2019-06-21 | A data processing method, system and device |
PCT/CN2020/095935 WO2020253634A1 (en) | 2019-06-21 | 2020-06-12 | Data processing method, system and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910542091.4A CN110289999B (en) | 2019-06-21 | 2019-06-21 | A data processing method, system and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110289999A CN110289999A (en) | 2019-09-27 |
CN110289999B true CN110289999B (en) | 2023-02-21 |
Family
ID=68004789
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910542091.4A Active CN110289999B (en) | 2019-06-21 | 2019-06-21 | A data processing method, system and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110289999B (en) |
WO (1) | WO2020253634A1 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110289999B (en) * | 2019-06-21 | 2023-02-21 | 深圳前海微众银行股份有限公司 | A data processing method, system and device |
CN111371873B (en) * | 2020-02-26 | 2023-04-21 | 厦门网宿有限公司 | Web service election method, device and server |
CN112799849B (en) * | 2021-02-18 | 2024-03-19 | 腾讯科技(深圳)有限公司 | Data processing method, device, equipment and storage medium |
CN112818064A (en) * | 2021-02-25 | 2021-05-18 | 平安普惠企业管理有限公司 | Multi-system data synchronization method, device, equipment and storage medium |
CN113467891B (en) * | 2021-07-12 | 2022-03-15 | 腾讯科技(深圳)有限公司 | Service processing method, device and storage medium |
CN114721869A (en) * | 2022-03-18 | 2022-07-08 | 北京汇元网科技股份有限公司 | Method and system for processing account balance |
CN116032929B (en) * | 2023-03-30 | 2023-06-23 | 阿里巴巴(中国)有限公司 | Data processing system, method and equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106713499A (en) * | 2017-01-23 | 2017-05-24 | 天地融科技股份有限公司 | Load balancing method, equipment and system |
CN106713506A (en) * | 2017-02-22 | 2017-05-24 | 郑州云海信息技术有限公司 | Data acquisition method and data acquisition system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7711820B2 (en) * | 2004-11-08 | 2010-05-04 | Cisco Technology, Inc. | High availability for intelligent applications in storage networks |
US9742676B2 (en) * | 2012-06-06 | 2017-08-22 | International Business Machines Corporation | Highly available servers |
EP2875676B1 (en) * | 2012-07-20 | 2018-09-12 | Nec Corporation | Dynamic activation of andsf policies |
CN103491104B (en) * | 2013-10-09 | 2016-08-17 | 廖洪銮 | A kind of exchange method based on non-real-time media information and system |
CN110289999B (en) * | 2019-06-21 | 2023-02-21 | 深圳前海微众银行股份有限公司 | A data processing method, system and device |
-
2019
- 2019-06-21 CN CN201910542091.4A patent/CN110289999B/en active Active
-
2020
- 2020-06-12 WO PCT/CN2020/095935 patent/WO2020253634A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106713499A (en) * | 2017-01-23 | 2017-05-24 | 天地融科技股份有限公司 | Load balancing method, equipment and system |
CN106713506A (en) * | 2017-02-22 | 2017-05-24 | 郑州云海信息技术有限公司 | Data acquisition method and data acquisition system |
Also Published As
Publication number | Publication date |
---|---|
CN110289999A (en) | 2019-09-27 |
WO2020253634A1 (en) | 2020-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110289999B (en) | A data processing method, system and device | |
CN110032571B (en) | Business process processing method and device, storage medium and computing equipment | |
CN111989705B (en) | Priority in licensed blockchain | |
US20230224273A1 (en) | Network containers | |
EP2156308B1 (en) | Extensible and programmable multi-tenant service architecture | |
CA2964461C (en) | Composite partition functions | |
CN112702402A (en) | System, method, device, processor and storage medium for realizing government affair information resource sharing and exchange based on block chain technology | |
CN107465767A (en) | A kind of method and system of data syn-chronization | |
CN115769547A (en) | Database synchronization system in high security area using blockchain | |
KR102262093B1 (en) | Gateway apparatus, and control method thereof | |
CN111460474B (en) | Method, device, memory and computer for implementing decentralization predictor | |
JP2017513151A (en) | Private cloud connection device cluster architecture | |
US9930063B2 (en) | Random identifier generation for offline database | |
EP3442201B1 (en) | Cloud platform construction method and cloud platform | |
US9264339B2 (en) | Hosted network management | |
US9596063B2 (en) | Dynamically allocating network resources for communication session | |
WO2023045617A1 (en) | Transaction data processing method and apparatus, device and medium | |
CN109669955A (en) | A kind of digital asset inquiry system and method based on block chain | |
KR20250139331A (en) | Data processing methods, devices, equipment, and storage media based on blockchain keys | |
WO2019059979A1 (en) | Geographic location based computing asset provisioning in distributed computing systems | |
CN112200680B (en) | Blockchain node management method, device, computer and readable storage medium | |
WO2020091980A1 (en) | Securely sharing files with user devices based on location | |
US9760412B2 (en) | Client server communication system | |
CN108076092A (en) | Web server resources balance method and device | |
CN114202329A (en) | Service processing method, device, node device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |