WO2020253634A1 - Data processing method, system and device - Google Patents

Data processing method, system and device Download PDF

Info

Publication number
WO2020253634A1
WO2020253634A1 PCT/CN2020/095935 CN2020095935W WO2020253634A1 WO 2020253634 A1 WO2020253634 A1 WO 2020253634A1 CN 2020095935 W CN2020095935 W CN 2020095935W WO 2020253634 A1 WO2020253634 A1 WO 2020253634A1
Authority
WO
WIPO (PCT)
Prior art keywords
service group
server
data
client device
correspondence table
Prior art date
Application number
PCT/CN2020/095935
Other languages
French (fr)
Chinese (zh)
Inventor
王顺云
Original Assignee
深圳前海微众银行股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳前海微众银行股份有限公司 filed Critical 深圳前海微众银行股份有限公司
Publication of WO2020253634A1 publication Critical patent/WO2020253634A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management 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

Definitions

  • the present invention relates to the technical field of financial technology (Fintech), and in particular to a data processing method, system and device.
  • a dedicated server 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.
  • the dedicated server corresponding to the loan business system can be the 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.) Data is processed.
  • each business system corresponds to a dedicated server. If the resources on a dedicated server are damaged, it usually requires professionals 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 use of the above implementation may cause the data processing process of the business system to be blocked, and thus cannot achieve high data processing availability.
  • the embodiments of the present invention provide a data processing method, system, and device to solve the technical problem of low data processing availability caused by using a dedicated server corresponding to each business system to process data.
  • an embodiment of the present invention provides a data processing method, which 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:
  • the master server in each service group exists in real time (for example, if a service at the current moment If the main server of the group is damaged, a new main server can be assigned to the service group), so that at least one service group can be available at all times; in this way, by assigning the corresponding service group to the first client device, the first client device can be The main server in the service group corresponding to a client device executes the data processing process related to the first client device to ensure high availability of the data processing process.
  • the first slave server is selected from one or more slave servers in the target service group, and the first slave server is used.
  • the server processes the to-be-processed data.
  • a new main server can be selected from other servers included in the service group, so that the new main server can be used to process the data to be processed.
  • a new main server is automatically selected, which eliminates the need for manual maintenance, which is simple to operate, easy to implement, and can reduce maintenance costs; on the other hand, by using the new main server to process the pending data, users do not need to input data again
  • the data processing result can be obtained by requesting the message, so that the user experience is better.
  • the preset correspondence table further includes the IP address of the main server in each service group; the using the main server in the target service group to process the data to be processed includes: According to the IP address of the main server in the target service group included in the preset correspondence table, the data to be processed is sent to the main server in the target service group, so that the The main server processes the data to be processed.
  • the IP address of the client device, the service group, and the IP address of the main server in the service group are added to the preset correspondence table, so that querying the preset correspondence table can determine the host that processes the data to be processed. Servers without having to analyze each server in each service group, which can improve the efficiency of data processing.
  • the service group corresponding to the identifier of the first client device does not exist in the preset correspondence table, then according to the performance of the at least one service group from the at least one service group
  • the first service group is selected from the group, and the main server in the first service group is used to process the data to be processed; the performance of each service group in the at least one service group is determined by the performance of each service group in the at least one service group Determined by the disk capacity of the master server and one or more slave servers.
  • the service group with the best current performance in at least one service group as the service group corresponding to the new client device, not only can the efficiency of processing the data of the client device be improved, but also at least one service can be guaranteed
  • the load balance of the group improves the data processing capacity of the data processing system.
  • the first service group may be generated in the preset correspondence table. The corresponding relationship between the identifier of the client device and the first service group.
  • the corresponding relationship 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. Furthermore, the accuracy of data processing based on the preset correspondence table is improved.
  • the main server in the target service group before using the main server in the target service group to process the to-be-processed data, it may also be determined that the first client device is legal.
  • the data processing system 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 host 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 identification of the client device and the 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 to-be-processed data For the main server in the target service group; the preset correspondence table stores the correspondence between the identification 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.
  • 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 device includes:
  • a transceiver module configured to receive a data request message sent by a first client device, where the data request message includes the identifier of the first client device and the data to be processed;
  • the query module is configured to query a preset correspondence table to obtain the 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 Correspondence of at least one service group;
  • the processing module is configured to use the main server in the target service group to process the data to be processed.
  • a computer-readable storage medium provided by an embodiment of the present invention includes instructions, which when run on a computer, cause the computer to execute the method described in any of the first aspect.
  • a computer program product provided by an embodiment of the present invention, when it runs on a computer, causes the computer to execute the method described in any of the first aspect.
  • an embodiment of the present invention provides a computer device, including:
  • At least one memory for storing program instructions
  • At least one processor is configured to call program instructions stored in the memory, and execute any method as described in the first aspect according to the obtained program.
  • FIG. 1 is a schematic structural diagram corresponding to a data processing method provided by an embodiment of the present invention
  • FIG. 2 is a schematic diagram of the architecture of a data processing system provided by an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart corresponding to a data processing method provided by an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a data processing device provided by an embodiment of the present invention.
  • Fig. 5 is a schematic structural diagram of a computer device provided by an embodiment of the present invention.
  • Fintech refers to a new innovative technology brought to the financial field after the integration of information technology into the financial field.
  • the financial system can be improved by using advanced information technology to assist in financial operations, transaction execution and financial system improvements. Processing efficiency, business scale, and can reduce costs and financial risks.
  • the field of financial technology usually involves a large amount of data, such as loan data of the credit business system, card sales data of the sales business system, transfer data of the payment business system, etc. How to use technology to mine a large amount of data It has always been the goal pursued by the financial technology field to extract the characteristics required by the financial field.
  • multiple dedicated servers can be set up 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 processing the data in the business system.
  • Figure 1 is a schematic diagram of the system architecture corresponding to this implementation method.
  • the system can be provided with a client device 110, a load balancing server 120, and a dedicated server.
  • Network Attached Storage, NAS Network Attached Storage
  • the load balancing server 120 can be connected to the client device 110, the dedicated server 131, and the dedicated server 132 respectively, and the NAS server 140 can be connected to the dedicated server 131 and the dedicated server 132 respectively; there can be many ways to realize the connection, for example, through The connection is realized in a wired manner, or the connection may also be realized in a wireless manner, which is not specifically limited.
  • the NAS server 140 may be composed of multiple hard disks, and the NAS server 140 may store multiple data related to the client device 110, such as text data, audio data, and video data.
  • the dedicated server 131 and/or the dedicated server 132 may store the identity information of the client device 110, where the identity information of the client device 110 may include the user name of the client device 100, the password corresponding to the user name, etc.
  • the dedicated server 131 and/or the dedicated server 132 can access the NAS server 140 through the identity information of the client device 110, so as to realize the processing of the data of the client device 110.
  • the dedicated server 131 and the dedicated server 132 may share the identity information of the client device 110 by transmitting data streams.
  • the dedicated server 131 and the dedicated server 132 may be respectively provided with a synchronization tool (such as a sersync tool), if the dedicated server 131 detects that the identity information of the client device 110 at a certain moment is updated from the first identity information to the second identity Information, the difference data in the second identity information that is different from the first identity information can be transmitted to the dedicated server 132 through the sersync tool; in this way, the dedicated server 132 can update the internally stored identity of the client device 110 according to the received difference data Information, so as to realize the data sharing process between the dedicated server 131 and the dedicated server 132.
  • a synchronization tool such as a sersync tool
  • the client device 110 may generate a data request message according to the user's trigger instruction, and then send the data request message to the load balancing server 120; accordingly, the load balancing server 120 may receive the data processing request according to the dedicated server 131 And the load situation of the dedicated server 132 (such as memory and/or hard disk occupancy rate, number of CPU cores, etc.).
  • a target dedicated server such as dedicated server 132
  • the data processing request is sent to the dedicated server 132; in some cases, if the dedicated server 132 fails, the load balancing server 120 can send the data processing request to the dedicated server 131; further, if the data processing request is to modify file a,
  • the dedicated server 132 (or dedicated server 131) can verify the identity of the client device 110 in advance. If it is determined that the identity of the client device 110 is legal, it can obtain the NAS that matches the client device 100. File a in the server 140, and modify the file a.
  • a NAS server 140 in addition to multiple dedicated servers, it is also necessary to set up a NAS server 140 independent of multiple dedicated servers, although this implementation can be used when a dedicated server fails.
  • Other dedicated servers process data, but if the NAS server 140 fails (such as a certain hard disk that constitutes the NAS server 140 is damaged, network failure, insufficient memory, etc.), any dedicated server cannot process the data, resulting in data Processing is not available; that is, the above implementation process still cannot achieve high data availability.
  • the process of synchronizing data streams between the dedicated server 131 and the dedicated server 132 uses the same network as the process of processing data based on the NAS server 140, which causes the process of synchronizing data streams to occupy a large network space, which may cause the data processing process The network in is blocked, and the efficiency of data processing is low.
  • the dedicated server 131 and the dedicated server 132 access the same NAS device, which results in the inability to dynamically allocate data corresponding to different dedicated servers according to actual business scenarios, resulting in poor scalability of data processing.
  • the embodiments of the present invention provide a data processing system to achieve high availability of data processing, improve the efficiency and scalability of data processing, and reduce costs.
  • the system may include one or more client devices (such as the client device 211 and the client device shown in FIG. 212 and client device 213), proxy server 220, storage server group 230, and at least one service group (for example, service group 241, service group 242, and service group 243 as shown in FIG. 2).
  • client devices such as the client device 211 and the client device shown in FIG. 212 and client device 213
  • proxy server 220 can be connected to at least one client device, the storage server group 230, and at least one service group respectively.
  • Each service group of the at least one service group can be connected to the storage server group 230, and the connection can be realized by wired connection. , Or it can be a wireless connection, which is not specifically limited.
  • multiple servers may be set in each service group, and any two servers among the multiple servers may realize data sharing, for example, data sharing may be realized through the RAFT protocol.
  • the service group 241 can be provided with servers 2411 to 2413. Accordingly, the service group 241 can select a master server from the servers 2411 to 2413 in various ways, for example, according to the RAFT protocol.
  • the main server is selected from the servers 2411 to 2413, or the main server can be set by a person skilled in the art based on experience, which is not specifically limited.
  • the service group 241 may select the server with the best performance (such as the server 2411) from the servers 2411 to 2413 as the master server.
  • the server 1412 and the server 2413 may serve as two slave servers managed by the master server 2411.
  • the performance of the server can be determined by any one or more of the available capacity of the disk in the server, the amount of memory occupied, the number of cores of the central processing unit (CPU), and the network traffic, which is not specifically limited. .
  • 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 explaining the solution, and does not constitute a limitation on the solution.
  • the number of servers in the service group can be greater than 3, for example, it can be 5 or more.
  • the number of servers in each service group may be set to an odd number.
  • one or more storage servers may also be provided in the storage server cluster 230, such as storage server 231 to storage server 233, and any two storage servers among storage server 231 to storage server 233 can be implemented. data sharing.
  • the storage server cluster 230 can also select a primary storage server (such as the storage server 231) from the storage server 231 to the storage server 233 in the above manner. In this way, the storage server 232 and the storage server 233 can be managed by the primary storage server 231 The two slave storage servers.
  • any service group in the service group 241 to the service group 243 determines the master server
  • the identification of the client device corresponding to the service group, the information of the master server, and the information of the slave server can be reported to the master storage server 231 .
  • the master server 2411 may assign the identification of the service group 241 to which it belongs and the identification of the client device corresponding to the service group 241 ,
  • the currently available disk capacity, Internet Protocol Address (IP), port number, server number and other information are sent to the main storage server 231, and the slave server 2412 and the slave server 2413 can respectively send the information of the service group 241 to which they belong
  • IP Internet Protocol Address
  • the primary storage server 231 can establish a preset correspondence table according to the identification of the client device corresponding to the service group 241 to the service group 243, the information of the primary server, and the information of the secondary server, and can pass the preset correspondence table through the RAFT protocol Shared to the slave storage server 232 and the slave storage server 233, therefore, the master storage server 231, the slave storage server 232, and the slave storage server 233 may respectively store the same preset correspondence table.
  • Table 1 is a schematic table of a preset correspondence table provided by an embodiment of the present invention.
  • Table 1 Schematic of a preset correspondence table
  • the preset correspondence table can include the identification of each service group, the identification of the client device corresponding to each service group, the identification of the master server and the slave server included in each service group, and the available disks. Information such as capacity and IP address of the main server.
  • the client device corresponding to the service group 241 may be the client device 212
  • the master server in the service group 241 may be the master server 2411
  • the slave server may be the slave server 2412 And the slave server 2413
  • the disk capacity available in the master server 2411 is 500M
  • the disk capacity available in the slave server 2412 is 300M
  • the disk capacity available in the slave server 2413 is 200M
  • the IP address of the master server 2411 can be http:// 2411.com.
  • the service group 241 Take the service group 241 as an example.
  • the service group 241 can re-elect a new master server (such as the server 2413) from the slave server 2412 and the slave server 2413 according to the RAFT protocol.
  • the new main server 2413 can report its IP address and the failure information of the old main server 2411 to the main storage server 231.
  • the main storage server 231 can report the IP address of the new main server 2413 and the main server 2411's
  • the fault information updates the preset correspondence table.
  • the main storage server 231 may mark the new main server 2412 as the main server 2412, and may mark the state of the old main server 2411 as an unavailable state, and then generate and push the alarm corresponding to the old main server 2411 Information to operation and maintenance personnel.
  • the master storage server 231 can mark the new master server 2412 as the master server 2412, and can mark the old master server 2411 as the slave server 2411.
  • the method shown in Table 1 can be The preset correspondence table is updated as shown in Table 2.
  • Table 2 An illustration of an updated preset correspondence table
  • the primary storage server 231 may also share the updated preset correspondence table to the secondary storage server 232 and the secondary storage server 233 through the RAFT protocol, so that the primary storage server 231,
  • the slave storage server 232 and the slave storage server 233 may respectively store the same preset correspondence table.
  • the service group can elect a new main server from other servers.
  • the new main server can be used to process the data request message of the client device;
  • the main server can be automatically selected by the service group to automatically recover from failures, thereby making the data processing process highly available.
  • Fig. 3 is a schematic flow diagram corresponding to the data processing method provided by an embodiment of the present invention, and the method includes:
  • Step 301 The first client device sends a data request message to the proxy server.
  • the client devices 211 to 213 may be client devices corresponding to different business systems.
  • the client device 211 is a client device corresponding to a loan business system
  • the client device 212 is an insurance business system.
  • the corresponding client device, client device 213 is the client device corresponding to the sales business system; in this way, the loan business system can process the loan data generated during the execution of the loan business system through the client device 211, and insurance business
  • the system can process insurance data generated during the execution of the business by the insurance business system through the client device 212
  • the sales business system can process the sales data generated during the execution of the business by the sales business system through the client device 213.
  • a (World Wide Web, web) browser may be provided in the client device 211, and the user in the loan business system may obtain the resource management interface by entering a preset link in the web browser; among them, the resource management interface
  • the client device 211 if the client device 211 detects that the user triggers the "resource deletion" function icon, it can prompt the user to enter the identification of the resource to be deleted in the resource management interface, and then when it detects that the user has entered the loan data a After the identification, a data request message is generated according to the identification of the loan data a, and the data request message may include the identification of the client device 211 and the identification of the loan data a.
  • the client device 211 may send the data request message to the proxy server 200, wherein there may be multiple ways to send the data request message to the proxy server 200, for example, the data request message may be sent through wired devices such as optical fiber and network cable. Or, the data request message can be sent through wireless devices such as sound wave or Bluetooth, which is not specifically limited.
  • Step 302 The proxy server queries a preset correspondence table, and determines a target service group corresponding to the first client device.
  • the information (such as the IP address) of the primary storage server 231 can be sent to the proxy server 220; in this way, the proxy server 220 can communicate with the main storage server 231 according to the IP address of the main storage server 231, obtain the preset correspondence table stored in the main storage server 231, and store the preset correspondence table in the preset storage In the space, for example, stored in the disk or hard disk of the proxy server 220.
  • the proxy server 220 may obtain the preset correspondence table in multiple ways.
  • the proxy server 220 may update the preset correspondence stored in the preset storage space according to a preset period.
  • the relationship table for example, the proxy server 220 may send a request message to the main storage server 231 every 5 minutes. Accordingly, after receiving the request message, the main storage server 231 may send the preset correspondence table to the proxy server 220; The server 220 may update the preset correspondence table stored in the preset storage space every 5 minutes.
  • the proxy server 220 may update the preset correspondence table stored in the preset storage space in real time according to the instructions of the main storage server 231.
  • the main storage server 231 updates the preset correspondence table, then the main storage server 231 can actively send the updated preset correspondence table to the proxy server 220; in this way, the proxy server 220 can use the preset correspondence table received in real time to update the preset The preset correspondence table stored in the storage space.
  • the proxy server 220 if it receives the data request message sent by the client device 211, it can obtain the preset correspondence table stored in the preset storage space, and then can query the preset correspondence table according to the identifier of the client device 211 If there is a target service group corresponding to the client device 211 in the preset correspondence table, the result of the query may be that the query is successful; if the service group corresponding to the client device 211 does not exist in the preset correspondence table, the result of the query It can be that the query failed.
  • the following describes the process of the proxy server 220 determining the main server corresponding to the client device from these two scenarios.
  • scenario 1 the target service group corresponding to the client device exists in the preset correspondence table.
  • the proxy server 220 may determine that the service group corresponding to the client device 211 is the service group 241.
  • the proxy server 220 may determine that the service group corresponding to the client device 214 does not exist in the preset correspondence table; thus, the proxy server 220
  • the target service group can be selected from the service group 241-server 243 according to the performance of the service group 241-server 243, and the main server in the target service group can be used as the main server corresponding to the client device 211.
  • the performance of the service group 241 to the server 243 may be determined by the total disk capacity of the servers included in the service group 241 to the server 243.
  • the proxy server 220 may use the main server 2432 in the service group 243 as the main server corresponding to the client device 211.
  • the service group with the best current performance in at least one service group as the service group corresponding to the new client device not only can the efficiency of processing the data of the client device be improved, but also at least one The load balance of the service group improves the data processing capacity of the data processing system.
  • step 303 the proxy server 220 sends the data processing request to the main server in the target service group.
  • the proxy server 220 can obtain the IP of the main server 2411 from the preset correspondence table Address (ie http://2411.com), and then the identification of the loan data a can be forwarded to the main server 2411 according to the IP address of the main server 2411.
  • the preset correspondence table Address ie http://2411.com
  • the proxy server 220 may generate a message according to the IP address of the proxy server 220, the IP address http://2411.com of the main server 2411, and the identifier of the loan data a, and the sender address of the message may be the proxy server 220
  • the IP address of the recipient may be http://2411.com
  • the content of the message may include the identifier of the loan data a, or may also include other information, such as the identifier of the client device 211.
  • Step 304 The main server in the target service group processes the data to be processed.
  • the main server 2411 can query the disk of the main server 2411 to determine the location of the loan data a, and can delete the loan data a from the disk.
  • the main server 2411 may send a response message of successful data processing to the proxy server 220 after successfully deleting the loan data a, so that the proxy server 220 forwards the response message of successful data processing to the client device 211.
  • the client device 211 may display the information that the loan data a is successfully deleted to the user of the loan business system on the web interface.
  • the main server 2411 may also authenticate the client device 211 before deleting the loan data a from the disk.
  • the client device 211 may send the first authorization information to the main server 2411 in advance, and accordingly, the data request message sent by the client device 211 to the proxy server 220 may include the second authentication information of the client device 211 Therefore, the message sent by the proxy server 220 to the main server 2411 may also include the second authentication information of the client device 211.
  • the main server 2411 after the main server 2411 receives the data processing request, it can use the first authentication information of the client device 211 and the second authentication information of the client device 211 to verify the legitimacy of the client device 211.
  • the loan data a can be deleted from the disk. If it is determined that the client device 211 is illegal, it can send a data processing failure response message to the proxy server 220 so that the proxy server 220 can forward the data processing failure response message To the client device 211, in this way, the client device 211 can display the failure to delete the loan data a to the user of the loan business system on the web interface.
  • the main server 2411 can determine that the client device 211 is the same as the second authentication information. Legal. If the first authentication information of the client device 211 is a private key and the second authentication information of the client device 211 is a public key, then the main server 2411 can be used when the first authentication information matches the second authentication information It is determined that the client device 211 is legitimate. It should be noted that the first authentication information and the second authentication information of the client device 211 may also be other information, such as barcode information, which is not specifically limited.
  • a data request message sent by a 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, query a 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 to-be-processed data; the preset correspondence table stores one or more clients The corresponding relationship between the identifier of the terminal device and the at least one service group.
  • the master server in each service group exists in real time (for example, if the current If the main server of the service group is damaged, a new main server can be assigned to the service group, so that at least one service group can be available at all times; in this way, by assigning the corresponding service group to the first client device, 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 high availability of the data processing process; and, by setting a preset correspondence table, it is based on the preset correspondence The table can determine the main server that processes the data to be processed, and there is no need to analyze each server in the service group, which can improve the efficiency of data processing.
  • an 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 foregoing method.
  • 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 It includes a master server and one or more slave servers; the device includes:
  • the transceiver module 401 is configured to receive a data request message sent by a first client device, where the data request message includes the identification of the first client device and the data to be processed;
  • the query module 402 is configured to query a preset correspondence table to obtain the target service group corresponding to the identifier of the first client device; the preset correspondence table stores one or more client device identities and all State the correspondence of at least one service group;
  • the processing module 403 is configured to use the main server in the target service group to process the data to be processed.
  • processing module 403 is further configured to:
  • a first slave server is selected from one or more slave servers in the target service group, and the first slave server is used to process the data to be processed.
  • the preset correspondence table further includes the IP address of the main server in each service group;
  • the processing module 403 is specifically configured to: according to the IP address of the main server in the target service group included in the preset correspondence table, send the to-be-processed data to the main server in the target service group, So that the main server in the target service group processes the to-be-processed data.
  • the device processing module 403 is further configured to:
  • the performance of each service group in the at least one service group is determined by the master server and one or more slave servers in the at least one service group The disk capacity of the server is determined.
  • processing module 403 is further configured to:
  • the corresponding relationship between the identifier of the first client device and the first service group is generated in the preset correspondence table.
  • processing module 403 is further configured to:
  • an embodiment of the present invention also provides a computer device for executing a method of a data processing system in any embodiment of the present invention, and may include a memory 1001 and a processor 1002.
  • the memory 1001 is used to store a computer program executed by the processor 1002.
  • the memory 1001 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required for at least one function, and the like; the data storage area may store data created according to the use of a computer device.
  • the processor 1002 may be a central processing unit (central processing unit, CPU), or a digital processing unit or the like.
  • the embodiment of the present invention does not limit the specific connection medium between the foregoing memory 1001 and the processor 1002.
  • the memory 1001 and the processor 1002 are connected through a bus 1003, and the bus 1003 is represented by a thick line in FIG. Limited.
  • the bus 1003 can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 5 to represent, but it does not mean that there is only one bus or one type of bus.
  • the memory 1001 may be a volatile memory (volatile memory), such as a random-access memory (random-access memory, RAM); the memory 1001 may also be a non-volatile memory (non-volatile memory), such as a read-only memory, flash memory Flash memory, hard disk drive (HDD) or solid-state drive (SSD), or memory 1001 can be used to carry or store desired program codes in the form of instructions or data structures and can be used by Any other medium accessed by the computer, but not limited to this.
  • the memory 1001 may be a combination of the above-mentioned memories.
  • the processor 1002 is configured to execute the blockchain-based data verification method provided by the embodiment of the present invention when calling the computer program stored in the memory 1001.
  • An embodiment of the present invention also provides a computer storage medium that stores computer executable instructions required to execute the foregoing processor, and contains a program used to execute the foregoing processor.
  • the embodiments of the present invention may be provided as methods or computer program products. Therefore, the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.

Abstract

The embodiments of the present invention disclose a data processing method, system and device, relating to the field of financial technology (Fintech). Said method comprises: after receiving an identifier of a first client device and data to be processed which are sent by the first client device, querying a preset correlation table to obtain a target service group corresponding to the identifier of the first client device, and using a master server in the target service group to process the data to be processed. In the embodiments of the present invention, by providing at least one service group and a master server and a slave server included in each service group, the master server in each service group can exist in real time, i.e. at least one service group can be in an available state at all times. In this way, by executing a data processing process related to the first client device using the master server in the service group corresponding to the first client device, high availability for processing data of the client device can be ensured.

Description

一种数据处理方法、系统及装置Data processing method, system and device
相关申请的交叉引用Cross references to related applications
本申请要求在2019年06月21日提交中国专利局、申请号为201910542091.4、申请名称为“一种数据处理方法、系统及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 201910542091.4, and the application name is "a data processing method, system and device" on June 21, 2019, the entire content of which is incorporated herein by reference Applying.
技术领域Technical field
本发明涉及金融科技(Fintech)技术领域,尤其涉及一种数据处理方法、系统及装置。The present invention relates to the technical field of financial technology (Fintech), and 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. The traditional financial industry is gradually transforming to Fintech. However, due to the security and real-time requirements of the financial industry, Fintech has also proposed technology higher requirement. The financial technology field generates a large amount of data every day, such as loan business system and customer loan data, insurance business system and customer marketing data, management business system liquidation data, etc.; different business systems correspond to different data, resulting in Different business systems have different requirements for data processing. Therefore, how to process the data of different business systems is very important for the normal development of the financial technology field.
在一种现有的实现方式中,金融科技领域中可以设置每个业务系统对应的专属服务器,从而可以使用多个专属服务器分别处理不同业务系统的数据。举例来说,贷款业务系统对应的专属服务器可以为贷款服务器,若贷款服务器接收到贷款业务系统发送的数据,则可以使用贷款服务器中的资源(比如硬盘、磁盘、中央处理器、网络等)对数据进行处理。然而,在该种实现方式中,每个业务系统对应一个专属服务器,若某一专属服务器上的资源损坏,通常需要专业人员对该专属服务器进行维护(比如维修该专属服务器,或者设置新的专属服务器)。如此,业务系统则需要等待维护过程完成方可继续执行数据处理过程,由此可知,采用上述实现方式可能会导致该业务系统的数据处理过程受到阻塞,从而无法实现数据处理的高可用性。In an existing implementation, a dedicated server 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 the 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.) Data is processed. However, in this implementation method, each business system corresponds to a dedicated server. If the resources on a dedicated server are damaged, it usually requires professionals 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 use of the above implementation may cause the data processing process of the business system to be blocked, and thus cannot achieve high data processing availability.
综上,目前亟需一种数据处理方法,用以解决使用每个业务系统对应的专属服务器处理数据所导致的数据处理的可用性较低的技术问题。In summary, 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.
发明内容Summary of the invention
本发明实施例提供一种数据处理方法、系统及装置,用以解决使用每个业务系统对应的专属服务器处理数据所导致的数据处理的可用性较低的技术问题。The embodiments of the present invention provide a data processing method, system, and device to solve the technical problem of low data processing availability 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, which 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:
接收第一客户端设备发送的数据请求消息,所述数据请求消息中包括所述第一客户端设备的标识和待处理数据;进一步地,查询预设对应关系表,得到所述第一客户端设备的标识对应的目标服务组,并使用所述目标服务组中的主服务器处理所述待处理数据;其中,所述预设对应关系表中存储有一个或多个客户端设备的标识与所述至少一个服务组的对应关系。Receive a data request message sent by a first client device, where the data request message includes the identification of the first client device and the data to be processed; further, query a preset correspondence table to obtain the first client The target service group corresponding to the device identifier, and the main server in the target service group is used to process the data to be processed; wherein the preset correspondence table stores one or more client device identifiers and all Describe the correspondence 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 service at the current moment If the main server of the group is damaged, a new main server can be assigned to the service group), so that at least one service group can be available at all times; in this way, by assigning the corresponding service group to the first client device, the first client device can be The main server in the service group corresponding to a client device executes the data processing process related to the first client device to ensure high availability of the data processing process.
在一种可能的设计中,若所述目标服务组中的主服务器发生故障,则从所述目标服务组中的一个或多个从服务器中选取第一从服务器,并使用所述第一从服务器处理所述待处理数据。In a possible design, if the master server in the target service group fails, the first slave server is selected from one or more slave servers in the target service group, and the first slave server is used. The server processes the to-be-processed data.
在上述设计中,若某一服务组中的主服务器损坏,则可以从该服务组包括的其它服务器中选取新的主服务器,从而可以使用新的主服务器处理待处理数据,一方面,通过在主服务器损坏时自动选取新的主服务器,可以无需人工维护,从而操作简单,便于实现,且可以降低维护成本;另一方面,通过使用新的主服务器处理待处理数据,使得用户无需再次输入数据请求消息即可得到数据处理结果,从而使得用户的体验较好。In the above design, if the main server in a certain service group is damaged, a new main server can be selected from other servers included in the service group, so that the new main server can be used to process the data to be processed. When the main server is damaged, a new main server is automatically selected, which eliminates the need for manual maintenance, which is simple to operate, easy to implement, and can reduce maintenance costs; on the other hand, by using the new main server to process the pending data, users do not need to input data again The data processing result can be obtained by requesting the 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 using the main server in the target service group to process the data to be processed includes: According to the IP address of the main server in the target service group included in the preset correspondence table, the data to be processed is sent 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, the IP address of the client device, the service group, and the IP address of the main server in the service group are added to the preset correspondence table, so that querying the preset correspondence table can determine the host that processes the data to be processed. Servers without having to analyze each server in each service group, which can improve the efficiency of data processing.
在一种可能的设计中,若所述预设对应关系表中不存在与所述第一客户端设备的标识对应的服务组,则根据所述至少一个服务组的性能从所述至少一个服务组中选取第一服务组,并使用所述第一服务组中的主服务器处理所述待处理数据;所述至少一个服务组中每个服务组的性能是由所述每个服务组中的主服务器和一个或多个从服务器的磁盘容量确定的。In a possible design, if the service group corresponding to the identifier of the first client device does not exist in the preset correspondence table, then according to the performance of the at least one service group from the at least one service group The first service group is selected from the group, and the main server in the first service group is used to process the data to be processed; the performance of each service group in the at least one service group is determined by the performance of each service group in the at least one service group Determined by the disk capacity of the master server and one or more slave servers.
在上述设计中,通过选取至少一个服务组中当前性能最好的服务组作为新的客户端设备对应的服务组,不仅可以提高对客户端设备的数据进行处理的效率,还可以保证至少一个服务组的负载的均衡性,提高数据处理系统的数据处理能力。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, not only can the efficiency of processing the data of the client device be improved, but also at least one service can be guaranteed The load balance of the group improves the data processing capacity 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 be generated in the preset correspondence table. The corresponding relationship 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 corresponding relationship 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. Furthermore, 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 to-be-processed data, 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 to ensure the orderliness and processing of the data 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 host 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 identification of the client device and the 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 to-be-processed data For the main server in the target service group; the preset correspondence table stores the correspondence between the identification 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 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 device includes:
收发模块,用于接收第一客户端设备发送的数据请求消息,所述数据请求消息中包括所述第一客户端设备的标识和待处理数据;A transceiver module, configured to receive a data request message sent by a first client device, where the data request message includes the identifier of the first client device and the data to be processed;
查询模块,用于查询预设对应关系表,得到所述第一客户端设备的标识对应的目标服务组;所述预设对应关系表中存储有一个或多个客户端设备的标识与所述至少一个服务组的对应关系;The query module is configured to query a preset correspondence table to obtain the 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 Correspondence of at least one service group;
处理模块,用于使用所述目标服务组中的主服务器处理所述待处理数据。The processing module is configured to use the main server in the target service group to process the data to be processed.
第四方面,本发明实施例提供的一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如第一方面任意所述的方法。In a fourth aspect, a computer-readable storage medium provided by an embodiment of the present invention includes instructions, which when run on a computer, cause the computer to execute the method described in any of the first aspect.
第五方面,本发明实施例提供的一种计算机程序产品,当其在计算机上运行时,使得计算机执行如第一方面任意所述的方法。In the fifth aspect, a computer program product provided by an embodiment of the present invention, when it runs on a computer, causes the computer to execute the method described in any of the first aspect.
第六方面,本发明实施例提供一种计算机设备,包括:In a sixth aspect, an embodiment of the present invention provides a computer device, including:
至少一个存储器,用于存储程序指令;At least one memory for storing program instructions;
至少一个处理器,用于调用所述存储器中存储的程序指令,按照获得的程序执行如第一方面任意所述的方法。At least one processor is configured to call program instructions stored in the memory, and execute any method as described in the first aspect according to the obtained program.
本发明的这些实现方式或其他实现方式在以下实施例的描述中会更加简明易懂。These or other implementations of the present invention will be more concise and understandable in the description of the following embodiments.
附图说明Description of the drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings needed in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings may be obtained from these drawings without creative labor.
图1为本发明实施例提供的一种数据处理方法对应的架构示意图;FIG. 1 is a schematic structural diagram corresponding to a data processing method provided by an embodiment of the present invention;
图2为本发明实施例提供的一种数据处理系统的架构示意图;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为本发明实施例提供的一种数据处理装置的结构示意图;4 is a schematic structural diagram of a data processing device provided by an embodiment of the present invention;
图5为本发明实施例提供的一种计算机设备的结构示意图。Fig. 5 is a schematic structural diagram of a computer device provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part 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 those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
金融科技(Fintech)是指将信息技术融入金融领域后,为金融领域带来的一种新的创新科技,通过使用先进的信息技术辅助实现金融作业、交易执行以及金融系统改进,可以提升金融系统的处理效率、业务规模,并可以降低成本和金融风险。一般来说,金融科技领域通常会涉及到大量的数据,比如信贷业务系统的贷款数据、销售业务系统的售卡数据、支付业务系统的转账数据等,如何采用科技的手段从大量的数据中挖掘出金融领域所需要的特征,一直是金融科技领域追求的目标。Fintech refers to a new innovative technology brought to the financial field after the integration of information technology into the financial field. The financial system can be improved by using advanced information technology to assist in financial operations, transaction execution and financial system improvements. 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 of the credit business system, card sales data of the sales business system, transfer data of the payment business system, etc. How to use technology to mine a large amount of data It has always been the goal pursued by the financial technology field to extract the characteristics required by the financial field.
由于为每个业务系统设置专属服务器的方案无法保证数据处理的高可用性,因此,为了保证数据处理的高可用性,在一种可能的实现方式中,可以为同一个业务系统设置多个专属服务器(两个或者两个以上),如此,若某一专属服务器发生损坏,则可以使用其它的专属服务器处理该业务系统的数据,保证对该业务系统中的数据进行处理的连续性。Since the solution of setting up a dedicated server for each business system cannot guarantee the high availability of data processing, in order to ensure the high availability of data processing, in a possible implementation, multiple dedicated servers can be set up 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 processing the data in the business system.
以对同一个业务系统设置两个专属服务器为例,图1为该种实现方式对应的系统架构示意图,如图1所示,该系统中可以设置有客户端设备110、负载均衡服务器120、专属服务器131、专属服务器132和网络附属存储(Network Attached Storage,NAS)服务器140。其中,负载均衡服务器120可以分别与客户端设备110、专属服务器131和专属服务器132连接,NAS服务器140可以分别与专属服务器131和专属服务器132连接;实现连接的方式可以有多种,比如可以通过有线方式实现连接,或者也可以通过无线方式实现连接,具体不作限定。Taking the setting of 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 method. As shown in Figure 1, the system can be provided with a client device 110, a load balancing server 120, and a dedicated server. A server 131, a dedicated server 132, and a network attached storage (Network Attached Storage, NAS) server 140. Among them, the load balancing server 120 can be connected to the client device 110, the dedicated server 131, and the dedicated server 132 respectively, and the NAS server 140 can be connected to the dedicated server 131 and the dedicated server 132 respectively; there can be many ways to realize the connection, for example, through The connection is realized in a wired manner, or the connection may also be realized in a wireless manner, which is not specifically limited.
本发明实施例中,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 NAS server 140 may be composed of multiple hard disks, and the NAS server 140 may store multiple data related to the client device 110, such as text data, audio data, and video data. Correspondingly, the dedicated server 131 and/or the dedicated server 132 may store the identity information of the client device 110, where the identity information of the client device 110 may include the user name of the client device 100, the password corresponding to the user name, etc. In this way, the dedicated server 131 and/or the dedicated server 132 can access the NAS server 140 through the identity information of the client device 110, so as to realize the processing of the data of the client device 110. In an example, the dedicated server 131 and the dedicated server 132 may share the identity information of the client device 110 by transmitting data streams. For example, the dedicated server 131 and the dedicated server 132 may be respectively provided with a synchronization tool (such as a sersync tool), if the dedicated server 131 detects that the identity information of the client device 110 at a certain moment is updated from the first identity information to the second identity Information, the difference data in the second identity information that is different from the first identity information can be transmitted to the dedicated server 132 through the sersync tool; in this way, the dedicated server 132 can update the internally stored identity of the client device 110 according to the received difference data Information, so as to realize the data sharing process between the dedicated server 131 and the dedicated server 132.
具体实施中,客户端设备110可以根据用户的触发指令生成数据请求消息,进而将数据请求消息发送给负载均衡服务器120;相应地,负载均衡服务器120接收到数据处理请求后,可以根据专属服务器131和专属服务器132的负载情况(比如内存和/或硬盘的占用率、中央处理器的核数等)从专属服务器131和专属服务器132中选择一个目标专属服务器(比如专属服务器132),进而可以将数据处理请求发送给专属服务器132;在某种情况下,若专属服务器132发生故障,则负载均衡服务器120可以将数据处理请求发送给专属服务器131;进一步地,若数据处理请求为修改文件a,则专属服务器132(或专属服务器131)接收到数据处理请求后,可以预先对客户端设备110的身份进行验证,若确定客户端设备110的身份合法,则可以获取与客户端设备100匹配的NAS服务器140中的文件a,并对文件a进行修改。In specific implementation, the client device 110 may generate a data request message according to the user's trigger instruction, and then send the data request message to the load balancing server 120; accordingly, the load balancing server 120 may receive the data processing request according to the dedicated server 131 And the load situation of the dedicated server 132 (such as memory and/or hard disk occupancy rate, number of CPU cores, etc.). Select a target dedicated server (such as dedicated server 132) from dedicated server 131 and dedicated server 132, and then The data processing request is sent to the dedicated server 132; in some cases, if the dedicated server 132 fails, the load balancing server 120 can send the data processing request to the dedicated server 131; further, if the data processing request is to modify file a, After receiving the data processing request, the dedicated server 132 (or dedicated server 131) can verify the identity of the client device 110 in advance. If it is determined that the identity of the client device 110 is legal, it can obtain the NAS that matches the client device 100. File a in the server 140, and modify the file a.
根据上述内容可知,在该种实现方式中,除了需要设置多个专属服务器,还需要设置独立于多个专属服务器之外的NAS服务器140,虽然该种实现方式可以在某一专属服务器故障时使用其它的专属服务器处理数据,但是若NAS服务器140发生故障(比如构成NAS服务器140的某一硬盘损坏、网络故障、内存不足等),则任一专属服务器均无法实现对数据进行处理,从而导致数据处理不可用;也就是说,上述实现过程仍然无法实现数据的高可用性。According to the above content, in this implementation, in addition to multiple dedicated servers, it is also necessary to set up a NAS server 140 independent of multiple dedicated servers, although this implementation can be used when a dedicated server fails. Other dedicated servers process data, but if the NAS server 140 fails (such as a certain hard disk that constitutes the NAS server 140 is damaged, network failure, insufficient memory, etc.), any dedicated server cannot process the data, resulting in data Processing is not available; that is, the above implementation process still cannot achieve high data availability.
除此之外,上述实现方式还存在如下问题:In addition, the above implementation also has the following problems:
(1)由于设置了独立的NAS服务器140,导致系统的成本较高。(1) Since the independent NAS server 140 is set up, the cost of the system is high.
(2)专属服务器131与专属服务器132之间同步数据流的过程与基于NAS服务器140处理数据的过程使用同一网络,导致同步数据流的过程占用较大的网络空间,从而可能会使得数据处理过程中的网络受到阻塞,数据处理的效率较低。(2) The process of synchronizing data streams between the dedicated server 131 and the dedicated server 132 uses the same network as the process of processing data based on the NAS server 140, which causes the process of synchronizing data streams to occupy a large network space, which may cause the data processing process The network in is blocked, and the efficiency of data processing is low.
(3)专属服务器131和专属服务器132访问同一个NAS设备,导致无法按照实际的业务场景动态分配不同专属服务器对应的数据,从而使得数据 处理的扩展性较差。(3) The dedicated server 131 and the dedicated server 132 access the same NAS device, which results in the inability to dynamically allocate data corresponding to different dedicated servers according to actual business scenarios, resulting in poor scalability of data processing.
基于此,本发明实施例提供一种数据处理系统,用以实现数据处理的高可用性,提高数据处理的效率和扩展性,并降低成本。Based on this, the embodiments of the present invention provide a data processing system to achieve high availability of data processing, improve the efficiency and scalability of data processing, and reduce costs.
图2为本发明实施例提供的一种数据处理系统的架构示意图,如图2所示,该系统可以包括一个或多个客户端设备(比如图2所示意的客户端设备211、客户端设备212和客户端设备213)、代理服务器220、存储服务器组230和至少一个服务组(比如图2所示意的服务组241、服务组242和服务组243)。其中,代理服务器220可以分别与至少一个客户端设备、存储服务器组230、至少一个服务组连接,至少一个服务组的每个服务组可以与存储服务器组230连接,实现连接的方式可以为有线连接,或者也可以为无线连接,具体不作限定。2 is a schematic diagram of the architecture of a data processing system provided by an embodiment of the present invention. As shown in FIG. 2, the system may include one or more client devices (such as the client device 211 and the client device shown in FIG. 212 and client device 213), proxy server 220, storage server group 230, and at least one service group (for example, service group 241, service group 242, and service group 243 as shown in FIG. 2). Wherein, the proxy server 220 can be connected to at least one client device, the storage server group 230, and at least one service group respectively. Each service group of the at least one service group can be connected to the storage server group 230, and the connection can be realized by wired connection. , Or it can be a wireless connection, which is not specifically limited.
本发明实施例中,每个服务组中可以设置有多个服务器,多个服务器中的任意两个服务器可以实现数据共享,比如可以通过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 may be set in each service group, and any two servers among the multiple servers may realize data sharing, for example, data sharing may be realized through the RAFT protocol. Taking the service group 241 as an example, the service group 241 can be provided with servers 2411 to 2413. Accordingly, the service group 241 can select a master server from the servers 2411 to 2413 in various ways, for example, according to the RAFT protocol. The main server is selected from the servers 2411 to 2413, or the main server can be set by a person skilled in the art based on experience, which is not specifically limited. In an example, the service group 241 may select the server with the best performance (such as the server 2411) from the servers 2411 to 2413 as the master server. In this way, the server 1412 and the server 2413 may serve as two slave servers managed by the master server 2411. Among them, the performance of the server can be determined by any one or more of the available capacity of the disk in the server, the amount of memory occupied, the number of cores of the central processing unit (CPU), and the network traffic, which is not specifically limited. .
需要说明的是,图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 explaining the solution, and does not constitute a limitation on the solution. In the specific implementation , The number of servers in the service group can be greater than 3, for example, it can be 5 or more. In an example, in order to ensure the accuracy of RAFT protocol election, the number of servers in each service group may be set to 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 provided in the storage server cluster 230, such as storage server 231 to storage server 233, and any two storage servers among storage server 231 to storage server 233 can be implemented. data sharing. Correspondingly, the storage server cluster 230 can also select a primary storage server (such as the storage server 231) from the storage server 231 to the storage server 233 in the above manner. In this way, the storage server 232 and the storage server 233 can be managed by the primary storage server 231 The two slave storage servers.
具体实施中,服务组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 the service group 241 to the service group 243 determines the master server, the identification of the client device corresponding to the service group, the information of the master server, and the information of the slave server can be reported to the master storage server 231 . For example, taking the service group 241 as an example, after determining the master server 2411, the slave server 2412, and the slave server 2413, the master server 2411 may assign the identification of the service group 241 to which it belongs and the identification of the client device corresponding to the service group 241 , The currently available disk capacity, Internet Protocol Address (IP), port number, server number and other information are sent to the main storage server 231, and the slave server 2412 and the slave server 2413 can respectively send the information of the service group 241 to which they belong The identification and the currently available disk capacity are sent to the main storage server 231. In this way, the primary storage server 231 can establish a preset correspondence table according to the identification of the client device corresponding to the service group 241 to the service group 243, the information of the primary server, and the information of the secondary server, and can pass the preset correspondence table through the RAFT protocol Shared to the slave storage server 232 and the slave storage server 233, therefore, the master storage server 231, the slave storage server 232, and the slave storage server 233 may respectively store the same preset correspondence table.
表1为本发明实施例提供的一种预设对应关系表的示意表。Table 1 is a schematic table of a preset correspondence table provided by an embodiment of the present invention.
表1:一种预设对应关系表的示意Table 1: Schematic of a preset correspondence table
Figure PCTCN2020095935-appb-000001
Figure PCTCN2020095935-appb-000001
如表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 can include the identification of each service group, the identification of the client device corresponding to each service group, the identification of the master server and the slave server included in each service group, and the available disks. Information such as capacity and IP address of the main server. Taking the service group 241 as an example, based on the content shown in Table 1, the client device corresponding to the service group 241 may be the client device 212, the master server in the service group 241 may be the master server 2411, and the slave server may be the slave server 2412 And the slave server 2413; the disk capacity available in the master server 2411 is 500M, the disk capacity available in the slave server 2412 is 300M, and the disk capacity available in the slave server 2413 is 200M; the IP address of the master server 2411 can be http:// 2411.com.
以服务组241为例,在一种可能的实现方式中,若服务组241中的主服务器2411发生故障(比如磁盘损坏、磁盘空间不足、内存不足、网络故障、硬件设备损坏、软件运行故障等),则服务组241可以根据RAFT协议从从服务器2412和从服务器2413中重新选举得到新的主服务器(比如服务器2413)。进一步地,新的主服务器2413可以将其IP地址和旧的主服务器2411的故障信息上报给主存储服务器231,如此,主存储服务器231可以根据新的主服务器2413的IP地址和主服务器2411的故障信息更新预设对应关系表。Take the service group 241 as an example. In a possible implementation, if the main server 2411 in the service group 241 fails (such as disk damage, insufficient disk space, insufficient memory, network failure, hardware equipment damage, software operation failure, etc.) ), the service group 241 can re-elect a new master server (such as the server 2413) from the slave server 2412 and the slave server 2413 according to the RAFT protocol. Further, the new main server 2413 can report its IP address and the failure information of the old main server 2411 to the main storage server 231. In this way, the main storage server 231 can report the IP address of the new main server 2413 and the main server 2411's The fault information updates the preset correspondence table.
在一个示例中,主存储服务器231可以将新的主服务器2412标记为主服务器2412,并可以将旧的主服务器2411的状态标识为不可用状态,进而生成并推送旧的主服务器2411对应的告警信息给运维人员。在另一个示例中,主存储服务器231可以将新的主服务器2412标记为主服务器2412,并可以将旧的主服务器2411标记为从服务器2411,采用该示例中的方法可以将表1所示的预设对应关系表更新为表2所示。In an example, the main storage server 231 may mark the new main server 2412 as the main server 2412, and may mark the state of the old main server 2411 as an unavailable state, and then generate and push the alarm corresponding to the old main server 2411 Information to operation and maintenance personnel. In another example, the master storage server 231 can mark the new master server 2412 as the master server 2412, and can mark the old master server 2411 as the slave server 2411. The method shown in Table 1 can be The preset correspondence table is updated as shown in Table 2.
表2:一种更新后的预设对应关系表的示意Table 2: An illustration of an updated preset correspondence table
Figure PCTCN2020095935-appb-000002
Figure PCTCN2020095935-appb-000002
可以理解地,主存储服务器231在更新预设对应关系表后,也可以将更新后的预设对应关系表通过RAFT协议共享给从存储服务器232和从存储服务器233,以使主存储服务器231、从存储服务器232和从存储服务器233中可以分别存储有相同的预设对应关系表。Understandably, after the primary storage server 231 updates the preset correspondence table, it may also share the updated preset correspondence table to the secondary storage server 232 and the secondary storage server 233 through the RAFT protocol, so that the primary storage server 231, The slave storage server 232 and the slave storage server 233 may respectively store the same preset correspondence table.
本发明实施例中,若服务组中的主服务器故障,则服务组可以从其它服务器中选举得到新的主服务器,如此,可以使用新的主服务器对客户端设备 的数据请求消息进行处理;也就是说,通过服务组自动选取主服务器,可以实现故障的自动恢复,从而使得数据处理过程具有高可用性。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. In this way, the new main server can be used to process the data request message of the client device; In other words, the main server can be automatically selected by the service group to automatically recover from failures, thereby making the data processing process highly available.
基于图2所示意的系统架构,图3为本发明实施例提供的数据处理方法对应的流程示意图,该方法包括:Based on the system architecture shown in Fig. 2, Fig. 3 is a schematic flow diagram corresponding to the data processing method provided by an embodiment of the present invention, and the method includes:
步骤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 client devices 211 to 213 may be client devices corresponding to different business systems. For example, the client device 211 is a client device corresponding to a loan business system, and the client device 212 is an insurance business system. The corresponding client device, client device 213 is the client device corresponding to the sales business system; in this way, the loan business system can process the loan data generated during the execution of the loan business system through the client device 211, and insurance business The system can process insurance data generated during the execution of the business by the insurance business system through the client device 212, and the sales business system can process the sales data generated during the execution of the business by the sales business system through the client device 213.
下面以贷款业务系统处理贷款数据为例描述本发明实施例中的数据处理方法,可以理解地,其它业务系统处理各自数据的过程也可以参照该方法进行实现,具体不作限定。The data processing method in the embodiment of the present invention is described below by taking loan business system processing loan data as an example. It is understandable that other business systems processing their respective data can also be implemented with reference to this method, which is not specifically limited.
在一个示例中,客户端设备211中可以设置有(World Wide Web,web)浏览器,贷款业务系统中的用户可以通过在web浏览器中输入预设链接得到资源管理界面;其中,资源管理界面上可以设置有多个功能图标,比如“修改资源”功能图标、“删除资源”功能图标、“获取资源”功能图标等。以删除贷款数据a为例,客户端设备211若检测到用户触发“删除资源”功能图标,则可以提示用户在资源管理界面中输入待删除资源的标识,进而在检测到用户输入贷款数据a的标识后,根据贷款数据a的标识生成数据请求消息,数据请求消息中可以包括客户端设备211的标识和贷款数据a的标识。In one example, a (World Wide Web, web) browser may be provided in the client device 211, and the user in the loan business system may obtain the resource management interface by entering a preset link in the web browser; among them, the resource management interface There can be multiple function icons, such as "modify resource" function icon, "delete resource" function icon, and "get resource" function icon. Taking the deletion of loan data a as an example, if the client device 211 detects that the user triggers the "resource deletion" function icon, it can prompt the user to enter the identification of the resource to be deleted in the resource management interface, and then when it detects that the user has entered the loan data a After the identification, a data request message is generated according to the identification of the loan data a, and the data request message may include the identification of the client device 211 and the identification of the loan data a.
进一步地,客户端设备211可以将数据请求消息发送给代理服务器200,其中,将数据请求消息发送给代理服务器200的方式可以有多种,比如可以通过光纤、网线等有线设备发送数据请求消息,或者可以通过声波、蓝牙等无线设备发送数据请求消息,具体不作限定。Further, the client device 211 may send the data request message to the proxy server 200, wherein there may be multiple ways to send the data request message to the proxy server 200, for example, the data request message may be sent through wired devices such as optical fiber and network cable. Or, the data request message can be sent through wireless devices such as sound wave or Bluetooth, which is not specifically limited.
步骤302,代理服务器查询预设对应关系表,确定与第一客户端设备对应的目标服务组。Step 302: The proxy server queries a preset correspondence table, and determines 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 FIG. 2, in an example, after determining the primary storage server 231, the secondary storage server 232, and the secondary storage server 233 in the storage service group 230, the information (such as the IP address) of the primary storage server 231 can be sent to the proxy server 220; in this way, the proxy server 220 can communicate with the main storage server 231 according to the IP address of the main storage server 231, obtain the preset correspondence table stored in the main storage server 231, and store the preset correspondence table in the preset storage In the space, for example, stored in the disk or hard disk of the proxy server 220.
本发明实施例中,代理服务器220获取预设对应关系表的方式可以有多种,在一种可能的实现方式中,代理服务器220可以按照预设周期更新预设存储空间中存储的预设对应关系表,比如,代理服务器220可以每5min向主存储服务器231发送一次请求消息,相应地,主存储服务器231接收到请求消息后,可以将预设对应关系表发送给代理服务器220;如此,代理服务器220可以每5min更新一次预设存储空间存储的预设对应关系表。在另一种可能的实现方式中,代理服务器220可以根据主存储服务器231的指示实时更新预设存储空间中存储的预设对应关系表,举例来说,若由于主服务器2411损坏导致主存储服务器231更新了预设对应关系表,则主存储服务器231可以主动将更新后的预设对应关系表发送给代理服务器220;如此,代理服务器220可以使用实时接收到的预设对应关系表更新预设存储空间存储的预设对应关系表。In the embodiment of the present invention, the proxy server 220 may obtain the preset correspondence table in multiple ways. In a possible implementation manner, the proxy server 220 may update the preset correspondence stored in the preset storage space according to a preset period. The relationship table, for example, the proxy server 220 may send a request message to the main storage server 231 every 5 minutes. Accordingly, after receiving the request message, the main storage server 231 may send the preset correspondence table to the proxy server 220; The server 220 may update the preset correspondence table stored in the preset storage space every 5 minutes. In another possible implementation manner, the proxy server 220 may update the preset correspondence table stored in the preset storage space in real time according to the instructions of the main storage server 231. For example, if the main storage server 2411 is damaged, the main storage server 231 updates the preset correspondence table, then the main storage server 231 can actively send the updated preset correspondence table to the proxy server 220; in this way, the proxy server 220 can use the preset correspondence table received in real time to update the preset The preset correspondence table stored in the storage space.
具体实施中,代理服务器220若接收到客户端设备211发送的数据请求消息,则可以获取预设存储空间存储的预设对应关系表,进而可以根据客户端设备211的标识查询预设对应关系表,若预设对应关系表中存在客户端设备211对应的目标服务组,则查询的结果可以为查询成功;若预设对应关系表中不存在客户端设备211对应的服务组,则查询的结果可以为查询失败。下面分别从这两种情形描述代理服务器220确定客户端设备对应的主服务器的过程。In specific implementation, if the proxy server 220 receives the data request message sent by the client device 211, it can obtain the preset correspondence table stored in the preset storage space, and then can query the preset correspondence table according to the identifier of the client device 211 If there is a target service group corresponding to the client device 211 in the preset correspondence table, the result of the query may be that the query is successful; if the service group corresponding to the client device 211 does not exist in the preset correspondence table, the result of the query It can be that the query failed. The following describes the process of the proxy server 220 determining the main server corresponding to the client device from these two scenarios.
情形一Situation One
在情形一中,预设对应关系表中存在客户端设备对应的目标服务组。In scenario 1, 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 client device 211, the proxy server 220 may determine that the service group corresponding to the client device 211 is the service group 241.
情形二Situation two
在情形二中,预设对应关系表中不存在客户端设备对应的服务组。In the second scenario, there is no service group corresponding to the client device 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 proxy server 220 may determine that the service group corresponding to the client device 214 does not exist in the preset correspondence table; thus, the proxy server 220 The target service group can be selected from the service group 241-server 243 according to the performance of the service group 241-server 243, and the main server in the target service group can be used as the main server corresponding to the client device 211. The performance of the service group 241 to the server 243 may be determined by the total disk capacity of the servers included in the service group 241 to the server 243.
举例来说,基于表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 preset correspondence table shown in Table 1, the total available space of the servers 2411-2413 included in the service group 241 is 1000M, and the total available space of the servers 2421-2423 included in the service group 242 is 600M. The total available space of the servers 2431 to 2433 included in the service group 243 is 1400M; it can be seen that the performance of the service group 241 to the server 243 can be from high to low as: service group 243>service group 241>server 242. Since the service group with the best performance is the service group 243, the proxy server 220 may use the main server 2432 in the service group 243 as the main server corresponding to the client device 211.
本发明实施例中,通过选取至少一个服务组中当前性能最好的服务组作为新的客户端设备对应的服务组,不仅可以提高对客户端设备的数据进行处理的效率,还可以保证至少一个服务组的负载的均衡性,提高数据处理系统的数据处理能力。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, not only can the efficiency of processing the data of the client device be improved, but also at least one The load balance of the service group improves the data processing capacity of the data processing system.
步骤303,代理服务器220将数据处理请求发送给目标服务组中的主服务器。In step 303, the proxy server 220 sends the data processing request to the main server in the target service group.
具体实施中,若客户端设备对应的目标服务组为服务组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 specific implementation, if the target service group corresponding to the client device is the service group 241, since the main server in the service group 241 is the main server 2411, the proxy server 220 can obtain the IP of the main server 2411 from the preset correspondence table Address (ie http://2411.com), and then the identification of the loan data a can be forwarded to the main server 2411 according to the IP address of the main server 2411. Specifically, the proxy server 220 may generate a message according to the IP address of the proxy server 220, the IP address http://2411.com of the main server 2411, and the identifier of the loan data a, and the sender address of the message may be the proxy server 220 The IP address of the recipient may be http://2411.com, and the content of the message may include the identifier of the loan data a, or may also include other information, such as the identifier of the client device 211.
步骤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 specific implementation, if the main server 2411 receives the data processing request, it can query the disk of the main server 2411 to determine the location of the loan data a, and can delete the loan data a from the disk. In an example, the main server 2411 may send a response message of successful data processing to the proxy server 220 after successfully deleting the loan data a, so that the proxy server 220 forwards the response message of successful data processing to the client device 211. In this way, The client device 211 may display the information that the loan data a is successfully deleted to the user of the loan business system on the web interface.
在一种可能的实现方式中,主服务器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 main server 2411 may also authenticate the client device 211 before deleting the loan data a from the disk. Specifically, the client device 211 may send the first authorization information to the main server 2411 in advance, and accordingly, the data request message sent by the client device 211 to the proxy server 220 may include the second authentication information of the client device 211 Therefore, the message sent by the proxy server 220 to the main server 2411 may also include the second authentication information of the client device 211. In this way, after the main server 2411 receives the data processing request, it can use the first authentication information of the client device 211 and the second authentication information of the client device 211 to verify the legitimacy of the client device 211. If 211 is legal, the loan data a can be deleted from the disk. If it is determined that the client device 211 is illegal, it can send a data processing failure response message to the proxy server 220 so that the proxy server 220 can forward the data processing failure response message To the client device 211, in this way, the client device 211 can display the failure to delete the loan data a to the user of the loan business system on the web interface.
具体实施中,若客户端设备211的第一鉴权信息和第二鉴权信息为用户名和密码,则在第一鉴权信息与第二鉴权信息相同时主服务器2411可以确定客户端设备211合法,若客户端设备211的第一鉴权信息为私钥,客户端设备211的第二鉴权信息为公钥,则在第一鉴权信息与第二鉴权信息匹配时主服务器2411可以确定客户端设备211合法。需要说明的是,客户端设备211的第一鉴权信息和第二鉴权信息还可以为其它信息,比如条码信息,具体不作限定。In specific implementation, if the first authentication information and the second authentication information of the client device 211 are the user name and password, the main server 2411 can determine that the client device 211 is the same as the second authentication information. Legal. If the first authentication information of the client device 211 is a private key and the second authentication information of the client device 211 is a public key, then the main server 2411 can be used when the first authentication information matches the second authentication information It is determined that the client device 211 is legitimate. It should be noted that the first authentication information and the second authentication information of the client device 211 may also be other information, such as barcode information, which is not specifically limited.
本发明实施例中,通过在对客户端设备的数据进行处理之前对客户端设备进行合法性验证,可以避免对其它客户端设备的数据进行处理,保证不同的客户端设备数据处理的有序性和安全性。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 the data of other client devices and to ensure the orderliness of the data processing of different client devices And security.
本发明的上述实施例中,接收第一客户端设备发送的数据请求消息,所述数据请求消息中包括所述第一客户端设备的标识和待处理数据;进一步地,查询预设对应关系表,得到所述第一客户端设备的标识对应的目标服务组,并使用所述目标服务组中的主服务器处理所述待处理数据;所述预设对应关系表中存储有一个或多个客户端设备的标识与所述至少一个服务组的对应关系。本发明实施例中,通过设置至少一个服务组以及每个服务组包括的主服务器和一个或多个从服务器,可以保证每个服务组中的主服务器是实时存在的(比如若当前时刻某一服务组的主服务器损坏,则可以为该服务组分配新的主服务器),从而可以使得至少一个服务组处于时刻可用的状态;如此,通过为第一客户端设备分配对应的服务组,可以通过第一客户端设备对应的服务组中的主服务器执行与第一客户端设备相关的数据处理过程,保证数据处理过程的高可用性;且,通过设置预设对应关系表,使得基于预设对应关系表即可确定处理待处理数据的主服务器,而无需再对服务组中的每个服务器进行分析,从而可以提高数据处理的效率。In the above-mentioned embodiment of the present invention, a data request message sent by a 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, query a 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 to-be-processed data; the preset correspondence table stores one or more clients The corresponding relationship between the identifier of the terminal 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 the current If the main server of the service group is damaged, a new main server can be assigned to the service group, so that at least one service group can be available at all times; in this way, by assigning the corresponding service group to the first client device, 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 high availability of the data processing process; and, by setting a preset correspondence table, it is based on the preset correspondence The table can determine the main server that processes the data to be processed, and there is no need to analyze each server in the service group, which can improve the efficiency of data processing.
针对上述方法流程,本发明实施例还提供一种数据处理装置,该装置的具体内容可以参照上述方法实施。In view of the foregoing method flow, an 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 foregoing method.
图4为本发明实施例提供的一种数据处理装置的结构示意图,所述装置应用于数据处理系统,所述数据处理系统包括至少一个服务组,所述至少一个 服务组中的每个服务组包括主服务器以及一个或多个从服务器;所述装置包括: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 It includes a master server and one or more slave servers; the device includes:
收发模块401,用于接收第一客户端设备发送的数据请求消息,所述数据请求消息中包括所述第一客户端设备的标识和待处理数据;The transceiver module 401 is configured to receive a data request message sent by a first client device, where the data request message includes the identification of the first client device and the data to be processed;
查询模块402,用于查询预设对应关系表,得到所述第一客户端设备的标识对应的目标服务组;所述预设对应关系表中存储有一个或多个客户端设备的标识与所述至少一个服务组的对应关系;The query module 402 is configured to query a preset correspondence table to obtain the target service group corresponding to the identifier of the first client device; the preset correspondence table stores one or more client device identities and all State the correspondence of at least one service group;
处理模块403,用于使用所述目标服务组中的主服务器处理所述待处理数据。The processing module 403 is configured to use the main server in the target service group to process the data to be processed.
可选地,所述处理模块403还用于:Optionally, the processing module 403 is further configured to:
若所述目标服务组中的主服务器发生故障,则从所述目标服务组中的一个或多个从服务器中选取第一从服务器,并使用所述第一从服务器处理所述待处理数据。If the master server in the target service group fails, a first slave server is selected from one or more slave servers in the target service group, and the first slave server is used to process the data to be processed.
可选地,所述预设对应关系表还包括每个服务组中的主服务器的IP地址;Optionally, the preset correspondence table further includes the IP address of the main server in each service group;
所述处理模块403具体用于:根据所述预设对应关系表包括的所述目标服务组中的主服务器的IP地址,将所述待处理数据发送给所述目标服务组中的主服务器,以使所述目标服务组中的主服务器处理所述待处理数据。The processing module 403 is specifically configured to: according to the IP address of the main server in the target service group included in the preset correspondence table, send the to-be-processed data to the main server in the target service group, So that the main server in the target service group processes the to-be-processed data.
可选地,所述装置处理模块403还用于:Optionally, the device processing module 403 is further configured to:
若所述预设对应关系表中不存在与所述第一客户端设备的标识对应的服务组,则根据所述至少一个服务组的性能从所述至少一个服务组中选取第一服务组,并使用所述第一服务组中的主服务器处理所述待处理数据;所述至少一个服务组中每个服务组的性能是由所述每个服务组中的主服务器和一个或多个从服务器的磁盘容量确定的。If there is no service group corresponding to the identifier of the first client device in the preset correspondence table, selecting the 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 to-be-processed data; the performance of each service group in the at least one service group is determined by the master server and one or more slave servers in the at least one service group The disk capacity of the server is determined.
可选地,所述处理模块403还用于:Optionally, the processing module 403 is further configured to:
在所述预设对应关系表中生成所述第一客户端设备的标识与所述第一服务组的对应关系。The corresponding relationship between the identifier of the first client device and the first service group is generated in the preset correspondence table.
可选地,所述处理模块403还用于:Optionally, the processing module 403 is further configured to:
确定所述第一客户端设备合法。It is determined that the first client device is legal.
请参见图5,基于同一技术构思,本发明实施例还提供了一种计算机设备,用于执行数据处理系统在本发明任一实施例中的方法,可以包括存储器1001和处理器1002。Referring to FIG. 5, based on the same technical concept, an embodiment of the present invention also provides a computer device for executing a method of a data processing system in any embodiment of the present invention, and may include a memory 1001 and a processor 1002.
所述存储器1001,用于存储处理器1002执行的计算机程序。存储器1001可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、 至少一个功能所需的应用程序等;存储数据区可存储根据计算机设备的使用所创建的数据等。处理器1002,可以是一个中央处理单元(central processing unit,CPU),或者为数字处理单元等等。本发明实施例中不限定上述存储器1001和处理器1002之间的具体连接介质。本发明实施例在图5中以存储器1001和处理器1002之间通过总线1003连接,总线1003在图5中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线1003可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The memory 1001 is used to store a computer program executed by the processor 1002. The memory 1001 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required for at least one function, and the like; the data storage area may store data created according to the use of a computer device. The processor 1002 may be a central processing unit (central processing unit, CPU), or a digital processing unit or the like. The embodiment of the present invention does not limit the specific connection medium between the foregoing memory 1001 and the processor 1002. In the embodiment of the present invention, in FIG. 5, the memory 1001 and the processor 1002 are connected through a bus 1003, and the bus 1003 is represented by a thick line in FIG. Limited. The bus 1003 can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 5 to represent, but it does not mean that there is only one bus or one type of bus.
存储器1001可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器1001也可以是非易失性存储器(non-volatile memory),例如只读存储器,快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)、或者存储器1001是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器1001可以是上述存储器的组合。The memory 1001 may be a volatile memory (volatile memory), such as a random-access memory (random-access memory, RAM); the memory 1001 may also be a non-volatile memory (non-volatile memory), such as a read-only memory, flash memory Flash memory, hard disk drive (HDD) or solid-state drive (SSD), or memory 1001 can be used to carry or store desired program codes in the form of instructions or data structures and can be used by Any other medium accessed by the computer, but not limited to this. The memory 1001 may be a combination of the above-mentioned memories.
处理器1002,用于调用所述存储器1001中存储的计算机程序时执行本发明实施例提供的基于区块链的数据验证方法。The processor 1002 is configured to execute the blockchain-based data verification method provided by the embodiment of the present invention when calling the computer program stored in the memory 1001.
本发明实施例还提供了一种计算机存储介质,存储为执行上述处理器所需执行的计算机可执行指令,其包含用于执行上述处理器所需执行的程序。An embodiment of the present invention also provides a computer storage medium that stores computer executable instructions required to execute the foregoing processor, and contains a program used to execute the foregoing processor.
本领域内的技术人员应明白,本发明的实施例可提供为方法、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、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. Therefore, the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设 备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present 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. In this way, 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 is also intended to include these modifications and variations.

Claims (18)

  1. 一种数据处理方法,其特征在于,所述方法应用于数据处理系统,所述数据处理系统包括至少一个服务组,所述至少一个服务组中的每个服务组包括主服务器以及一个或多个从服务器;所述方法包括:A data processing method, characterized in that 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 main server and one or more From the server; the method includes:
    接收第一客户端设备发送的数据请求消息,所述数据请求消息中包括所述第一客户端设备的标识和待处理数据;Receiving a data request message sent by a first client device, where the data request message includes the identifier of the first client device and the data to be processed;
    查询预设对应关系表,得到所述第一客户端设备的标识对应的目标服务组;所述预设对应关系表中存储有一个或多个客户端设备的标识与所述至少一个服务组的对应关系;Query the preset correspondence table to obtain the target service group corresponding to the identification of the first client device; the preset correspondence table stores the identification of one or more client devices and the identification of the at least one service group Correspondence;
    使用所述目标服务组中的主服务器处理所述待处理数据。Use the master server in the target service group to process the to-be-processed data.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    若所述目标服务组中的主服务器发生故障,则从所述目标服务组中的一个或多个从服务器中选取第一从服务器,并使用所述第一从服务器处理所述待处理数据。If the master server in the target service group fails, a first slave server is selected from one or more slave servers in the target service group, and the first slave server is used to process the data to be processed.
  3. 根据权利要求2所述的方法,其特征在于,所述预设对应关系表还包括每个服务组中的主服务器的互联网协议地址IP;所述使用所述目标服务组中的主服务器处理所述待处理数据,包括:The method according to claim 2, wherein the preset correspondence table further includes the Internet Protocol address IP of the main server in each service group; the main server in the target service group is used to process all State the data to be processed, including:
    根据所述预设对应关系表包括的所述目标服务组中的主服务器的IP,将所述待处理数据发送给所述目标服务组中的主服务器,以使所述目标服务组中的主服务器处理所述待处理数据。According to the IP of the main server in the target service group included in the preset correspondence table, send the to-be-processed data to the main server in the target service group, so that the main server in the target service group The server processes the to-be-processed data.
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    若所述预设对应关系表中不存在与所述第一客户端设备的标识对应的服务组,则根据所述至少一个服务组的性能从所述至少一个服务组中选取第一服务组,并使用所述第一服务组中的主服务器处理所述待处理数据;所述至少一个服务组中每个服务组的性能是由所述每个服务组中的主服务器的磁盘容量以及一个或多个从服务器的磁盘容量确定的。If there is no service group corresponding to the identifier of the first client device in the preset correspondence table, selecting the first service group from the at least one service group according to the performance of 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 main server in each service group and one or Determined by the disk capacity of multiple slave servers.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述至少一个服务组的性能从所述至少一个服务组中选取第一服务组之后,还包括:The method according to claim 4, wherein after the selecting the first service group from the at least one service group according to the performance of the at least one service group, the method further comprises:
    在所述预设对应关系表中生成所述第一客户端设备的标识与所述第一服务组的对应关系。The corresponding relationship between the identifier of the first client device and the first service group is generated in the preset correspondence table.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述使用所述目标服务组中的主服务器处理所述待处理数据之前,还包括:The method according to any one of claims 1 to 5, characterized in that, before using the main server in the target service group to process the data to be processed, the method further comprises:
    确定所述第一客户端设备合法。It is determined that the first client device is legal.
  7. 一种数据处理系统,其特征在于,所述数据处理系统包括一个或多个客户端设备,代理服务器和至少一个服务组,所述至少一个服务组中的每个服务组包括至少一个主服务器以及一个或多个从服务器;A data processing system, characterized in that the data processing system includes one or more client devices, proxy servers and at least one service group, and each service group in the at least one service group includes at least one main 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 identification of the client device and the 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 to-be-processed data For the main server in the target service group; the preset correspondence table stores the correspondence between the identification 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.
  8. 根据权利要求7所述的系统,其特征在于,所述系统还包括存储服务器;The system according to claim 7, wherein the system further comprises a storage server;
    所述存储服务器用于:接收每个服务组中的主服务器以及一个或多个从服务器分别上报的信息,并根据所述信息生成所述预设对应关系表;The storage server is configured to: receive the information reported by the master server and one or more slave servers in each service group, and generate the preset correspondence table according to the information;
    所述代理服务器还用于:从所述存储服务器中获取所述预设对应关系表。The proxy server is further configured to: obtain the preset correspondence table from the storage server.
  9. 根据权利要求8所述的系统,其特征在于,所述预设对应关系表中还包括每个服务组中的主服务器的IP;The system according to claim 8, wherein the preset correspondence table further includes the IP of the main server in each service group;
    所述目标服务组在所述目标服务组中的主服务器故障时,从所述目标服务组中的一个或多个从服务器中选取性能大于第一预设性能的第一从服务器,并将所述第一从服务器的IP发送给所述存储服务器;When the master server in the target service group fails, the target service group selects a first slave server with a performance greater than a first preset performance from one or more slave servers in the target service group, and combines all Sending the IP of the first slave server to the storage server;
    所述存储服务器还用于:接收所述第一从服务器的IP后,使用所述第一从服务器的IP更新所述预设对应关系表所述目标服务组中的主服务器的IP。The storage server is further configured to: after receiving the IP of the first slave server, use 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.
  10. 一种数据处理装置,其特征在于,所述装置应用于数据处理系统,所述数据处理系统包括至少一个服务组,所述至少一个服务组中的每个服务组包括主服务器以及一个或多个从服务器;所述装置包括:A data processing device, characterized in that 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 main server and one or more From the server; the device includes:
    收发模块,用于接收第一客户端设备发送的数据请求消息,所述数据请求消息中包括所述第一客户端设备的标识和待处理数据;A transceiver module, configured to receive a data request message sent by a first client device, where the data request message includes the identifier of the first client device and the data to be processed;
    查询模块,用于查询预设对应关系表,得到所述第一客户端设备的标识对应的目标服务组;所述预设对应关系表中存储有一个或多个客户端设备的标识与所述至少一个服务组的对应关系;The query module is configured to query a preset correspondence table to obtain the 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 Correspondence of at least one service group;
    处理模块,用于使用所述目标服务组中的主服务器处理所述待处理数据。The processing module is configured to use the main server in the target service group to process the data to be processed.
  11. 根据权利要求10所述的装置,其特征在于,所述处理模块还用于:The device according to claim 10, wherein the processing module is further configured to:
    若所述目标服务组中的主服务器发生故障,则从所述目标服务组中的一个或多个从服务器中选取第一从服务器,并使用所述第一从服务器处理所述待处理数据。If the master server in the target service group fails, a first slave server is selected from one or more slave servers in the target service group, and the first slave server is used to process the data to be processed.
  12. 根据权利要求11所述的装置,其特征在于,所述预设对应关系表还包括每个服务组中的主服务器的IP;The apparatus according to claim 11, wherein the preset correspondence table further includes the IP of the main server in each service group;
    所述处理模块具体用于:根据所述预设对应关系表包括的所述目标服务组中的主服务器的IP,将所述待处理数据发送给所述目标服务组中的主服务器,以使所述目标服务组中的主服务器处理所述待处理数据。The processing module is specifically configured to: according to the IP of the main server in the target service group included in the preset correspondence table, send the to-be-processed data to the main server in the target service group, so that The main server in the target service group processes the to-be-processed data.
  13. 根据权利要求10所述的装置,其特征在于,所述装置处理模块还用于:The device according to claim 10, wherein the device 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, selecting the first service group from the at least one service group according to the performance of 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 main server in each service group and one or Determined by the disk capacity of multiple slave servers.
  14. 根据权利要求13所述的装置,其特征在于,所述处理模块还用于:The device according to claim 13, wherein the processing module is further configured to:
    在所述预设对应关系表中生成所述第一客户端设备的标识与所述第一服务组的对应关系。The corresponding relationship between the identifier of the first client device and the first service group is generated in the preset correspondence table.
  15. 根据权利要求10至14中任一项所述的装置,其特征在于,所述处理模块还用于:The device according to any one of claims 10 to 14, wherein the processing module is further configured to:
    确定所述第一客户端设备合法。It is determined that the first client device is legal.
  16. 一种计算机可读存储介质,其特征在于,包括指令,当其在计算机上运行时,使得计算机执行如权利要求1至6任一项所述的方法。A computer-readable storage medium, which is characterized by comprising instructions, which when run on a computer, causes the computer to execute the method according to any one of claims 1 to 6.
  17. 一种计算机程序产品,其特征在于,当其在计算机上运行时,使得计算机执行如权利要求1至6任一项所述的方法。A computer program product, which is characterized in that when it runs on a computer, the computer executes the method according to any one of claims 1 to 6.
  18. 一种计算机设备,其特征在于,包括:A computer device, characterized in that it comprises:
    至少一个存储器,用于存储程序指令;At least one memory for storing program instructions;
    至少一个处理器,用于调用所述存储器中存储的程序指令,按照获得的程序执行如权利要求1至6任一所述的方法。At least one processor is configured to call program instructions stored in the memory, and execute the method according to any one of claims 1 to 6 according to the obtained program.
PCT/CN2020/095935 2019-06-21 2020-06-12 Data processing method, system and device WO2020253634A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910542091.4 2019-06-21
CN201910542091.4A CN110289999B (en) 2019-06-21 2019-06-21 Data processing method, system and device

Publications (1)

Publication Number Publication Date
WO2020253634A1 true WO2020253634A1 (en) 2020-12-24

Family

ID=68004789

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/095935 WO2020253634A1 (en) 2019-06-21 2020-06-12 Data processing method, system and device

Country Status (2)

Country Link
CN (1) CN110289999B (en)
WO (1) WO2020253634A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112818064A (en) * 2021-02-25 2021-05-18 平安普惠企业管理有限公司 Multi-system data synchronization method, device, equipment and storage medium
CN116032929A (en) * 2023-03-30 2023-04-28 阿里巴巴(中国)有限公司 Data processing system, method and equipment

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110289999B (en) * 2019-06-21 2023-02-21 深圳前海微众银行股份有限公司 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
CN113467891B (en) * 2021-07-12 2022-03-15 腾讯科技(深圳)有限公司 Service processing method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491104A (en) * 2013-10-09 2014-01-01 廖洪銮 Interactive method and system based on non-real-time media information
US20150156705A1 (en) * 2012-07-20 2015-06-04 Nec Europe Ltd. Dynamic activation of andsf policies
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
CN110289999A (en) * 2019-06-21 2019-09-27 深圳前海微众银行股份有限公司 A kind of data processing method, system and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150156705A1 (en) * 2012-07-20 2015-06-04 Nec Europe Ltd. Dynamic activation of andsf policies
CN103491104A (en) * 2013-10-09 2014-01-01 廖洪銮 Interactive method and system based on non-real-time media information
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
CN110289999A (en) * 2019-06-21 2019-09-27 深圳前海微众银行股份有限公司 A kind of data processing method, system and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112818064A (en) * 2021-02-25 2021-05-18 平安普惠企业管理有限公司 Multi-system data synchronization method, device, equipment and storage medium
CN116032929A (en) * 2023-03-30 2023-04-28 阿里巴巴(中国)有限公司 Data processing system, method and equipment

Also Published As

Publication number Publication date
CN110289999A (en) 2019-09-27
CN110289999B (en) 2023-02-21

Similar Documents

Publication Publication Date Title
WO2020253634A1 (en) Data processing method, system and device
CN110032571B (en) Business process processing method and device, storage medium and computing equipment
CN110417558B (en) Signature verification method and device, storage medium and electronic device
CN111344706B (en) Method and system for managing transactions on blockchain
US8195743B2 (en) Extensible and programmable multi-tenant service architecture
CN111989705A (en) Priority in licensed block chains
WO2019075978A1 (en) Data transmission method and apparatus, computer device, and storage medium
CN110263035A (en) Data storage, querying method and device and electronic equipment based on block chain
US20170264610A1 (en) Data processing method and apparatus based on mobile application entrance and system
US11539803B2 (en) Highly available private cloud service
CN108683668B (en) Resource checking method, device, storage medium and equipment in content distribution network
EP2715971B1 (en) Automating cloud service reconnections
KR20210131317A (en) Backend architecture method and system for aggregate payment, computer device and storage medium
CN106911648B (en) Environment isolation method and equipment
KR102262093B1 (en) Gateway apparatus, and control method thereof
CN110602108B (en) Data communication method, device, equipment and storage medium based on block chain network
CN112702402A (en) System, method, device, processor and storage medium for realizing government affair information resource sharing and exchange based on block chain technology
CN112101942A (en) Transaction request processing method, system, device and equipment based on block chain
US11038685B1 (en) Correcting blockchain transactions with cryptocurrency type mistakes
CN111932239B (en) Service processing method, device, node equipment and storage medium
WO2019059979A1 (en) Geographic location based computing asset provisioning in distributed computing systems
CN114036236A (en) Multi-gateway cluster system
CN113177179A (en) Data request connection management method, device, equipment and storage medium
CN110071966B (en) Block chain networking and data processing method based on cloud platform
CN111683164B (en) IP address configuration method and VPN service system

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

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

Country of ref document: EP

Kind code of ref document: A1