A method and device for business data interaction

By dividing business data into data segments and interacting with them segment by segment, the problem of excessive interactions between the business system and the data processing center is solved, and system performance is improved.

CN112541025BActive Publication Date: 2025-09-16BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201910901125.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-23
Publication Date
2025-09-16
Estimated Expiration
2039-09-23

AI Technical Summary

Technical Problem

In the prior art, when a business system interacts with a data processing center for business data, especially when the amount of data is large, the number of interactions is too high, resulting in interface timeouts and affecting system performance.

Method used

Divide business data into data segments and then interact with them. Interact with the data processing center through the data segments, and process the unsuccessful data one by one when processing fails, reducing the number of interactions.

Benefits of technology

Through the data segment interaction mode, the number of interactions with the data processing center is reduced, interface timeout is avoided, and system performance is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112541025B_ABST
    Figure CN112541025B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and apparatus for business data interaction, relating to the field of computer technology. A specific implementation of the method includes: obtaining a business request, wherein the business request carries at least two pieces of business data; dividing the at least two pieces of business data into at least one data segment, wherein each data segment includes at least one piece of business data; sending the at least one data segment to a data processing center; and receiving the processing result of the at least one data segment by the data processing center. This implementation reduces the number of interactions, avoids interaction interface timeouts, and improves system performance.
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 and device for business data interaction. Background Art

[0002] When processing business, business systems usually need to interact with other business systems or data processing centers for business data.

[0003] Currently, business systems and data processing centers typically exchange business data on a case-by-case basis. For example, when processing settlement transactions, a business system such as a settlement system sends billing items one by one to the data processing center, which then returns query results for each billing item. If the query results for each billing item indicate that the billing item exists in the data processing center, the settlement system can generate a corresponding settlement statement for each billing item.

[0004] In the process of implementing the present invention, the inventors discovered that the prior art has at least the following problems:

[0005] When the amount of business data is large, adopting the above-mentioned interaction method one by one will result in too many interactions between the business system and the data processing center. Summary of the Invention

[0006] In view of this, an embodiment of the present invention provides a business data interaction method and device, which can reduce the number of interactions, avoid interaction interface timeouts, and improve system performance.

[0007] To achieve the above-mentioned purpose, according to the first aspect of an embodiment of the present invention, a method for business data interaction is provided, which is characterized in that it includes: obtaining a business request, wherein the business request carries at least two business data; dividing the at least two business data into at least one data segment, wherein each of the data segments includes at least one business data; sending the at least one data segment to a data processing center; and receiving the processing result of the at least one data segment by the data processing center.

[0008] Optionally, the method for business data interaction is characterized in that, when the processing result is processing failure, it further includes: A1: for the data segment whose processing result is processing failure: selecting a business data from the data segment as current business data; A2: sending the current business data to the data processing center, so that the data processing center queries whether there is a business record corresponding to the current business data; A3: receiving the query result of the data processing center on the current business data, executing A1 if the query result is that the business record exists, and executing A4 if the query result is that the business record does not exist; A4: determining that the processing result of the business request is processing failure, and returning the processing result of the business request and the current business data to the source system that sent the business request.

[0009] Optionally, the method for interacting with business data is characterized in that, when the number of the data segments is at least two, sending the data segments to a data processing center and receiving a processing result of the data segments by the data processing center include: B1: selecting a data segment that has not been sent from the at least two data segments as a current data segment;

[0010] B2: Send the current data segment to the data processing center; B3: Receive the processing result of the current data segment by the data processing center. If the processing result of the current data segment is successful, determine whether there is the data segment that has not been sent. If so, execute B1, otherwise execute B4; B4: Determine that the processing result of the business request is successful.

[0011] Optionally, the method for business data interaction is characterized in that dividing the at least two business data into at least one data segment includes: determining a threshold number of business data in each of the data segments; dividing the at least two business data into at least one data segment based on the threshold number; wherein the absolute value of the difference between the actual number of business data in the data segment and the threshold number is not greater than the preset absolute value of the difference.

[0012] Optionally, the method for interacting with business data is characterized in that determining the threshold amount of business data in each of the data segments includes: determining the threshold amount using the following relationship based on a predetermined data processing success rate corresponding to the data processing center and the amount of business data, wherein the data processing success rate is greater than 0 and less than 1;

[0013]

[0014] Wherein, n represents the threshold number, x represents the amount of the business data, and y represents the data processing success rate.

[0015] Optionally, the method for business data interaction is characterized in that, after receiving the processing result of the data processing center on the data segment, it further includes: updating the data processing success rate according to the processing result.

[0016] To achieve the above-mentioned purpose, according to the second aspect of an embodiment of the present invention, a device for business data interaction is provided, which is characterized in that it includes: a request acquisition module, a data partitioning module and an interaction module; wherein the request acquisition module is used to obtain a business request, wherein the business request carries at least two business data; the data partitioning module is used to divide the at least two business data into at least one data segment, wherein each of the data segments includes at least one business data; the interaction module is used to send the at least one data segment to a data processing center, and receive the processing results of the data segment by the at least one data processing center.

[0017] Optionally, the device for business data interaction is characterized in that the interaction module is further used to, when the processing result is processing failure, for the data segment with the processing result being processing failure: select a business data from the data segment as current business data; send the current business data to the data processing center, so that the data processing center queries whether there is a business record corresponding to the current business data; receive the query result of the data processing center on the current business data, and when the query result is that the business record exists, execute: select a business data from the data segment as current business data, and when the query result is that the business record does not exist, execute: determine that the processing result of the business request is processing failure, and return the processing result of the business request and the current business data to the source system that sent the business request.

[0018] Optionally, the method for business data interaction is characterized in that, when the number of the data segments divided by the data division module is at least two, the interaction module includes: a data segment selection unit, a data segment sending unit, a result receiving unit and a result determination unit; wherein, the data segment selection unit is used to select an unsent data segment from at least two of the data segments as the current data segment; the data segment sending unit is used to send the current data segment to the data processing center; the result receiving unit is used to receive the processing result of the current data segment by the data processing center, and when the processing result of the current data segment is successful, determine whether there is the unsent data segment, and if so, trigger the data segment selection unit, otherwise trigger the result determination unit; the result determination unit is used to determine that the processing result of the business request is successful when the processing result of each of the data segments is successful.

[0019] Optionally, the method for business data interaction is characterized in that the data partitioning module is used to determine a threshold number of business data in each of the data segments, and divide the at least two business data into at least one data segment based on the threshold number; wherein the absolute value of the difference between the actual number of business data in the data segment and the threshold number is not greater than the preset absolute value of the difference.

[0020] Optionally, the method for interacting with business data is characterized in that the data partitioning module is used to determine the threshold quantity using the following relationship based on a predetermined data processing success rate corresponding to the data processing center and the quantity of the business data, wherein the data processing success rate is greater than 0 and less than 1;

[0021]

[0022] Wherein, n represents the threshold number, x represents the amount of the business data, and y represents the data processing success rate.

[0023] Optionally, the business data interaction method is characterized in that the data partitioning module is further used to update the data processing success rate according to the processing result.

[0024] To achieve the above-mentioned purpose, according to the third aspect of an embodiment of the present invention, a server for business data interaction is provided, characterized in that it includes: 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 any of the methods described in the above-mentioned business data interaction methods.

[0025] To achieve the above-mentioned purpose, according to the fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, characterized in that when the program is executed by a processor, any method as described in the above-mentioned method for business data interaction is implemented.

[0026] One embodiment of the above invention has the following advantages or beneficial effects: after receiving a service request carrying at least two pieces of business data, the at least two pieces of business data are divided into at least one data segment, the data segment is then sent to a data processing center, and the data processing center receives the processing results of the data segment. Because the number of data segments after the business data is divided is less than the number of business data, at least one data segment includes at least two pieces of business data. This reduces the number of interactions with the data processing center via the data segments, thereby avoiding interaction interface timeouts and improving system performance.

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

[0028] The accompanying drawings are provided for a better understanding of the present invention and are not intended to limit the present invention.

[0029] Figure 1 This is a schematic diagram of the main process of a method for business data interaction provided in accordance with the first embodiment of the present invention;

[0030] Figure 2 This is a flowchart of a method for business data interaction provided according to the second embodiment of the present invention.

[0031] Figure 3 1 is a schematic diagram of main modules of a device for business data interaction provided according to a third embodiment of the present invention;

[0032] Figure 4 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;

[0033] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The following description of exemplary embodiments of the present invention is made in conjunction with the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding. These details should be considered as merely exemplary. Therefore, it should be appreciated by those skilled 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 the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0035] Typically, when business systems interact with data processing centers, they do so one by one. When the volume of business data is large, this can lead to excessive interactions between the two centers, causing the interface to time out.

[0036] Example 1

[0037] like Figure 1 As shown, an embodiment of the present invention provides a method for business data interaction, which may include the following steps:

[0038] Step S101: Obtain a service request, wherein the service request carries at least two pieces of service data;

[0039] Step S102: Divide the at least two pieces of business data into at least one data segment, wherein each of the data segments includes at least one piece of business data;

[0040] It is understood that when a service request carries two pieces of service data, the two pieces of service data are divided into one data segment, which includes the two pieces of service data. When a service request carries more than two pieces of service data, at least one data segment contains more than one piece of service data.

[0041] Optionally, in order to further reduce the number of interactions, the threshold number of business data in each data segment can be determined using equation (1) based on the predetermined data processing success rate corresponding to the data processing center and the number of business data:

[0042]

[0043] The data processing success rate is greater than 0 and less than 1, n represents the threshold number, x represents the amount of business data, and y represents the data processing success rate.

[0044] Then, the at least two pieces of business data are divided into at least one data segment according to the threshold quantity; wherein the absolute value of the difference between the actual quantity of business data in the data segment and the threshold quantity is not greater than the preset absolute value of the difference.

[0045] The data processing success rate is the continuous processing success rate of the data processing center for each data segment in a business request. For example, business request A contains 1,000 pieces of business data. The business system divides these 1,000 pieces of business data into 10 data segments, each containing 100 pieces of business data. The business system then sends these 10 data segments to the data processing center in sequence. The data processing center processes the business data in the received data segments. When all 100 pieces of business data in a data segment are successfully processed, a successful processing result for that data segment is returned to the business system. If the processing result for a data segment is unsuccessful, the business system will no longer send the data segment to the data processing center. In this case, the data processing success rate can be calculated as the ratio of the number of successfully processed data segments to the total number of data segments. For example, if the processing result for the fourth data segment sent by the business system is unsuccessful, the data processing center's data processing success rate for business request A is 3 / 10.

[0046] It is understood that when using the above relationship (1) to determine the threshold number, the average of the data processing success rates of the data processing center for multiple business requests within a certain period of time can be used as the actual data processing success rate in the calculation. For example, if the data processing center processes the business data corresponding to business request A and business request B within 1 minute, and the data processing success rate for business request A is 3 / 10, and the data processing success rate for business request B is 5 / 10, then when using the above relationship (1), y = 4 / 10.

[0047] After determining the data processing success rate, the above-mentioned relation (1) can be used to determine the threshold number of business data for each data segment to be divided. In this example, y = 4 / 10 is substituted into relation (1), and the value of n when relation (1) takes the minimum value is the threshold number of business data in each data segment. Then, the business data in the business request can be divided according to the determined threshold number, so that the absolute value of the difference between the actual number of business data in each data segment and the threshold number is not greater than the preset absolute value of the difference. For example, when the determined threshold number is a non-integer (taking 31.5 as an example), the actual number of business data in each data segment can be 31 or 32. When the last data segment is divided, the number of remaining business data may be less than 31. At this time, the remaining business data can be divided into the last data segment, or the remaining business data can be divided into each of the previously divided data segments. For example, 10 data segments have been divided, the actual number of business data in each data segment is 31, and the remaining business data is 5. Then these 5 remaining business data can be divided into the 11th data segment, or these 5 remaining business data can be divided into 5 of the 10 divided data segments, so that among the 10 data segments, the actual number of business data in 5 data segments is increased to 32, and the actual number of business data in the other 5 data segments remains 31.

[0048] Step S103: Send the at least one data segment to a data processing center.

[0049] Step S104: receiving the processing result of the at least one data segment by the data processing center.

[0050] It is understandable that the data processing center can return processing results to the business system for each piece of business data in each data segment. In this embodiment, in order to further reduce the number of interactions, a method of returning processing results for each data segment is adopted. For example, a data segment includes 100 pieces of business data. When all 100 pieces of business data are successfully processed, the data processing center returns a processing result indicating successful processing of the data segment to the business system. If there is any business data that has not been successfully processed among the 100 pieces of business data, the data processing center returns a processing result indicating failed processing of the data segment to the business system.

[0051] Optionally, when there are at least two divided data segments, the following steps are executed in a loop until all data segments are sent to the data processing center or the processing result of a data segment is unsuccessful: select a data segment that has not been sent from at least two of the data segments as the current data segment; send the current data segment to the data processing center; receive the processing result of the current data segment by the data processing center, and when the processing result of the current data segment is successful, determine whether the data segment that has not been sent exists. If so, select a data segment that has not been sent as the current data segment. Otherwise, determine that the processing result of the business request is successful, and then generate a business document corresponding to the business request. For example, in a settlement scenario, a settlement bill corresponding to the settlement request can be generated, and the generated business document can be output to the source system that sent the business request, and then end the current process.

[0052] Optionally, when the processing result of the current data segment is unsuccessful processing, a business data is selected from the current data segment as the current business data, and the current business data is sent to the data processing center so that the data processing center queries whether there is a business record corresponding to the current business data, and receives the query result of the data processing center on the current business data. When the query result is that the business record exists, another business data is selected from the current data segment as the current business data, and the current business data is sent to the data processing center, and this cycle is repeated. When the query result is that the business record does not exist, it is determined that the processing result of the business request is a processing failure, and the processing result of the business request and the current business data are returned to the source system that sent the business request.

[0053] From the above process, it can be seen that for a data segment that is successfully processed, the business system and the data processing center only need to interact once. For a data segment that is not successfully processed, the business data in the data segment must be sent to the data processing center one by one to determine the business data that caused the data segment to be processed unsuccessfully. In the process of sending business data one by one, the first business data sent may be the business data that caused the data segment to be processed unsuccessfully, or the last business data sent may be the business data that caused the data segment to be processed unsuccessfully. Therefore, based on statistical theory, for a data segment that is not successfully processed, the number of interactions with the data processing center is n / 2 times, where n is the actual number of business data in the data segment. This is also the theoretical basis for determining the relationship (1). Business data is divided according to an appropriate threshold number to reduce the number of interactions between the business system and the data processing center.

[0054] In addition, it can be seen from the above process that for a business request carrying x pieces of business data, if the one-by-one interaction method in the prior art is adopted, the business system needs to interact with the data processing center x times. However, using the business data interaction method provided by the embodiment of the present invention, when the actual number of business data in a data segment is n (n>1), if the processing result of each data segment is successful, the number of interactions between the business system and the data processing center is x / n times, which is reduced by n times compared to the prior art. If the processing result of a data segment is a processing failure, the number of interactions between the business system and the data processing center is (xy / n+n / 2), where y is the continuous processing success rate of the data processing center for each data segment in the business request. Compared to the prior art, the number of interactions is also greatly reduced.

[0055] Optionally, after obtaining the processing results from the data processing center, the data processing success rate can be updated based on the processing results. For example, the initial data processing success rate is 4 / 10. According to the processing results of the data processing center this time, it is determined that the processing results of 8 data segments are successfully processed, and the total number of data segments is 10, that is, the data processing success rate this time is 8 / 10. Then, after obtaining the processing results from the business center, the data processing success rate can be updated to 6 / 10. Then, when the business data is divided next time, when the threshold number of data segments is determined using relational formula (1), the value of the data processing success rate y in relational formula (1) is 6 / 10. Therefore, updating the data processing success rate during the data processing process is conducive to determining a better threshold number to further reduce the number of interactions.

[0056] Example 2

[0057] This embodiment 2 takes the settlement scenario as an example to explain in detail the business data interaction method provided by the embodiment of the present invention. Figure 2 As shown, the service data interaction method provided in the second embodiment may include the following steps:

[0058] Step S201: The business system obtains a business request sent by a source system, wherein the business request carries 100 billing details.

[0059] Step S202: The business system divides the 100 billing details in the business request into 10 data segments, each data segment including 10 billing details.

[0060] Step S203: The business system selects an unsent data segment from the 10 data segments as the current data segment, and sends the current data segment to the data processing center.

[0061] Step S204: receiving the processing result of the data processing center on the current data segment.

[0062] Upon receiving the current data segment, the data processing center determines for each billing detail in the current data segment whether a corresponding billing record exists. If a corresponding billing record exists for each billing detail, the data processing center returns a successful processing result for the current data segment; otherwise, it returns a failed processing result.

[0063] Step S205: Determine whether the processing result of the current data segment is successful. If yes, execute step S206; otherwise, execute step S207.

[0064] Step S206: Determine whether there is any data segment that has not been sent. If so, execute step S203; otherwise, execute step S211.

[0065] Step S207: Select one billing detail from the 10 billing details of the current data segment as the current billing detail, and send the current billing detail to the data processing center.

[0066] It is understandable that when the current billing details are selected again from the 10 billing details, the previously selected billing details will no longer be selected as the current billing details to reduce the number of interactions.

[0067] Step S208: Receive the query result of the current billing details from the data processing center.

[0068] When the data processing center receives the current billing details, it checks whether there is a billing record corresponding to the current billing details. If so, it returns the query result of the current billing details query success to the business system; otherwise, it returns the query result of the query failure.

[0069] Step S209: Determine whether the query result of the current billing details is successful. If yes, execute step S207; otherwise, execute step S210.

[0070] Step S210: Determine that the processing result of the business request is a processing failure, and return the processing result of the processing failure and the current billing details to the source system.

[0071] Step S211: Determine that the processing result of the business request is successful, generate a settlement document corresponding to the business request, and return the settlement document to the source system.

[0072] Example 3

[0073] like Figure 3As shown, an embodiment of the present invention provides a device 300 for business data interaction, comprising: a request acquisition module 301, a data partitioning module 302, and an interaction module 303; wherein the request acquisition module 301 is used to obtain a business request, wherein the business request carries at least two pieces of business data;

[0074] The data division module 302 is configured to divide the at least two pieces of business data into at least one data segment, wherein each of the data segments includes at least one piece of business data;

[0075] The interaction module 303 is configured to send the at least one data segment to a data processing center and receive a processing result of the at least one data segment by the data processing center.

[0076] It is understandable that the device for business data interaction provided in the third embodiment has the same functions and processing logic as the business system described above, and the two are only different in name in different embodiments.

[0077] Optionally, the interaction module 303 is further used to, when the processing result is processing failure, select a piece of business data from the data segment as the current business data; send the current business data to the business processing center data processing center, so that the business processing center data processing center queries whether there is a business record corresponding to the current business data; receive the query result of the business processing center data processing center on the current business data, and when the query result is that the business record exists, execute: select a piece of business data from the data segment as the current business data, and when the query result is that the business record does not exist, execute: determine that the processing result of the business request is processing failure, and return the processing result of the business request and the current business data to the source system that sent the business request.

[0078] Optionally, when the number of data segments divided by the data division module is at least two, the interaction module includes: a data segment selection unit, a data segment sending unit, a result receiving unit and a result determination unit; wherein the data segment selection unit is used to select an unsent data segment from at least two of the data segments as the current data segment; the data segment sending unit is used to send the current data segment to the data processing center; the result receiving unit is used to receive the processing result of the current data segment by the data processing center, and when the processing result of the current data segment is successful, determine whether there is an unsent data segment, and if so, trigger the data segment selection unit, otherwise trigger the result determination unit; the result determination unit is used to determine that the processing result of the business request is successful when the processing result of each of the data segments is successful.

[0079] Optionally, the data partitioning module 302 is used to determine a threshold number of business data in each of the data segments, and divide the at least two business data into at least one data segment based on the threshold number; wherein the absolute value of the difference between the actual number of business data in the data segment and the threshold number is not greater than the preset absolute value of the difference.

[0080] Optionally, the data partitioning module 302 is configured to determine the threshold number based on a predetermined data processing success rate corresponding to the data processing center and the amount of the business data using the following relationship, wherein the data processing success rate is greater than 0 and less than 1;

[0081]

[0082] Wherein, n represents the threshold number, x represents the amount of the business data, and y represents the data processing success rate.

[0083] Optionally, the data partitioning module 302 is further configured to update the data processing success rate according to the processing result.

[0084] An embodiment of the present invention also provides a server for business data interaction, comprising: 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 provided in any of the above embodiments.

[0085] An embodiment of the present invention further provides a computer-readable medium having a computer program stored thereon, and when the program is executed by a processor, the method provided in any of the above embodiments is implemented.

[0086] Figure 4An exemplary system architecture 400 is shown to which the business data interaction method or business data interaction apparatus according to the embodiment of the present invention can be applied.

[0087] like Figure 4 As shown, system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0088] Users can use terminal devices 401, 402, and 403 to interact with server 405 via network 404 to receive or send messages, etc. Terminal devices 401, 402, and 403 can be various electronic devices with display screens and support web browsing, including but not limited to smartphones, tablet computers, laptop computers, and desktop computers, etc.

[0089] Server 405 may be a server that provides various services, such as a backend management server that supports shopping websites browsed by users using terminal devices 401, 402, and 403. The backend management server may analyze and process received data such as product information query requests, and feed back processing results (e.g., processing results of service requests) to the terminal devices.

[0090] It should be noted that the business data interaction method provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the business data interaction device is generally provided in the server 405 .

[0091] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.

[0092] Reference below Figure 5 , which shows a schematic structural diagram of a computer system 500 of a terminal device suitable for implementing an embodiment of the present invention. Figure 5 The terminal device 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.

[0093] like Figure 5As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage unit Y08 into the random access memory (RAM) 503. Various programs and data required for the operation of the system 500 are also stored in the RAM 503. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0094] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, and the like; an output section 507 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 508 including a hard disk; and a communication section 509 including a network interface card such as a LAN card or a modem. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 510 as needed, so that computer programs read therefrom can be installed into the storage section 508 as needed.

[0095] In particular, according to the embodiments disclosed in the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 509, and / or installed from a removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are performed.

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

[0097] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that 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 flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0098] The modules described in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be provided in a processor. For example, they may be described as a processor comprising a request acquisition module, a data partitioning module, and an interaction module. The names of these modules do not, in some cases, limit the modules themselves. For example, interaction may be described as a module that sends data segments to a connected data processing center and receives processing results from the data processing center.

[0099] 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 and not be incorporated into the device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the device, the device is caused to: obtain a service request, wherein the service request carries at least two pieces of service data; divide the at least two pieces of service data into at least one data segment, wherein each data segment includes at least one piece of service data; send the data segment to a data processing center; and receive the processing results of the data segment by the data processing center.

[0100] According to the technical solution of an embodiment of the present invention, after receiving a service request containing at least two pieces of business data, the at least two pieces of business data are divided into at least one data segment, which is then sent to a data processing center, and the data processing center receives the processing results of the data segment. Because the number of data segments after the business data is divided is less than the total number of business data, at least one data segment includes at least two pieces of business data. This reduces the number of interactions with the data processing center via the data segments, thereby avoiding interaction interface timeouts and improving system performance.

[0101] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A method for business data interaction, characterized in that: include: Obtaining a service request, wherein the service request carries at least two pieces of service data; Determining a threshold number of business data in each data segment, and dividing the at least two business data into at least one data segment based on the threshold number; wherein each data segment includes at least one business data item, and an absolute value of a difference between an actual number of business data items in the data segment and the threshold number is no greater than a preset absolute value of the difference; and the threshold number is determined based on a corresponding data processing success rate of a data processing center and the number of business data items; sending the at least one data segment to a data processing center; receiving a processing result of the at least one data segment by the data processing center; Determining the threshold amount of business data in each of the data segments includes: The threshold value is determined according to the predetermined data processing success rate corresponding to the data processing center and the amount of the business data using the following relationship, wherein the data processing success rate is greater than 0 and less than 1; Wherein, n represents the threshold number, x represents the amount of the business data, and y represents the data processing success rate.

2. The method according to claim 1, characterized in that If the processing result is a processing failure, the method further includes: A1: for the data segment whose processing result is processing failure: selecting a piece of business data from the data segment as current business data; A2: Sending the current business data to the data processing center, so that the data processing center queries whether there is a business record corresponding to the current business data; A3: receiving a query result of the data processing center on the current business data, and executing A1 if the query result indicates that the business record exists, or executing A4 if the query result indicates that the business record does not exist; A4: Determine that the processing result of the business request is a processing failure, and return the processing result of the business request and the current business data to the source system that sent the business request.

3. The method according to claim 1, characterized in that When the number of the data segments is at least two, The sending of the data segment to a data processing center and the receiving of a processing result of the data segment by the data processing center include: B1: selecting a data segment that has not been sent from at least two of the data segments as the current data segment; B2: sending the current data segment to the data processing center; B3: receiving the processing result of the current data segment by the data processing center, and if the processing result of the current data segment is successful, determining whether the unsent data segment exists, if so, executing B1, otherwise executing B4; B4: Determine that the processing result of the service request is successful.

4. The method according to claim 1, wherein After receiving the processing result of the data segment by the data processing center, the method further includes: The data processing success rate is updated according to the processing result.

5. A device for business data interaction, characterized in that: include: Request acquisition module, data partitioning module and interaction module; among them, The request acquisition module is used to acquire a service request, wherein the service request carries at least two pieces of service data; The data partitioning module is configured to determine a threshold number of business data in each data segment, and to partition the at least two business data into at least one data segment based on the threshold number; wherein each data segment includes at least one business data item, and the absolute value of the difference between the actual number of business data items in the data segment and the threshold number is no greater than a preset absolute value of the difference; and the threshold number is determined based on a corresponding data processing success rate of the data processing center and the amount of business data items; The interaction module is configured to send the at least one data segment to a data processing center and receive a processing result of the at least one data segment by the data processing center; The data partitioning module is configured to determine the threshold value according to the predetermined data processing success rate corresponding to the data processing center and the amount of the business data using the following relationship, wherein the data processing success rate is greater than 0 and less than 1; Wherein, n represents the threshold number, x represents the amount of the business data, and y represents the data processing success rate.

6. The device according to claim 5, characterized in that The interaction module is further used to, when the processing result is processing failure, for the data segment with the processing result of processing failure: select a business data from the data segment as current business data; send the current business data to the data processing center, so that the data processing center queries whether there is a business record corresponding to the current business data; receive the query result of the data processing center on the current business data, and when the query result is that the business record exists, execute: select a business data from the data segment as current business data, and when the query result is that the business record does not exist, execute: determine that the processing result of the business request is processing failure, and return the processing result of the business request and the current business data to the source system that sent the business request.

7. The device according to claim 5, characterized in that When the number of the data segments divided by the data division module is at least two, The interaction module includes: a data segment selection unit, a data segment sending unit, a result receiving unit and a result determination unit; wherein, The data segment selection unit is configured to select an unsent data segment from at least two of the data segments as a current data segment; The data segment sending unit is used to send the current data segment to the data processing center; The result receiving unit is configured to receive a processing result of the current data segment by the data processing center, and if the processing result of the current data segment is successful, determine whether there is an unsent data segment, and if so, trigger the data segment selecting unit; otherwise, trigger the result determining unit; The result determination unit is configured to determine that the processing result of the service request is successful when the processing result of each of the data segments is successful.

8. The device according to claim 5, characterized in that The data partitioning module is further configured to update the data processing success rate according to the processing result.

9. A server for business data interaction, 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 4.

10. 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 4 is implemented.

Citation Information

Patent Citations

  • Information-processing method and terminal

    CN105119814A