CN117170850A - Batch service processing method, device, equipment and medium - Google Patents

Batch service processing method, device, equipment and medium Download PDF

Info

Publication number
CN117170850A
CN117170850A CN202311227681.0A CN202311227681A CN117170850A CN 117170850 A CN117170850 A CN 117170850A CN 202311227681 A CN202311227681 A CN 202311227681A CN 117170850 A CN117170850 A CN 117170850A
Authority
CN
China
Prior art keywords
service
result
server
batch
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311227681.0A
Other languages
Chinese (zh)
Inventor
刘冲
王伟杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202311227681.0A priority Critical patent/CN117170850A/en
Publication of CN117170850A publication Critical patent/CN117170850A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to the technical field of data processing, in particular to a method, a device, equipment and a medium for processing batch business, which are used for solving the problem of low success rate of batch business processing. The method comprises the following steps: responding to a batch service processing request triggered by a user, and obtaining each service needing batch processing based on the batch service processing request; for any one user account in each user account corresponding to each service, sending the service corresponding to the user account to a target server of the user account, so that the target server processes the service and sends a service processing result to the intermediate server, wherein the target server of the user account is determined based on the user account; and executing a first business operation for generating a batch of business results based on the received business processing results sent by the at least one target server.

Description

Batch service processing method, device, equipment and medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a medium for processing a batch service.
Background
Currently, bulk transactions (e.g., collection transactions, payment transactions, etc.) of most banking agents support cross-primary account processing. For example, a bulk traffic initiated by line a may support processing in line B (headquarter or other branch).
However, in this scenario, the user accounts corresponding to the batch service may be stored in different devices. For example, some user accounts are stored in the master server and some user accounts are stored in the slave server. Therefore, when any device processes the batch service, if the user account corresponding to the service is not stored in the device, the situation that the service is processed incorrectly or cannot be processed occurs, so that the success rate of batch service processing is low.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a medium for processing batch businesses, which are used for solving the problem of low success rate of batch business processing.
In a first aspect, the present application provides a method for processing a batch service, which is applied to an intermediate server, where the method includes:
responding to a batch service processing request triggered by a user, and obtaining each service needing batch processing based on the batch service processing request;
For any one user account in each user account corresponding to each service, sending the service corresponding to the user account to a target server of the user account, so that the target server processes the service and sends a service processing result to the intermediate server, wherein the target server of the user account is determined based on the user account;
and executing a first business operation for generating a batch of business results based on the received business processing results sent by the at least one target server.
In the embodiment of the application, each service needing batch processing is respectively sent to the target server corresponding to the user account in each service, so that the target server processes the service, and then the first service operation for generating the batch service result is executed based on the service processing result obtained by each target server, thereby ensuring that the batch service is successfully processed and improving the success rate of batch service processing.
In one possible embodiment, the target server for each user account is determined by:
determining target servers corresponding to the user accounts respectively by utilizing the corresponding relation between the preset user accounts and the servers; or alternatively, the first and second heat exchangers may be,
The business is sent to a main server, so that the main server determines target servers corresponding to the user accounts in the business by utilizing the corresponding relation between the preset user accounts and the servers; and receiving target servers respectively corresponding to the user accounts sent by the main server.
In the embodiment of the application, the corresponding relation between the preset user account and the server is utilized to determine the target servers corresponding to the user accounts respectively or to send the services to the main server, so that the main server determines the target servers corresponding to the user accounts in the services respectively by utilizing the corresponding relation between the preset user account and the server, thereby ensuring that the services are sent to the corresponding target servers for processing, and further improving the success rate of batch services.
In one embodiment, the target server is a master server or a slave server;
the executing a first business operation for generating a batch of business results based on the received business processing results sent by the at least one target server, including:
updating the received second service result sent by the main server by utilizing the received first service result sent by each slave server to obtain a batch service result of each service needing batch processing; or alternatively, the first and second heat exchangers may be,
And sending the received first service results sent by each slave server to the master server so that the master server updates the second service results by using the first service results to obtain the batch service results of each service needing batch processing.
In the embodiment of the application, the received first service results sent by each slave server are utilized to update the received second service results sent by the master server to obtain batch service results, or the received first service results sent by each slave server are sent to the master server, so that the master server updates the second service results by utilizing the first service results to obtain batch service results. Therefore, in the embodiment of the application, the result of execution errors of each service of which the user account is not stored in the main server is updated, so that the situation that each service of which the user account is not stored in the main server fails to be processed is avoided, and the success rate of batch services is further improved.
In one embodiment, the updating the received second service result sent by the master server by using the received first service result sent by each slave server to obtain a batch service result of each service that needs to be processed in batch includes:
And replacing a target service result in the second service result by using the first service result to obtain a batch service result of each service needing batch processing, wherein the target service result is a processing result of the service corresponding to each user account of the slave server by the target server.
In the embodiment of the application, the target business result in the second business result is replaced by the first business result to obtain the batch business result of each business which needs to be processed in batches, so that the situation that the result of execution errors of each business which is not stored in the main server for the user account is replaced by the correct processing result of each business is ensured, and the success rate of batch business is improved.
In a second aspect, the present application provides a method for processing a batch service, which is applied to a main server, where the method includes:
receiving each service which is sent by an intermediate server and needs to be processed in batches;
processing the businesses which need to be processed in batches to obtain a second business result;
and executing a second business operation for generating a batch business result based on the second business result.
In the embodiment of the application, the second service result is obtained by processing each service which is sent by the intermediate server and needs to be processed in batches, and then the second service operation for generating the batch service result is executed based on the second service result. So as to ensure that the batch business is successfully processed, and improve the success rate of batch business processing.
In one embodiment, the performing, based on the second business result, a second business operation for generating a batch of business results includes:
the second business result is sent to the intermediate server, so that the intermediate server updates the second business result by using the first business result to obtain a batch business result of each business which needs to be processed in batches, wherein the first business result is obtained by processing each business of which the target server is each slave server by using each slave server; or alternatively, the first and second heat exchangers may be,
and updating the second service result by using the received first service result sent by the intermediate server to obtain a batch service result of each service needing batch processing.
In the embodiment of the application, the second business result is sent to the intermediate server, so that the intermediate server updates the second business result by using the first business result to obtain the batch business result of each business which needs batch processing. Or updating the second service result by using the received first service result sent by the intermediate server to obtain a batch service result of each service needing batch processing. Therefore, in the embodiment of the application, the result of execution errors of each service of which the user account is not stored in the main server can be updated, the condition that each service of which the user account is not stored in the main server fails to be processed is avoided, and the success rate of batch services is further improved.
In one embodiment, the updating the second service result by using the received first service result sent by the intermediate server to obtain a batch service result of each service that needs to be processed in batches includes:
and replacing a target service result in the second service result by using the first service result to obtain a batch service result of each service needing batch processing, wherein the target service result is a processing result of the service corresponding to each user account of the slave server by the target server.
In the embodiment of the application, the batch service results of the services which need to be processed in batches are obtained by replacing the target service result in the second service result by the first service result. So as to ensure that the batch business is successfully processed, and improve the success rate of batch business processing.
In one embodiment, the method further comprises:
and determining target servers corresponding to the user accounts in the services to be processed in batches by using the corresponding relation between the preset user accounts and the servers, and sending the target servers corresponding to the user accounts to the intermediate server, so that the intermediate server sends the service corresponding to the user accounts to the corresponding slave server, and sends the first service result returned by the slave server to the master server.
In the embodiment of the application, the corresponding relation between the preset user account and the server is utilized to determine the target servers corresponding to the user accounts in the services needing batch processing respectively, and the target servers corresponding to the user accounts are sent to the intermediate server, so that the intermediate server sends the services corresponding to the user account to the corresponding slave server for processing to obtain the first service results. The method ensures that each service can be smoothly executed, and ensures the success rate of batch services.
In a third aspect, the present application provides a method for processing a batch service, where the method includes:
responding to a batch service processing request triggered by a user, and obtaining each service needing batch processing based on the batch service processing request;
processing each service to be processed in batches respectively to obtain each service processing result, wherein each service processing result comprises a first service result and a second service result, the first service result is the processing result of each service of the target server, and the second service result is the processing result of each service of the target server, which is the main server;
And replacing a target service result in the second service result by using the first service result to obtain a batch of service results, wherein the target service result is a processing result of a service corresponding to each user account of the slave server by the target server.
In a fourth aspect, the present application provides a device for processing batch services, where the device includes:
the first business determining module is used for responding to a batch business processing request triggered by a user and obtaining businesses needing batch processing based on the batch business processing request;
the sending module is used for sending the service corresponding to the user account to a target server of the user account aiming at any user account in the user accounts corresponding to the services, so that the target server processes the service and sends a service processing result to the intermediate server, wherein the target server of the user account is determined based on the user account;
and the first business updating module is used for executing first business operation for generating batch business results based on the received business processing results sent by the at least one target server.
In one possible embodiment, the apparatus further comprises:
the first target server determining module is used for determining a target server of each user account by the following modes:
determining target servers corresponding to the user accounts respectively by utilizing the corresponding relation between the preset user accounts and the servers; or alternatively, the first and second heat exchangers may be,
the business is sent to a main server, so that the main server determines target servers corresponding to the user accounts in the business by utilizing the corresponding relation between the preset user accounts and the servers; and receiving target servers respectively corresponding to the user accounts sent by the main server.
In one possible embodiment, the target server is a master server or a slave server;
the first service updating module is specifically configured to:
updating the received second service result sent by the main server by utilizing the received first service result sent by each slave server to obtain a batch service result of each service needing batch processing; or alternatively, the first and second heat exchangers may be,
and sending the received first service results sent by each slave server to the master server so that the master server updates the second service results by using the first service results to obtain the batch service results of each service needing batch processing.
In a possible embodiment, the first service update module is further configured to:
and replacing a target service result in the second service result by using the first service result to obtain a batch service result of each service needing batch processing, wherein the target service result is a processing result of the service corresponding to each user account of the slave server by the target server.
In a fifth aspect, the present application provides a device for processing batch services, where the device includes:
the receiving module is used for receiving all the services which are sent by the intermediate server and need to be processed in batches;
the business processing module is used for processing the businesses which need to be processed in batches to obtain a second business result;
and the second business updating module is used for executing second business operation for generating batch business results based on the second business results.
In one embodiment, the second service update module is specifically configured to:
the second business result is sent to the intermediate server, so that the intermediate server updates the second business result by using the first business result to obtain a batch business result of each business which needs to be processed in batches, wherein the first business result is obtained by processing each business of which the target server is each slave server by using each slave server; or alternatively, the first and second heat exchangers may be,
And updating the second service result by using the received first service result sent by the intermediate server to obtain a batch service result of each service needing batch processing.
In one embodiment, the second service update module is further configured to:
and replacing a target service result in the second service result by using the first service result to obtain a batch service result of each service needing batch processing, wherein the target service result is a processing result of the service corresponding to each user account of the slave server by the target server.
In one embodiment, the apparatus further comprises:
the second target server determining module is configured to determine target servers corresponding to the user accounts in the services to be processed in batches respectively by using a preset correspondence between the user accounts and the servers, and send the target servers corresponding to the user accounts to the intermediate server, so that the intermediate server sends the service corresponding to the user account to the corresponding slave server, and sends the first service result returned by the slave server to the master server.
In a sixth aspect, the present application provides a device for processing batch services, where the device includes:
the second service determining module is used for responding to a batch service processing request triggered by a user and obtaining each service needing batch processing based on the batch service processing request;
the service processing result determining module is used for respectively processing the services to be processed in batches to obtain service processing results, wherein the service processing results comprise a first service result and a second service result, the first service result is the processing result of the services of the slave server, and the second service result is the processing result of the services of the master server;
and the third service updating module is used for replacing a target service result in the second service result by using the first service result to obtain a batch of service results, wherein the target service result is a processing result of a service corresponding to each user account of the slave server by the target server.
In a seventh aspect, the present application provides an electronic device, comprising:
a memory for storing program instructions;
a processor for invoking program instructions stored in the memory and executing the steps comprised by the method according to any of the first, second and third aspects in accordance with the obtained program instructions.
In an eighth aspect, the present application provides a computer readable storage medium storing a computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method of any one of the first, second and third aspects.
In a ninth aspect, the present application provides a computer program product comprising: computer program code which, when run on a computer, causes the computer to perform the method of any of the first, second and third aspects.
Drawings
Fig. 1 is an application scenario schematic diagram of a method for processing batch services according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for processing batch services according to an embodiment of the present application;
FIG. 3 is a second flow chart of a method for processing batch services according to an embodiment of the present application;
FIG. 4 is a third flow chart of a method for processing batch services according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a batch service processing apparatus according to an embodiment of the present application;
FIG. 6 is a second schematic diagram of a batch service processing apparatus according to an embodiment of the present application;
FIG. 7 is a third schematic diagram of a batch service processing apparatus according to an embodiment of the present application;
fig. 8 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application. Embodiments of the application and features of the embodiments may be combined with one another arbitrarily without conflict. Also, while a logical order of illustration is depicted in the flowchart, in some cases the steps shown or described may be performed in a different order than presented.
The terms first and second in the description and claims of the application and in the above-mentioned figures are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the term "include" and any variations thereof is intended to cover non-exclusive protection. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus. The term "plurality" in the present application may mean at least two, for example, two, three or more, and embodiments of the present application are not limited.
In the technical scheme of the application, the data is collected, transmitted, used and the like, and all meet the requirements of national relevant laws and regulations.
Before describing the method for processing the batch service provided by the embodiment of the present application, for convenience of understanding, the following detailed description is first provided for the technical background of the embodiment of the present application.
In the prior art, when any device processes a batch of services, if a user account corresponding to a service is not stored in the device, the situation that the service is processed incorrectly or cannot be processed occurs, so that the success rate of batch service processing is low.
Therefore, the application provides a method for processing batch business, which is characterized in that each business which needs to be processed in batch is respectively sent to a target server corresponding to a user account in each business, so that the target server processes the business, and then a first business operation for generating a batch business result is executed based on the business processing result obtained by each target server, thereby ensuring that the processing of the batch business is successfully completed and improving the success rate of batch business processing. The following describes aspects of the present disclosure in detail with reference to the accompanying drawings.
As shown in fig. 1, an application scenario of a method for processing a batch service includes an intermediate server 110, a master server 120 and a slave server 130.
In one possible application scenario, the intermediate server 110 responds to a batch service processing request triggered by a user, and obtains each service needing batch processing based on the batch service processing request; and for any one user account in each user account corresponding to each service, the service corresponding to the user account is sent to the master server 120 and the slave server 130 of the user account, and the master server 120 and each slave server 130 process the service received by themselves and send the service processing result to the intermediate server 110. The target server of the user account is determined based on the user account; the intermediate server 110 performs a first business operation for generating a batch of business results based on the received business processing results transmitted by the at least one target server.
The intermediate server 110 in fig. 1 may perform information interaction with the master server 120 and the slave server 130 through a communication network, where a communication manner adopted by the communication network may be a wireless communication manner or a wired communication manner.
Illustratively, the intermediate server 110 may communicate with the master server 120 and the slave server 130, respectively, via cellular mobile communication technologies, including, for example, fifth generation mobile communication (5th Generation Mobile Networks,5G) technologies, access networks.
Alternatively, the intermediate server 110 may access the network via short-range wireless communication means, including, for example, wireless fidelity (Wireless Fidelity, wi-Fi) technology, to communicate with the master server 120 and the slave server 130, respectively.
In addition, the intermediate server 110, the master server 120, and the slave server 130 in the embodiment are not applied, and may be entity servers or cloud servers. And the description of the present application will be described in detail with respect to only one intermediate server 110, one master server 120 and one slave server 130, it should be understood by those skilled in the art that the illustrated intermediate server 110, master server 120 and slave server 130 are intended to represent operations of the intermediate server 110, master server 120 and slave server 130 in accordance with the aspects of the present application. And not implicate a limitation on the number, type, location, etc. of intermediate servers 110, master server 120, and slave servers 130. It should be noted that the underlying concepts of the exemplary embodiments of this application are not altered if additional modules are added to or individual modules are removed from the illustrated environment.
It should be noted that the method for processing batch services provided by the present application is not only suitable for the application scenario shown in fig. 1, but also suitable for any processing device with batch services.
In the following, the method for processing batch services according to the exemplary embodiment of the present application will be described with reference to the accompanying drawings in conjunction with the application scenario described above, and it should be noted that the application scenario is only shown for the convenience of understanding the method and principle of the present application, and the embodiment of the present application is not limited in any way in this respect.
As shown in fig. 2, a flow chart of a method for processing batch business is shown, and the method is mainly applied to an intermediate server, and specifically comprises the following steps:
step 201: the method comprises the steps that an intermediate server responds to a batch service processing request triggered by a user, and each service needing batch processing is obtained based on the batch service processing request;
in the embodiment of the application, the user can send a batch service request to the intermediate server through the terminal equipment, wherein the batch service request comprises all services which need to be processed in batches.
Step 202: the method comprises the steps that an intermediate server sends a service corresponding to a user account to a target server of the user account aiming at any user account in all user accounts corresponding to all services, so that the target server processes the service and sends a service processing result to the intermediate server, wherein the target server of the user account is determined based on the user account;
In one embodiment, the target server for each user account may be determined in two ways:
mode one: and the intermediate server determines target servers corresponding to the user accounts respectively by utilizing the corresponding relation between the preset user accounts and the servers. The corresponding relationship between the user account and the server is shown in table 1:
table 1:
as can be seen from table 1, the target server corresponding to the account a is the server 1, and the target server corresponding to the account 2 is the server B.
It should be noted that: the correspondence between the user account and the server in table 1 is only for illustration. The target server corresponding to each user account in the embodiment of the application comprises a server for storing the user account and a main server. Namely, in the embodiment of the application, at least two target servers of the user account are provided. The number of target servers can be specifically defined according to specific practical situations, and the embodiment of the application does not limit the number of target servers corresponding to the user account. In addition, the processing mode of the business by any target server in the embodiment of the application comprises real-time processing and timing processing. The specific processing manner may be set according to the actual situation, and the embodiment of the present application is not limited to the processing manner of the service herein.
Mode two: the intermediate server sends the services to a main server so that the main server determines target servers corresponding to the user accounts in the services by utilizing the corresponding relation between the preset user accounts and the servers; and receiving target servers respectively corresponding to the user accounts sent by the main server.
Step 203: the intermediate server performs a first business operation for generating a batch of business results based on the received business processing results sent by the at least one target server.
In one embodiment, step 203 may be embodied in two ways:
mode one: and the intermediate server updates the received second service result sent by the main server by utilizing the received first service result sent by each slave server to obtain the batch service result of each service needing batch processing.
In one embodiment, a first mode of the embodiment of the present application may be implemented as:
and replacing a target service result in the second service result by using the first service result to obtain a batch service result of each service needing batch processing, wherein the target service result is a processing result of the service corresponding to each user account of the slave server by the target server.
For example, the first business result includes: business result 1, business result 2, business result 3. The target server corresponding to the service result 1 is the slave server a. The target server corresponding to the service result 2 is the slave server b. The target server corresponding to the service result 3 is the slave server c. If the second service result includes: business result B, business result C, business result D, and business result E. The target server corresponding to the service result A is a slave server a, the target server corresponding to the service result B is a slave server B, the target server corresponding to the service result C is a slave server C, the target server corresponding to the service result D is a slave server D, and the target server corresponding to the service result E is a slave server E. Then the service result 1 is used for replacing the service result a, the service result 2 is used for replacing the service result B and the service result 3 is used for replacing the service result C, and finally the obtained batch service results are as follows: business result 1, business result 2, business result 3, business result D, and business result E.
Mode two: and the intermediate server sends the received first service results sent by each slave server to the master server so that the master server updates the second service results by using the first service results to obtain the batch service results of each service needing batch processing.
In the embodiment of the present application, the method of updating the second service result by using the first service result by the main server to obtain the batch service result of each service that needs to be processed in batch is the same as the method of updating the intermediate server, which is not described herein in detail.
Based on the same inventive concept, another method for processing batch service is provided in the embodiment of the present application, as shown in fig. 3, which is a flow chart of a method for processing batch service, where the method is applied to a main server, and may specifically include the following steps:
step 301: the method comprises the steps that a main server receives all businesses which are sent by an intermediate server and need to be processed in batches;
step 302: the main server processes the businesses which need to be processed in batches to obtain a second business result;
the mode of processing each service by the main server comprises real-time processing and timing processing, wherein the real-time processing is that each service is processed immediately after being received. And the timing processing is to process each service after the designated time node is reached after receiving each service. However, the specific service processing manner may be set according to the actual situation, and the embodiment of the present application is not limited to the specific service processing manner herein.
Step 303: and the main server executes a second business operation for generating a batch business result based on the second business result.
In one embodiment, step 303 may be embodied in two ways:
mode one: and the master server sends the second service result to the intermediate server so that the intermediate server updates the second service result by using the first service result to obtain a batch service result of each service needing batch processing, wherein the first service result is obtained by processing each service of each slave server by using each slave server for a target server.
The method for updating the second service result by using the first service result in the first mode is the same as the specific implementation of the first mode in the step 203, which is described above, and the embodiments of the present application are not described here again.
Mode two: and the main server updates the second service result by utilizing the received first service result sent by the intermediate server to obtain a batch service result of each service which needs to be processed in batches.
In one embodiment, the second mode of the embodiment of the present application may be implemented as follows: and replacing a target service result in the second service result by using the first service result to obtain a batch service result of each service needing batch processing, wherein the target service result is a processing result of the service corresponding to each user account of the slave server by the target server.
The method for replacing the second service result by using the first service result in the embodiment of the present application is the same as the implementation direction of the intermediate server described above, and will not be described here again.
In order to ensure that batch services can be successfully processed and completed, in one embodiment, a master server determines target servers corresponding to user accounts in the services to be processed in batch respectively by using a preset corresponding relation between the user accounts and the servers, and sends the target servers corresponding to the user accounts to an intermediate server respectively, so that the intermediate server sends the services corresponding to the user accounts to corresponding slave servers, and sends the first service result returned by the slave servers to the master server.
The manner of determining the target server corresponding to each user account in the embodiment of the present application is the same as the manner of the first manner in step 202 described above, except that one is implemented by the main server and one is implemented by the intermediate server. The embodiments of the present application are not described herein in detail.
Based on the same inventive concept, the embodiment of the application also provides a method for processing batch business, which is applied to electronic equipment, wherein the electronic equipment can be an intermediate server, a main server and other equipment, and the embodiment of the application is not limited herein. As shown in fig. 4, which is a specific flow chart, the method may include the following steps:
Step 401: responding to a batch service processing request triggered by a user, and obtaining each service needing batch processing based on the batch service processing request;
the specific implementation manner of this step may refer to step 201, and the embodiment of the present application will not be described herein.
Step 402: processing each service to be processed in batches respectively to obtain each service processing result, wherein each service processing result comprises a first service result and a second service result, the first service result is the processing result of each service of the target server, and the second service result is the processing result of each service of the target server, which is the main server;
step 403: and replacing a target service result in the second service result by using the first service result to obtain a batch of service results, wherein the target service result is a processing result of a service corresponding to each user account of the slave server by the target server.
Steps 401 to 403 in the embodiment of the present application correspond to steps 201 to 203 and steps 301 to 303 described above, and the embodiment of the present application is not described herein again.
Based on the same disclosure concept, the batch service processing method disclosed by the disclosure can also be realized by a batch service processing device. The effect of the processing device for batch service is similar to that of the foregoing method, and will not be described herein.
Fig. 5 is a schematic structural diagram of a processing apparatus for batch service according to an embodiment of the present disclosure.
As shown in fig. 5, the processing apparatus 500 for batch traffic of the present disclosure may include a first traffic determination module 510, a transmission module 520, and a first traffic update module 530.
A first service determining module 510, configured to respond to a batch service processing request triggered by a user, and obtain each service that needs to be processed in batch based on the batch service processing request;
a sending module 520, configured to send, for any one of the user accounts corresponding to each service, a service corresponding to the user account to a target server of the user account, so that the target server processes the service, and send a service processing result to the intermediate server, where the target server of the user account is determined based on the user account;
the first service updating module 530 is configured to perform a first service operation for generating a batch service result based on the received service processing result sent by the at least one target server.
In one embodiment, the apparatus further comprises:
a first target server determining module 540, configured to determine a target server of each user account by:
Determining target servers corresponding to the user accounts respectively by utilizing the corresponding relation between the preset user accounts and the servers; or alternatively, the first and second heat exchangers may be,
the business is sent to a main server, so that the main server determines target servers corresponding to the user accounts in the business by utilizing the corresponding relation between the preset user accounts and the servers; and receiving target servers respectively corresponding to the user accounts sent by the main server.
In one embodiment, the target server is a master server or a slave server;
the first service update module 530 is specifically configured to:
updating the received second service result sent by the main server by utilizing the received first service result sent by each slave server to obtain a batch service result of each service needing batch processing; or alternatively, the first and second heat exchangers may be,
and sending the received first service results sent by each slave server to the master server so that the master server updates the second service results by using the first service results to obtain the batch service results of each service needing batch processing.
In one embodiment, the first service update module 530 is further configured to:
and replacing a target service result in the second service result by using the first service result to obtain a batch service result of each service needing batch processing, wherein the target service result is a processing result of the service corresponding to each user account of the slave server by the target server.
Based on the same disclosure concept, the application also discloses another batch service processing device, and fig. 6 is a schematic structural diagram of a batch service processing device according to an embodiment of the disclosure.
As shown in fig. 6, the processing apparatus 600 for batch services of the present disclosure may include a receiving module 610, a service processing module 620, and a second service updating module 630.
A receiving module 610, configured to receive each service that needs to be processed in batch and is sent by an intermediate server;
the service processing module 620 is configured to process each service that needs to be processed in batch, so as to obtain a second service result;
a second service updating module 630, configured to perform a second service operation for generating a batch service result based on the second service result.
In one embodiment, the second service update module 630 is specifically configured to:
The second business result is sent to the intermediate server, so that the intermediate server updates the second business result by using the first business result to obtain a batch business result of each business which needs to be processed in batches, wherein the first business result is obtained by processing each business of which the target server is each slave server by using each slave server; or alternatively, the first and second heat exchangers may be,
and updating the second service result by using the received first service result sent by the intermediate server to obtain a batch service result of each service needing batch processing.
In one embodiment, the second service update module 630 is further configured to:
and replacing a target service result in the second service result by using the first service result to obtain a batch service result of each service needing batch processing, wherein the target service result is a processing result of the service corresponding to each user account of the slave server by the target server.
In one embodiment, the apparatus further comprises:
the second target server determining module 640 is configured to determine target servers corresponding to the user accounts in the services to be processed in batches by using a preset correspondence between the user accounts and the servers, and send the target servers corresponding to the user accounts to the intermediate server, so that the intermediate server sends the service corresponding to the user account to the corresponding slave server, and sends the first service result returned by the slave server to the master server.
Based on the same disclosure concept, the application also discloses another batch service processing device, and fig. 7 is a schematic structural diagram of a batch service processing device according to an embodiment of the disclosure.
As shown in fig. 7, the processing apparatus 700 of the batch service of the present disclosure may include a second service determination module 710, a service processing result determination module 720, and a third service update module 730.
A second service determining module 710, configured to respond to a batch service processing request triggered by a user, and obtain each service that needs to be processed in batch based on the batch service processing request;
the service processing result determining module 720 is configured to process each service that needs to be processed in batch to obtain each service processing result, where each service processing result includes a first service result and a second service result, the first service result is a processing result of each service of the slave server by the target server, and the second service result is a processing result of each service of the master server by the target server;
and a third service updating module 730, configured to replace a target service result in the second service result with the first service result to obtain a batch service result, where the target service result is a processing result of the service corresponding to each user account of the slave server by the target server.
Based on the same technical concept, the embodiment of the present application further provides an electronic device 800, as shown in fig. 8, including at least one processor 801 and a memory 802 connected to the at least one processor, where a specific connection medium between the processor 801 and the memory 802 is not limited in the embodiment of the present application, and in fig. 8, the connection between the processor 801 and the memory 802 is exemplified by a bus 803. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one thick line is shown in fig. 8, but not only one bus or one type of bus.
The processor 801 is a control center of the electronic device, and may be connected to various parts of the electronic device by various interfaces and lines, and may execute or execute instructions stored in the memory 802 and invoke data stored in the memory 802, thereby implementing data processing. Alternatively, the processor 801 may include one or more processing units, and the processor 801 may integrate an application processor and a modem processor, wherein the application processor primarily processes operating systems, user pages, application programs, etc., and the modem processor primarily processes issuing instructions. It will be appreciated that the modem processor described above may not be integrated into the processor 801. In some embodiments, processor 801 and memory 802 may be implemented on the same chip, or they may be implemented separately on separate chips in some embodiments.
The processor 801 may be a general purpose processor such as a Central Processing Unit (CPU), digital signal processor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in connection with the processing method embodiment of the batch service may be embodied directly in hardware processor execution or in a combination of hardware and software modules in the processor.
Memory 802, as a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 802 may include at least one type of storage medium, which may include, for example, flash Memory, hard disk, multimedia card, card Memory, random access Memory (Random Access Memory, RAM), static random access Memory (Static Random Access Memory, SRAM), programmable Read-Only Memory (Programmable Read Only Memory, PROM), read-Only Memory (ROM), charged erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory), magnetic Memory, magnetic disk, optical disk, and the like. Memory 802 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 802 of embodiments of the present application may also be circuitry or any other device capable of performing storage functions for storing program instructions and/or data.
In an embodiment of the present application, the memory 802 stores a computer program that, when executed by the processor 801, causes the processor 801 to execute the batch service processing method described above.
Because the electronic device is the electronic device in the method according to the embodiment of the present application, and the principle of solving the problem by the electronic device is similar to that of the method, the implementation of the electronic device may refer to the implementation of the method, and the repetition is omitted.
Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium, the computer program product comprising: computer program code which, when run on a computer, causes the computer to perform the method of processing a bulk service as any of the preceding discussions. Since the principle of the solution of the problem of the computer readable storage medium is similar to that of the batch service, the implementation of the computer readable storage medium can refer to the implementation of the method, and the repetition is omitted.
Based on the same inventive concept, embodiments of the present application also provide a computer program product comprising: computer program code which, when run on a computer, causes the computer to perform the method of processing a bulk service as any of the preceding discussions. Since the principle of the solution of the problem of the computer program product is similar to that of the batch service, the implementation of the computer program product can refer to the implementation of the method, and the repetition is omitted.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of user operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (21)

1. A method for processing batch service, which is applied to an intermediate server, the method comprising:
responding to a batch service processing request triggered by a user, and obtaining each service needing batch processing based on the batch service processing request;
for any one user account in each user account corresponding to each service, sending the service corresponding to the user account to a target server of the user account, so that the target server processes the service and sends a service processing result to the intermediate server, wherein the target server of the user account is determined based on the user account;
and executing a first business operation for generating a batch of business results based on the received business processing results sent by the at least one target server.
2. The method of claim 1, wherein the destination server for each user account is determined by:
determining target servers corresponding to the user accounts respectively by utilizing the corresponding relation between the preset user accounts and the servers; or alternatively, the first and second heat exchangers may be,
the business is sent to a main server, so that the main server determines target servers corresponding to the user accounts in the business by utilizing the corresponding relation between the preset user accounts and the servers; and receiving target servers respectively corresponding to the user accounts sent by the main server.
3. The method of claim 1, wherein the target server is a master server or a slave server;
the executing a first business operation for generating a batch of business results based on the received business processing results sent by the at least one target server, including:
updating the received second service result sent by the main server by utilizing the received first service result sent by each slave server to obtain a batch service result of each service needing batch processing; or alternatively, the first and second heat exchangers may be,
and sending the received first service results sent by each slave server to the master server so that the master server updates the second service results by using the first service results to obtain the batch service results of each service needing batch processing.
4. The method of claim 3, wherein updating the received second service result sent by the master server with the received first service result sent by each slave server to obtain a batch service result of each service that needs to be processed in batches, includes:
and replacing a target service result in the second service result by using the first service result to obtain a batch service result of each service needing batch processing, wherein the target service result is a processing result of the service corresponding to each user account of the slave server by the target server.
5. The method for processing batch business is characterized by being applied to a main server, and comprises the following steps:
receiving each service which is sent by an intermediate server and needs to be processed in batches;
processing the businesses which need to be processed in batches to obtain a second business result;
and executing a second business operation for generating a batch business result based on the second business result.
6. The method of claim 5, wherein performing a second business operation for generating a bulk business result based on the second business result comprises:
the second business result is sent to the intermediate server, so that the intermediate server updates the second business result by using the first business result to obtain a batch business result of each business which needs to be processed in batches, wherein the first business result is obtained by processing each business of which the target server is each slave server by using each slave server; or alternatively, the first and second heat exchangers may be,
and updating the second service result by using the received first service result sent by the intermediate server to obtain a batch service result of each service needing batch processing.
7. The method of claim 6, wherein updating the second service result with the received first service result sent by the intermediate server to obtain a batch service result of each service that needs to be processed in batches includes:
and replacing a target service result in the second service result by using the first service result to obtain a batch service result of each service needing batch processing, wherein the target service result is a processing result of the service corresponding to each user account of the slave server by the target server.
8. The method of claim 6, wherein the method further comprises:
and determining target servers corresponding to the user accounts in the services to be processed in batches by using the corresponding relation between the preset user accounts and the servers, and sending the target servers corresponding to the user accounts to the intermediate server, so that the intermediate server sends the service corresponding to the user accounts to the corresponding slave server, and sends the first service result returned by the slave server to the master server.
9. A method for processing batch traffic, the method comprising:
responding to a batch service processing request triggered by a user, and obtaining each service needing batch processing based on the batch service processing request;
processing each service to be processed in batches respectively to obtain each service processing result, wherein each service processing result comprises a first service result and a second service result, the first service result is the processing result of each service of the target server, and the second service result is the processing result of each service of the target server, which is the main server;
and replacing a target service result in the second service result by using the first service result to obtain a batch of service results, wherein the target service result is a processing result of a service corresponding to each user account of the slave server by the target server.
10. A device for processing batch traffic, the device comprising:
the first business determining module is used for responding to a batch business processing request triggered by a user and obtaining businesses needing batch processing based on the batch business processing request;
The sending module is used for sending the service corresponding to the user account to a target server of the user account aiming at any user account in the user accounts corresponding to the services, so that the target server processes the service and sends a service processing result to the intermediate server, wherein the target server of the user account is determined based on the user account;
and the first business updating module is used for executing first business operation for generating batch business results based on the received business processing results sent by the at least one target server.
11. The apparatus of claim 10, wherein the apparatus further comprises:
the first target server determining module is used for determining a target server of each user account by the following modes:
determining target servers corresponding to the user accounts respectively by utilizing the corresponding relation between the preset user accounts and the servers; or alternatively, the first and second heat exchangers may be,
the business is sent to a main server, so that the main server determines target servers corresponding to the user accounts in the business by utilizing the corresponding relation between the preset user accounts and the servers; and receiving target servers respectively corresponding to the user accounts sent by the main server.
12. The apparatus of claim 10, wherein the target server is a master server or a slave server;
the first service updating module is specifically configured to:
updating the received second service result sent by the main server by utilizing the received first service result sent by each slave server to obtain a batch service result of each service needing batch processing; or alternatively, the first and second heat exchangers may be,
and sending the received first service results sent by each slave server to the master server so that the master server updates the second service results by using the first service results to obtain the batch service results of each service needing batch processing.
13. The apparatus of claim 12, wherein the first traffic update module is further configured to:
and replacing a target service result in the second service result by using the first service result to obtain a batch service result of each service needing batch processing, wherein the target service result is a processing result of the service corresponding to each user account of the slave server by the target server.
14. A device for processing batch traffic, the device comprising:
the receiving module is used for receiving all the services which are sent by the intermediate server and need to be processed in batches;
the business processing module is used for processing the businesses which need to be processed in batches to obtain a second business result;
and the second business updating module is used for executing second business operation for generating batch business results based on the second business results.
15. The apparatus of claim 14, wherein the second service update module is specifically configured to:
the second business result is sent to the intermediate server, so that the intermediate server updates the second business result by using the first business result to obtain a batch business result of each business which needs to be processed in batches, wherein the first business result is obtained by processing each business of which the target server is each slave server by using each slave server; or alternatively, the first and second heat exchangers may be,
and updating the second service result by using the received first service result sent by the intermediate server to obtain a batch service result of each service needing batch processing.
16. The apparatus of claim 15, wherein the second service update module is further configured to:
and replacing a target service result in the second service result by using the first service result to obtain a batch service result of each service needing batch processing, wherein the target service result is a processing result of the service corresponding to each user account of the slave server by the target server.
17. The apparatus of claim 16, wherein the apparatus further comprises:
the second target server determining module is configured to determine target servers corresponding to the user accounts in the services to be processed in batches respectively by using a preset correspondence between the user accounts and the servers, and send the target servers corresponding to the user accounts to the intermediate server, so that the intermediate server sends the service corresponding to the user account to the corresponding slave server, and sends the first service result returned by the slave server to the master server.
18. A device for processing batch traffic, the device comprising:
The second service determining module is used for responding to a batch service processing request triggered by a user and obtaining each service needing batch processing based on the batch service processing request;
the business processing result determining module is used for respectively processing the businesses which need to be processed in batches to obtain business processing results, wherein the business processing results comprise a first business result and a first business result
The first service result is the processing result of each service of the target server, and the second service result is the processing result of each service of the target server, which is the main server;
and the third service updating module is used for replacing a target service result in the second service result by using the first service result to obtain a batch of service results, wherein the target service result is a processing result of a service corresponding to each user account of the slave server by the target server.
19. An electronic device, comprising:
a memory for storing program instructions;
a processor for invoking program instructions stored in the memory and for performing the steps comprised in the method according to any of claims 1-9 in accordance with the obtained program instructions.
20. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method of any of claims 1-9.
21. A computer program product, the computer program product comprising: computer program code which, when run on a computer, causes the computer to perform the method of any of the preceding claims 1-9.
CN202311227681.0A 2023-09-22 2023-09-22 Batch service processing method, device, equipment and medium Pending CN117170850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311227681.0A CN117170850A (en) 2023-09-22 2023-09-22 Batch service processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311227681.0A CN117170850A (en) 2023-09-22 2023-09-22 Batch service processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN117170850A true CN117170850A (en) 2023-12-05

Family

ID=88929737

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311227681.0A Pending CN117170850A (en) 2023-09-22 2023-09-22 Batch service processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN117170850A (en)

Similar Documents

Publication Publication Date Title
CN111163129B (en) Resource processing method and device based on cross-link network
CN111163130B (en) Network service system and data transmission method thereof
CN105468302A (en) Data processing method, apparatus and system
CN111274252A (en) Block chain data chaining method, device, storage medium and server
US20230007873A1 (en) Management Method and Apparatus for System Configuration Independent of Smart Contract for Blockchain
CN110659905A (en) Transaction verification method, device, terminal equipment and storage medium
CN105554730A (en) Communication method, server and terminal
CN113312675A (en) Attribute checking method and device, electronic equipment and storage medium
US20230259930A1 (en) Cross-chain transaction processing method and apparatus, electronic device, and storage medium
CN112633885A (en) Multi-signature transaction implementation method and related device
CN117170850A (en) Batch service processing method, device, equipment and medium
CN115037472B (en) Transaction processing method and system based on double-layer DAG consensus mechanism and service equipment
CN113011607B (en) Resource recycling method, device, equipment and storage medium
CN115550380A (en) Data synchronization method, device, equipment and storage medium
CN115391703A (en) Interface information processing method and device
CN114760322A (en) Vehicle information association method, Internet of vehicles terminal and Internet of vehicles platform
CN110445848B (en) Method and apparatus for transaction processing
CN105072047A (en) Message transmitting and processing method
CN111444129A (en) Method for transmitting MDB data and terminal equipment
CN117808613A (en) Method, device, equipment and medium for processing clearing business
CN114791926A (en) Organization information management method and related device
CN110837536B (en) Information processing method, device and storage medium
CN116088891A (en) Service state updating method and device
CN108256989B (en) Data display method and system of fund preparation system
CN115271676A (en) Clearing information processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination