Business data processing method and device, electronic equipment and storage medium

By identifying the number of concurrent and matching, the problem of batch task processing is solved inapplicable in complex scenarios, and the business data processing in high-concurrency scenarios is realized, which meets user needs and ensures the accuracy of data processing. Sex and safety.

CN119248790APending Publication Date: 2025-01-03CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411518201.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

In the prior art, it is difficult to meet user needs in complex business scenarios through batch task processing, and it is impossible to effectively handle the system pressure caused by high concurrent transfers of the same account.

Method used

By receiving service processing requests, identifying account information, querying the number of concurrency, generating business records, matching thread sets, calculating matching degrees, determining the target thread processing target records, and realizing effective processing of high-concurrent service data.

Benefits of technology

In high concurrency scenarios, business records are generated and temporarily stored in data tables, and gradually processed through business processing tasks to meet different scenarios and user needs, ensuring the accuracy and security of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248790A_ABST
    Figure CN119248790A_ABST
Patent Text Reader

Abstract

The invention discloses a business data processing method and device, electronic equipment and a storage medium, and relates to the technical field of computers. A specific embodiment of the method comprises the steps of receiving a service processing request, identifying account information in service processing data, and querying a concurrent quantity of current service processing corresponding to the account information; in response to the concurrence quantity meeting a preset condition, generating a service record according to the service processing data, and inserting the service record into a preset service data table; in response to triggering of the service processing task, reading account information of each service record in the service data table, and calculating a matching degree between the account information and each thread in the current thread set; and in response to the condition that the matching degree meets a preset threshold value, determining a target thread and a target record corresponding to the matching degree, so as to process the target record through the target thread. According to the embodiment of the invention, the problem that business processing is not applicable in a scene with complex business and cannot meet the demand of user business processing in a batch task processing mode can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for processing business data. Background Art

[0002] In the financial field, business processing supports high concurrent transfers of the same account, but when the same account is processed concurrently, it is easy to put pressure on the business processing system due to too many concurrent transactions. In order to eliminate the impact of concurrency, the relevant technology can group the business processing of each account and process it through batch task processing. However, this method is not applicable in complex business scenarios and cannot meet the needs of user business processing. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a method, device, electronic device and storage medium for business data processing, which can solve the problem that business processing through batch task processing is not applicable in complex business scenarios and cannot meet user business processing needs.

[0004] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for processing business data is provided.

[0005] A method for processing business data in an embodiment of the present invention includes: receiving a business processing request, obtaining corresponding business processing data, identifying account information in the business processing data, querying the concurrent number of the current business processing corresponding to the account information to determine whether a preset condition is met; in response to the concurrent number meeting the preset condition, generating a business record according to the business processing data, and inserting the business record into a preset business data table; in response to a business processing task being triggered, obtaining a current thread set, reading the account information of each business record in the business data table, and calculating the matching degree between the account information and each thread in the current thread set; in response to the matching degree meeting a preset threshold, determining a target thread and a target record corresponding to the matching degree, so as to process the target record through the target thread.

[0006] In one embodiment, the account information of each business record in the business data table is read, and the matching degree between the account information and each thread in the current thread set is calculated, including: obtaining the current hot account set to filter the business records to be processed according to the account information in the business record table and the hot account set; determining the current business records in turn according to the time information of the business records to be processed, and calculating the matching degree with each thread in the current thread set respectively.

[0007] In another embodiment, the separately calculating the degree of match with each thread in the current thread set includes: obtaining account information of the current business record, converting the account information into a preset format, intercepting a character string of preset digits from the account information after the conversion, calling a preset calculation model, and calculating the current identifier of the current business record based on the character string; obtaining an identifier set corresponding to each of the threads, and calculating the degree of match between the current identifier and the identifier set.

[0008] In another embodiment, processing the target record through the target thread includes: obtaining the current concurrent number corresponding to the target record; in response to the current concurrent number satisfying the preset condition, determining the target record as a processing failure, and regenerating the corresponding business record based on the business processing data corresponding to the target record and inserting it into the business data table.

[0009] In another embodiment, it also includes: querying the business end associated with the account information to obtain business processing parameters of the business end; calling a preset calculation model to calculate the processing volume of the account information according to the business processing parameters, so as to update the preset conditions according to the processing volume.

[0010] In another embodiment, the account information includes a payment account and a receiving account; the concurrent number of the current business processing corresponding to the account information is queried to determine whether the preset conditions are met, including: obtaining a first number of the current business processing corresponding to the payment account and a second number of the current business processing corresponding to the receiving account; obtaining a first concurrency threshold of the payment account and a second concurrency threshold of the receiving account; if the first number does not meet the first concurrency threshold and the second number does not meet the second concurrency threshold, it is determined that the preset conditions are met.

[0011] To achieve the above objective, according to another aspect of an embodiment of the present invention, a device for processing business data is provided.

[0012] A device for processing business data in an embodiment of the present invention includes: a query unit, which is used to receive a business processing request, obtain corresponding business processing data, identify account information in the business processing data, and query the concurrent number of current business processing corresponding to the account information; an insertion unit, which is used to generate a business record according to the business processing data in response to the concurrent number meeting a preset condition, and insert the business record into a preset business data table; a calculation unit, which is used to obtain a current thread set in response to a business processing task being triggered, read the account information of each business record in the business data table, and calculate the matching degree between the account information and each thread in the current thread set; a processing unit, which is used to determine a target thread and a target record corresponding to the matching degree in response to the matching degree meeting a preset threshold, so as to process the target record through the target thread.

[0013] In one embodiment, the computing unit is specifically used to: obtain the current hot account set to filter the pending business records according to the account information in the business record table and the hot account set; determine the pending business records as the current business records in sequence according to the time information of the pending business records, and calculate the matching degree with each thread in the current thread set respectively.

[0014] In another embodiment, the computing unit is specifically used to: obtain account information of the current business record, convert the account information into a preset format, intercept a character string of preset digits from the account information after the conversion, call a preset computing model, and calculate the current identifier of the current business record based on the character string; obtain the identifier set corresponding to each of the threads, and calculate the matching degree between the current identifier and the identifier set.

[0015] In another embodiment, the computing unit is specifically used to: obtain the current concurrent number corresponding to the target record; in response to the current concurrent number satisfying the preset condition, determine the target record as a processing failure, regenerate the corresponding business record based on the business processing data corresponding to the target record and insert it into the business data table.

[0016] In another embodiment, the device also includes: an acquisition unit, which is specifically used to query the business end associated with the account information to obtain the business processing parameters of the business end; an update unit, which is used to call a preset calculation model to calculate the processing volume of the account information according to the business processing parameters to update the preset conditions according to the processing volume.

[0017] In another embodiment, the account information includes a payment account and a receiving account; the query unit is specifically used to: obtain a first number of the payment account corresponding to the current business processing and a second number of the receiving account corresponding to the current business processing; obtain a first concurrency threshold of the payment account and a second concurrency threshold of the receiving account; if the first number does not meet the first concurrency threshold and the second number does not meet the second concurrency threshold, it is determined that the preset condition is met.

[0018] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.

[0019] An electronic device according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method for business data processing provided by the embodiment of the present invention.

[0020] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer readable medium is provided.

[0021] A computer-readable medium according to an embodiment of the present invention stores a computer program, which, when executed by a processor, implements the method for processing business data provided by an embodiment of the present invention.

[0022] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer program product is provided.

[0023] A computer program product according to an embodiment of the present invention includes a computer program, and when the program is executed by a processor, the method for processing business data provided by the embodiment of the present invention is implemented.

[0024] An embodiment of the above invention has the following advantages or beneficial effects: In the embodiment of the present invention, when a business processing request is received, the account information in the business processing data can be first identified, and the concurrent number of the corresponding current business processing of the account can be queried to determine whether the preset conditions are met; when it is determined that the concurrent number meets the preset conditions, it can be determined that the concurrent business volume of the account is large. At this time, the business processing data can be used to generate business records and insert them into the business data table; the business processing task is triggered, and the threads in the current thread set are used to process the business records in the business data table. The account information of each business record can be matched with each thread. If the matching degree meets the preset threshold, the correspondence between the business record and the thread can be determined, that is, the target record is processed by the target thread. In an embodiment of the present invention, corresponding business records can be generated for business data with a high concurrency, so as to be processed through business processing tasks later. That is, each business data selects a processing method according to the current state. When the concurrency is large, it can be temporarily stored in the business data table and then processed through business processing tasks, thereby meeting the needs of different scenarios and users; and, in an embodiment of the present invention, multiple threads can be set to process business data according to the matching degree, so that business data of the same account can be processed in the same thread to ensure the accuracy and security of data processing.

[0025] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention. Figure 1 is a schematic diagram of a main process of a method for processing business data according to an embodiment of the present invention; Figure 2 is a schematic diagram of another main flow of a method for processing business data according to an embodiment of the present invention; Figure 3 is a schematic diagram of another main flow of a method for processing business data according to an embodiment of the present invention; Figure 4 is a schematic diagram of main units of an apparatus for processing business data according to an embodiment of the present invention; Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied; Figure 6 It is a schematic diagram of the structure of a computer system suitable for implementing the embodiment of the present invention. DETAILED DESCRIPTION

[0027] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0028] It should be pointed out that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict. The acquisition, transmission, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations. In the embodiments of this application, some existing solutions in the industry such as certain software, components, and models may be mentioned, which should be considered as exemplary. Their purpose is only to illustrate the feasibility of the implementation of the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.

[0029] An embodiment of the present invention provides a business data processing system, which can be used in scenarios where business data is processed, and specifically can be used for business processing in high-concurrency scenarios.

[0030] The embodiment of the present invention provides a method for processing business data, which can be executed by a business data processing system. Figure 1 As shown, the method includes the following steps.

[0031] S101: receiving a business processing request, obtaining corresponding business processing data, identifying account information in the business processing data, and querying the concurrent number of the current business processing corresponding to the account information to determine whether a preset condition is met.

[0032] The business processing request may be sent by an external system or triggered by a business data processing system. The business processing request may include business processing data for business processing, which may include business identification, business type, time information, etc. For example, in payment business processing, the business processing request may be a payment request, which may be sent by the client or by the transaction party, and may include the payment account, the receiving account, time information, amount information, etc.

[0033] In this step, after identifying the account information in the business processing data, the concurrent number of the current business processing corresponding to the account can be queried to determine whether the preset condition is met, that is, to determine whether the current concurrent number of the account meets the preset condition. The preset condition is usually set to the concurrent number not exceeding the preset threshold. When it does not exceed the preset threshold, the business processing data can be directly processed, and when it exceeds the preset threshold, the business processing data can be executed in subsequent steps to avoid excessive system pressure.

[0034] Specifically, in an embodiment of the present invention, account information may include a payment account and a receiving account, and no matter whether the payment account or the receiving account has too high a concurrent number, it is not suitable for direct processing. Therefore, this step can be performed as follows: obtain the first number of the payment account corresponding to the current business processing and the second number of the receiving account corresponding to the current business processing; obtain the first concurrency threshold of the payment account and the second concurrency threshold of the receiving account; if the first number does not meet the first concurrency threshold and the second number does not meet the second concurrency threshold, it is determined that the preset condition is met. The concurrency threshold is preset and can be set based on historical experience or based on the processing capability of the external transaction system corresponding to the account information, such as based on the processing capability of the business end corresponding to the account information.

[0035] In one implementation, in order to process the account information in a timely manner, the embodiments of the present invention can timely update the preset conditions according to the business processing status of the business end. Therefore, the embodiments of the present invention can also be performed as follows: querying the business end associated with the account information to obtain the business processing parameters of the business end; calling the preset calculation model, calculating the processing volume of the account information according to the business processing parameters, and updating the preset conditions according to the processing volume.

[0036] The business end associated with the account information indicates that the business data processing system will feed back the result to the business end after processing the business processing request, so that the business end can perform subsequent processing on the account information. Therefore, in this step, the business processing parameters of the business end can be obtained to calculate the current processing volume of the account information by the business end, so as to update the threshold corresponding to the account information based on the processing volume, and then realize the update of the preset conditions. Among them, the calculation model can be set according to the calculation requirements, the business processing parameters can be set based on the requirements, the processing volume of the account information can represent the business processing volume corresponding to the account information within a preset time period or the processing rate of the business corresponding to the account information within a preset time period, etc. The business processing parameters can be the business processing parameters of the business end within the preset time period, such as the number of businesses processed, and then the business volume corresponding to the account information can be calculated.

[0037] It should be noted that, in the embodiment of the present invention, business data can be stored in the redis cache, so the concurrent number of account information corresponding to the current business processing can be queried through the redis cache technology.

[0038] S102: In response to the concurrent quantity satisfying a preset condition, generating a business record according to the business processing data, and inserting the business record into a preset business data table.

[0039] Among them, the concurrent number meets the preset conditions, which means that the concurrent number corresponding to the account information is large and exceeds the preset threshold, so it cannot be processed directly. At this time, it can be processed according to the business processing data, that is, business records are generated and inserted into the preset business data table. The business data table is pre-set and can be used to store business records, which can specifically include account information, time information, etc. of the business data for subsequent business processing.

[0040] Specifically, in this step, when generating a business record, the processing status of the business record can also be generated to mark and reflect the progress of the business processing. The processing status can include pending, processing, and completed. In this step, after the business record is generated, its processing status can be determined to be pending, and it can be updated later according to the processing progress until the business record is cleared from the business data table after the processing is completed.

[0041] S103: In response to the business processing task being triggered, the current thread set is obtained, the account information of each business record in the business data table is read, and the matching degree between the account information and each thread in the current thread set is calculated.

[0042] Among them, the business processing task can be automatically triggered, for example, it can be a periodic self-triggered task, and the period can be set according to the demand, so as to timely process the business records in the business data table. The business processing task represents the task of processing the business records in the business data table. In the embodiment of the present invention, a thread set for processing the business records can be preset, and the thread set can include multiple threads, and the thread data can be preset. In order to allow the business records of the same account to be processed in the same thread, in this step, the account information of each business record can be matched with each thread in the current thread set, and the corresponding matching degree can be calculated to determine the thread for processing each business record according to the matching degree.

[0043] Specifically, since the account in the business record belongs to a hot account, it means that the corresponding concurrency is still large at this time, so it is impossible to process the business record. Therefore, in this step, the current hot account set and the account information in the business record table can be compared to filter out the pending business records that do not belong to the hot account from the business record table, and then the subsequent processing can be carried out in sequence according to the time information in the pending business records. Therefore, this step can be specifically performed as follows: obtain the current hot account set to filter the pending business records according to the account information in the business record table and the hot account set; determine the current business records in turn according to the time information of the pending business records, and calculate the matching degree with each thread in the current thread set respectively. The current hot account set can be data updated in real time by the business data processing system.

[0044] In an embodiment of the present invention, the method for calculating the degree of matching can be specifically as follows: obtaining the account information of the current business record, converting the account information into a preset format, intercepting a character string of preset digits from the account information after the conversion, calling a preset calculation model, and calculating the current identifier of the current business record according to the character string; obtaining the identifier set corresponding to each thread, and calculating the degree of matching between the current identifier and the identifier set. The identifier set can represent the identifier corresponding to the account information processed by the thread, so by comparing the current identifier with the identifier set, it can be determined whether the current identifier belongs to the identifier set. If so, the degree of matching can be determined to be a first value, and if not, the degree of matching can be determined to be a second value. The calculation model in this step can be preset, such as a hash calculation model. The preset format can be set according to requirements, such as binary, etc., and the preset number of digits can also be set according to calculation requirements.

[0045] It should be noted that the method for calculating the matching degree between the account information and each thread in the current thread set in this step may not be limited. For example, the account number in the account information may be calculated by dividing the remainder by the corresponding concurrent number. If there is a thread identifier that is the same as the remainder, it can be determined that the account information matches the thread, and the matching degree between the two may be determined to be a first value, and the matching degree between the account information and other threads may be a second value.

[0046] S104: In response to the matching degree satisfying a preset threshold, determining a target thread and a target record corresponding to the matching degree, so as to process the target record through the target thread.

[0047] The corresponding relationship between the thread and the business record can be determined according to the matching degree, and then the business record can be processed. The preset threshold can also be set according to the specific scenario, for example, it can be set to the first value, so if the matching degree is the first value, it can be determined that it meets the preset threshold.

[0048] It should be noted that in the embodiment of the present invention, when processing a business record, its concurrency can be judged. If its concurrency is high, it can be determined that the business record processing fails first, and then the business record is regenerated and stored in the business data table to wait for subsequent processing. That is, it can be executed as follows: obtain the current concurrency corresponding to the target record; in response to the current concurrency meeting the preset condition, determine the target record as a processing failure, regenerate the corresponding business record based on the business processing data corresponding to the target record and insert it into the preset business data table for subsequent reprocessing.

[0049] In an embodiment of the present invention, corresponding business records can be generated for business data with a high concurrency, so as to be processed through business processing tasks later. That is, each business data selects a processing method according to the current state. When the concurrency is large, it can be temporarily stored in the business data table and then processed through business processing tasks, thereby meeting the needs of different scenarios and users; and, in an embodiment of the present invention, multiple threads can be set to process business data according to the matching degree, so that business data of the same account can be processed in the same thread to ensure the accuracy and security of data processing.

[0050] Combine the following Figure 1 The embodiment shown in the figure specifically describes the method for processing business data in the embodiment of the present invention. Figure 2 As shown, the method includes the following steps.

[0051] S201: receiving a business processing request, obtaining corresponding business processing data, identifying account information in the business processing data, and querying the concurrent number of the current business processing corresponding to the account information to determine whether a preset condition is met.

[0052] S202: In response to the concurrent quantity not satisfying a preset condition, the business processing data is processed.

[0053] S203: In response to the concurrent quantity satisfying the preset condition, generating a business record according to the business processing data, and inserting the business record into a preset business data table.

[0054] S204: In response to the business processing task being triggered, the current thread set is obtained, and the account information of each business record in the business data table is read.

[0055] S205: Obtain the current hotspot account set to filter the business records to be processed according to the account information and the hotspot account set in the business record table.

[0056] S206: Determine the current business records in sequence according to the time information of the business records to be processed, and calculate the matching degree with each thread in the current thread set respectively.

[0057] S207: In response to the matching degree satisfying a preset threshold, determining a target thread and a target record corresponding to the matching degree, so as to process the target record through the target thread.

[0058] It should be noted that the data processing principle in the embodiment of the present invention is the same as Figure 1 The corresponding data processing principles in the illustrated embodiments are the same and will not be described in detail here.

[0059] Combine the following Figure 1 The embodiment shown in the figure specifically describes the method for processing business data in the embodiment of the present invention. Figure 3As shown, the method includes the following steps.

[0060] S301: receiving a business processing request, obtaining corresponding business processing data, and identifying account information in the business processing data.

[0061] S302: Obtain a first number of current business processing corresponding to the paying account and a second number of current business processing corresponding to the receiving account; obtain a first concurrency threshold of the paying account and a second concurrency threshold of the receiving account.

[0062] S303: If the first number does not satisfy the first concurrency threshold and the second number does not satisfy the second concurrency threshold, it is determined that the preset condition is satisfied.

[0063] S304: In response to the concurrent quantity satisfying the preset condition, generating a business record according to the business processing data, and inserting the business record into a preset business data table.

[0064] S305: In response to the business processing task being triggered, the current thread set is obtained, the account information of each business record in the business data table is read, and the matching degree between the account information and each thread in the current thread set is calculated.

[0065] S306: In response to the matching degree satisfying a preset threshold, determining a target thread and a target record corresponding to the matching degree, so as to process the target record through the target thread.

[0066] It should be noted that the data processing principle in the embodiment of the present invention is the same as Figure 1 The corresponding data processing principles in the illustrated embodiments are the same and will not be described in detail here.

[0067] In order to solve the problems existing in the prior art, an embodiment of the present invention provides a device 400 for processing business data, such as Figure 4 As shown, the device 400 includes: a query unit 401, which is used to receive a business processing request, obtain corresponding business processing data, identify account information in the business processing data, and query the concurrent number of the current business processing corresponding to the account information; an insertion unit 402, which is used to generate a business record according to the business processing data in response to the concurrent number meeting a preset condition, and insert the business record into a preset business data table; a calculation unit 403, which is used to obtain the current thread set in response to the business processing task being triggered, read the account information of each business record in the business data table, and calculate the matching degree between the account information and each thread in the current thread set; a processing unit 404, which is used to determine the target thread and target record corresponding to the matching degree in response to the matching degree meeting a preset threshold, so as to process the target record through the target thread.

[0068] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 1The method of the illustrated embodiment is the same and will not be repeated here.

[0069] In one embodiment, the calculation unit 403 is specifically used to: obtain the current hot account set to filter the business records to be processed according to the account information in the business record table and the hot account set; determine the current business records in turn according to the time information of the business records to be processed, and calculate the matching degree with each thread in the current thread set respectively.

[0070] In another embodiment, the calculation unit 403 is specifically used to: obtain the account information of the current business record, convert the account information into a preset format, intercept a character string of preset digits from the account information after the conversion, call a preset calculation model, and calculate the current identifier of the current business record according to the character string; obtain the identifier set corresponding to each of the threads, and calculate the matching degree between the current identifier and the identifier set.

[0071] In another embodiment, the calculation unit 403 is specifically used to: obtain the current concurrent number corresponding to the target record; in response to the current concurrent number satisfying the preset condition, determine the target record as a processing failure, regenerate the corresponding business record based on the business processing data corresponding to the target record and insert it into the business data table.

[0072] In yet another embodiment, the apparatus 400 further includes: an acquisition unit, specifically configured to query a service end associated with the account information to acquire a service processing parameter of the service end;

[0073] An updating unit is used to call a preset calculation model to calculate the processing volume of the account information according to the business processing parameters, so as to update the preset condition according to the processing volume.

[0074] In another embodiment, the account information includes a payment account and a receiving account; the query unit 401 is specifically used to: obtain a first number of the payment account corresponding to the current business processing and a second number of the receiving account corresponding to the current business processing; obtain a first concurrency threshold of the payment account and a second concurrency threshold of the receiving account; if the first number does not meet the first concurrency threshold and the second number does not meet the second concurrency threshold, it is determined that the preset condition is met.

[0075] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 1 , 2 , and 3 are the same as the embodiments shown in FIG. 3 and will not be described again here.

[0076] In an embodiment of the present invention, corresponding business records can be generated for business data with a high concurrency, so as to be processed through business processing tasks later. That is, each business data selects a processing method according to the current state. When the concurrency is large, it can be temporarily stored in the business data table and then processed through business processing tasks, thereby meeting the needs of different scenarios and users; and, in an embodiment of the present invention, multiple threads can be set to process business data according to the matching degree, so that business data of the same account can be processed in the same thread to ensure the accuracy and security of data processing.

[0077] According to an embodiment of the present invention, the embodiment of the present invention further provides an electronic device and a readable storage medium.

[0078] The electronic device of an embodiment of the present invention includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the method for business data processing provided by the embodiment of the present invention.

[0079] Figure 5 An exemplary system architecture 500 is shown to which the method or apparatus for processing business data according to the embodiments of the present invention may be applied.

[0080] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0081] The user can use the terminal devices 501, 502, 503 to interact with the server 505 through the network 504 to receive or send messages, etc. Various client applications can be installed on the terminal devices 501, 502, 503.

[0082] The terminal devices 501 , 502 , and 503 may be, but are not limited to, smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0083] The server 505 may be a server that provides various services. The server may analyze and process the received data such as the product information query request, and feed back the processing result (such as product information - just an example) to the terminal device.

[0084] It should be noted that the method for processing business data provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the device for processing business data is generally disposed in the server 505 .

[0085] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0086] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 suitable for implementing an embodiment of the present invention. Figure 6 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0087] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0088] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0089] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.

[0090] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0091] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a unit, a program segment, or a part of a code, and the above-mentioned unit, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0092] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a query unit, an insertion unit, a calculation unit, and a processing unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the query unit may also be described as a "query function unit".

[0093] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device executes the method for processing business data provided by the present invention.

[0094] As another aspect, the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the business data processing method provided in an embodiment of the present invention.

[0095] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for processing business data, characterized in that: include: Receive a business processing request, obtain corresponding business processing data, identify account information in the business processing data, and query the concurrent number of current business processing corresponding to the account information to determine whether a preset condition is met; In response to the concurrent quantity satisfying the preset condition, generating a business record according to the business processing data, and inserting the business record into a preset business data table; In response to a business processing task being triggered, a current thread set is obtained, account information of each business record in the business data table is read, and a matching degree between the account information and each thread in the current thread set is calculated; In response to the matching degree satisfying a preset threshold, a target thread and a target record corresponding to the matching degree are determined, so as to process the target record through the target thread.

2. The method according to claim 1, characterized in that Reading account information of each business record in the business data table, and calculating the matching degree between the account information and each thread in the current thread set, including: Obtaining the current hotspot account set to filter the business records to be processed according to the account information in the business record table and the hotspot account set; According to the time information of the to-be-processed business records, the current business records are determined in sequence, and the matching degree with each thread in the current thread set is calculated respectively.

3. The method according to claim 2, characterized in that The respectively calculating the matching degree with each thread in the current thread set includes: Acquire the account information of the current business record, convert the account information into a preset format, intercept a character string of preset digits from the account information after the conversion, call a preset calculation model, and calculate the current identifier of the current business record according to the character string; Obtain an identifier set corresponding to each of the threads, and calculate a matching degree between the current identifier and the identifier set.

4. The method according to claim 1, characterized in that: Processing the target record by the target thread includes: Get the current concurrent number corresponding to the target record; In response to the current concurrent number satisfying the preset condition, the target record is determined to be a processing failure, and a corresponding business record is regenerated based on the business processing data corresponding to the target record and inserted into the business data table.

5. The method according to claim 1, characterized in that: Also includes: Querying the business end associated with the account information to obtain business processing parameters of the business end; A preset calculation model is called to calculate the processing volume of the account information according to the business processing parameters, so as to update the preset condition according to the processing volume.

6. The method according to claim 1, characterized in that The account information includes a payment account and a receiving account; Query the concurrent number of current business processing corresponding to the account information to determine whether the preset conditions are met, including: Obtaining a first quantity of the payment account corresponding to the current business processing and a second quantity of the payment receiving account corresponding to the current business processing; Obtaining a first concurrency threshold of the payment account and a second concurrency threshold of the payment receiving account; If the first number does not satisfy the first concurrency threshold and the second number does not satisfy the second concurrency threshold, it is determined that the preset condition is satisfied.

7. A device for processing business data, characterized in that: include: A query unit, configured to receive a business processing request, obtain corresponding business processing data, identify account information in the business processing data, and query the concurrent number of current business processing corresponding to the account information; An inserting unit, configured to generate a business record according to the business processing data in response to the concurrent quantity satisfying a preset condition, and insert the business record into a preset business data table; A calculation unit, configured to, in response to a business processing task being triggered, obtain a current thread set, read account information of each business record in the business data table, and calculate a matching degree between the account information and each thread in the current thread set; The processing unit is configured to determine, in response to the matching degree satisfying a preset threshold, a target thread and a target record corresponding to the matching degree, so as to process the target record through the target thread.

8. The device according to claim 7, characterized in that The computing unit is specifically used for: Obtaining the current hotspot account set to filter the business records to be processed according to the account information in the business record table and the hotspot account set; According to the time information of the to-be-processed business records, the current business records are determined in sequence, and the matching degree with each thread in the current thread set is calculated respectively.

9. The device according to claim 8, characterized in that The computing unit is specifically used for: Acquire the account information of the current business record, convert the account information into a preset format, intercept a character string of preset digits from the account information after the conversion, call a preset calculation model, and calculate the current identifier of the current business record according to the character string; Obtain an identifier set corresponding to each of the threads, and calculate a matching degree between the current identifier and the identifier set.

10. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

11. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

12. A computer program product, comprising a computer program, characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.