CN111737055A - Service processing method, device, equipment and computer readable storage medium - Google Patents

Service processing method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111737055A
CN111737055A CN202010578756.XA CN202010578756A CN111737055A CN 111737055 A CN111737055 A CN 111737055A CN 202010578756 A CN202010578756 A CN 202010578756A CN 111737055 A CN111737055 A CN 111737055A
Authority
CN
China
Prior art keywords
service
processing
sub
processed
target state
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
CN202010578756.XA
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.)
Beijing Tongbang Zhuoyi Technology Co ltd
Original Assignee
Beijing Tongbang Zhuoyi Technology 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 Beijing Tongbang Zhuoyi Technology Co ltd filed Critical Beijing Tongbang Zhuoyi Technology Co ltd
Priority to CN202010578756.XA priority Critical patent/CN111737055A/en
Publication of CN111737055A publication Critical patent/CN111737055A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1479Generic software techniques for error detection or fault masking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a service processing method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: when the occurrence of the burst fault is detected, setting a state corresponding to a sub-process of the currently processed on-line service as a target state; when the burst fault is detected to be repaired, performing service processing on the sub-process of the online service in the target state to obtain a processing result; and sending the processing result to terminal equipment so that a user can check the processing result of the service to be processed. Therefore, the problem that the on-line service processing fails when the burst fault occurs can be avoided. In addition, in order to facilitate the user to know the current online service processing flow in time, the processing result can be sent to the terminal equipment for displaying. On the basis of improving the success rate of on-line service processing, the user experience is improved.

Description

Service processing method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of data processing, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for service processing.
Background
In order to improve the efficiency of service processing, the prior art generally adopts an online processing mode to perform centralized processing on the services of the users. When performing online traffic processing, there are often some core traffic with long processing cycles but of great importance. For example, in the online network loan transaction process, the loan application and repayment business includes multiple links, such as business rule verification, risk identification and control, payment deduction, and the like, and has a long processing period.
In the prior art, when the service with a long period is processed, one flow is generally adopted for continuous processing, and in a plurality of associated services, after the service processing with a logic sequence before is finished, the service with a logic sequence after is continuously processed.
However, when the above method is used for service processing, when a sudden failure occurs in a middle link, such as a network failure, a database exception, an application server exception, etc., a service failure process is directly performed, and information of the process failure is fed back to a user. At this time, the user is required to request the service processing again, so the service processing efficiency is low, and the use experience of the client is affected.
Disclosure of Invention
The application provides a service processing method, a service processing device, service processing equipment and a computer readable storage medium, which are used for solving the technical problem that the service processing efficiency is low because a user needs to request service processing again when the service processing fails in the conventional service processing method.
A first aspect of the present application provides a service processing method, including:
when the occurrence of the burst fault is detected, setting a state corresponding to a sub-process of the currently processed on-line service as a target state;
when the burst fault is detected to be repaired, performing service processing on the sub-process of the online service in the target state to obtain a processing result;
and sending the processing result to terminal equipment so that a user can check the processing result of the service to be processed.
In the service processing method provided in this embodiment, when the occurrence of the burst fault is detected, the state corresponding to the sub-flow of the online service currently being processed is set as the target state, so that after the burst fault is repaired, the sub-flow of the online service in the target state is subjected to service processing, and a processing result is obtained. Therefore, the problem that the on-line service processing fails when the burst fault occurs can be avoided. In addition, in order to facilitate the user to know the current online service processing flow in time, the processing result can be sent to the terminal equipment for displaying. On the basis of improving the success rate of on-line service processing, the user experience is improved.
In one possible design, the performing service processing on the sub-process of the online service in the target state to obtain a processing result includes:
detecting whether a to-be-processed service with any sub-process in a target state exists, wherein the to-be-processed service comprises at least one sub-process;
determining a residual flow corresponding to the service to be processed according to a preset logic sequence corresponding to the service to be processed;
and processing the rest flows to obtain a processing result.
In a possible design, the detecting whether there is a pending service in which any sub-process is in a target state includes:
and detecting whether any business to be processed with any sub-process in a target state exists according to a preset time period.
In a possible design, the detecting whether there is a pending service in which any sub-process is in a target state includes:
and responding to a compensation instruction triggered by a user, and detecting whether any business to be processed with a sub-process in a target state exists.
In one possible design, the performing service processing on the sub-process of the online service in the target state to obtain a processing result includes:
if the number of times of sub-process processing failure of the on-line service in the target state exceeds a preset threshold value, the processing result is processing failure;
and if the number of times of sub-process processing failure of the on-line service in the target state is lower than a preset threshold value, the processing result is successful.
In a possible design, the performing service processing on the sub-process of the online service in the target state, after obtaining a processing result, further includes:
and if the processing result is processing failure, deleting the service to be processed and all data corresponding to the service to be processed.
In a possible design, after setting the state corresponding to the sub-flow of the currently processed online service as the target state, the method further includes:
determining a sub-process currently processed by the online service;
and deleting the data generated in the sub-flow processing process.
In the service processing method provided by this embodiment, the sub-process currently processed by the online service is determined, and the data generated in the processing process of the sub-process is deleted. Therefore, the storage space of the data server can be saved on the basis of avoiding the failure of on-line service processing caused by burst faults.
A second aspect of the present application provides a service processing apparatus, including:
the setting module is used for setting the state corresponding to the sub-process of the currently processed on-line service as a target state when the occurrence of the sudden failure is detected;
the processing module is used for carrying out service processing on the sub-flow of the on-line service in the target state after the sudden failure is detected to be repaired, and obtaining a processing result;
and the sending module is used for sending the processing result to the terminal equipment so that the user can check the processing result of the service to be processed.
The service processing apparatus provided in this embodiment sets, when it is detected that a sudden failure occurs, a state corresponding to a sub-flow of an online service currently being processed as a target state, so that after the sudden failure is repaired, the service processing apparatus can perform service processing on the sub-flow of the online service in the target state to obtain a processing result. Therefore, the problem that the on-line service processing fails when the burst fault occurs can be avoided. In addition, in order to facilitate the user to know the current online service processing flow in time, the processing result can be sent to the terminal equipment for displaying. On the basis of improving the success rate of on-line service processing, the user experience is improved.
In one possible design, the processing module includes:
the system comprises a detection unit, a processing unit and a processing unit, wherein the detection unit is used for detecting whether any business to be processed with a sub-process in a target state exists or not, and the business to be processed comprises at least one sub-process;
a determining unit, configured to determine a remaining process corresponding to the service to be processed according to a preset logic sequence corresponding to the service to be processed;
and the processing unit is used for processing the residual flow to obtain a processing result.
In one possible design, the detection unit is configured to:
and detecting whether any business to be processed with any sub-process in a target state exists according to a preset time period.
In one possible design, the detection unit is configured to:
and responding to a compensation instruction triggered by a user, and detecting whether any business to be processed with a sub-process in a target state exists.
In one possible design, the processing module is to:
if the number of times of sub-process processing failure of the on-line service in the target state exceeds a preset threshold value, the processing result is processing failure;
and if the number of times of sub-process processing failure of the on-line service in the target state is lower than a preset threshold value, the processing result is successful.
In one possible design, the apparatus further includes:
and the deleting module is used for deleting the service to be processed and all data corresponding to the service to be processed if the processing result is processing failure.
In one possible design, the apparatus further includes:
the flow determining module is used for determining the sub-flow currently processed by the online service;
and the deleting module is used for deleting the data generated in the sub-process processing process.
The service processing apparatus provided in this embodiment determines a sub-flow currently processed by the online service, and deletes data generated by the sub-flow in a processing process. Therefore, the storage space of the data server can be saved on the basis of avoiding the failure of on-line service processing caused by burst faults.
A third aspect of the present application provides a service processing device, including: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the traffic processing method according to the first aspect by the processor.
A fourth aspect of the present application is to provide a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are executed by a processor to implement the business processing method according to the first aspect.
According to the service processing method, the device, the equipment and the computer readable storage medium, when the sudden fault is detected, the state corresponding to the sub-process of the on-line service currently being processed is set to be the target state, so that after the sudden fault is repaired, the sub-process of the on-line service in the target state can be processed, and a processing result is obtained. Therefore, the problem that the on-line service processing fails when the burst fault occurs can be avoided. In addition, in order to facilitate the user to know the current online service processing flow in time, the processing result can be sent to the terminal equipment for displaying. On the basis of improving the success rate of on-line service processing, the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art according to these drawings.
FIG. 1 is a schematic diagram of a network architecture on which the present application is based;
fig. 2 is a schematic flowchart of a service processing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a display interface provided in an embodiment of the present application;
fig. 4 is a schematic flow chart of a service processing method according to a second embodiment of the present invention;
FIG. 5 is a schematic view of another display interface provided in the embodiments of the present application;
fig. 6 is a schematic flow chart of a service processing method according to a third embodiment of the present application;
fig. 7 is a schematic structural diagram of a service processing apparatus according to a fourth embodiment of the present application;
fig. 8 is a schematic structural diagram of a service processing apparatus according to a fifth embodiment of the present application;
fig. 9 is a schematic structural diagram of a service processing apparatus according to a sixth embodiment of the present application;
fig. 10 is a schematic structural diagram of a service processing device according to a seventh embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained based on the embodiments in the present application belong to the protection scope of the present application.
In view of the above-mentioned technical problem that the service processing efficiency is low because the user needs to request the service processing again when the service processing fails in the conventional service processing method, the present application provides a service processing method, apparatus, device and computer-readable storage medium.
It should be noted that the service processing method, device, apparatus, and computer-readable storage medium provided in the present application may be applied to various online service processing scenarios.
In the existing service processing method, if a sudden failure occurs in the service processing process, such as a network failure, a database exception, an application server exception, and the like, the current service processing may be directly failed. At this time, if the user wants to transact the service, the user needs to send a service transaction request again. Therefore, the service processing efficiency is low, and the user experience is poor.
In the process of solving the technical problem, the inventor finds, through research, that, in order to avoid failure of service processing, a current processing link of a service can be set to be in a target state when a fault occurs, and then unprocessed remaining flows corresponding to the service in the target state can be directly processed when the fault is recovered, so that the service processing efficiency is improved.
The inventor further researches and discovers that when the occurrence of the burst fault is detected, the state corresponding to the sub-flow of the on-line service currently being processed is set as the target state, so that the sub-flow of the on-line service in the target state can be processed by the service after the burst fault is repaired, and the processing result is obtained. Therefore, the problem that the on-line service processing fails when the burst fault occurs can be avoided. In addition, in order to facilitate the user to know the current online service processing flow in time, the processing result can be sent to the terminal equipment for displaying. On the basis of improving the success rate of on-line service processing, the user experience is improved.
Fig. 1 is a schematic diagram of a network architecture based on the present application, as shown in fig. 1, the network architecture based on the present application at least includes: terminal device 1, processor 2 and data server 3. The processor 2 is provided with a service processing device, and the service processing device is written by C/C + +, Java, Shell or Python and other languages; the terminal device 1 may be a desktop computer, a tablet computer, or the like. The data server 3 may be a cloud server or a server cluster, and a large amount of data is stored therein. The processor 2 is in communication connection with the terminal device 1 and the data server 3, respectively, so as to be capable of information interaction with the terminal device 1 and the data server 3.
Fig. 2 is a schematic flow chart of a service processing method provided in an embodiment of the present application, and as shown in fig. 2, the method includes:
step 101, when detecting that a sudden failure occurs, setting a state corresponding to a sub-process of a currently processed online service as a target state.
The execution subject of this embodiment is a service processing apparatus. The server provided with the service processing device can be in communication connection with the terminal equipment of the user, so that information interaction can be carried out with the terminal equipment.
In this embodiment, since the online service generally has a plurality of processing links, when all the links are processed, it is characterized that the online service is processed. In order to avoid the problem of service processing failure caused by burst failure in the process of processing the service to be processed, the service processing device can detect whether burst failure occurs currently in real time. Wherein, the burst failure includes but is not limited to a network failure, a database exception, an application server exception, and the like. When the occurrence of the burst fault is detected, the sub-process being processed in all the on-line services currently processed is determined, and the state of the sub-process is set to be a target state.
And 102, after the burst fault is detected to be repaired, performing service processing on the sub-process of the online service in the target state to obtain a processing result.
In this embodiment, the service processing apparatus may detect whether the current burst fault is repaired in real time, for example, network connection is restored, the database is re-accessible, and the like. If the current burst fault is detected to be repaired, the sub-process of the online service currently in the target state can be determined, and the service processing is carried out on the sub-process to obtain a processing result. Therefore, all sub-processes do not need to be repeatedly processed, and the efficiency of business processing is effectively improved.
For example, in practical applications, when the service processing device obtains a loan request sent by the terminal device, and in the process of processing the loan request, when a certain sub-process corresponding to the loan request is processed, a network fault occurs, at this time, the service processing device may set the sub-process to a target state. Correspondingly, after the fault is repaired, the sub-process of the online service currently in the target state can be determined, and the service processing is performed on the sub-process to obtain a processing result.
And 103, sending the processing result to the terminal equipment so that the user can check the processing result of the service to be processed.
In the present embodiment, the processing result can be obtained after the remaining flow is processed. In order to enable the user to know the processing result in time, the processing result can be sent to the terminal device for displaying. Therefore, the user can check the processing result on the terminal equipment in a man-machine interaction mode.
Fig. 3 is a schematic view of a display interface provided in the embodiment of the present application, and as shown in fig. 3, a processing result may specifically include processing success and processing failure. When the processing is successful, the processing result corresponding to the to-be-processed service can be directly displayed to the user, for example, when the to-be-processed service is a loan service, information such as the current loanable amount can be directly sent to the user. If the processing fails, information such as the processing failure and the failure reason may be transmitted to the terminal device.
The service processing apparatus provided in this embodiment sets, when it is detected that a sudden failure occurs, a state corresponding to a sub-flow of an online service currently being processed as a target state, so that after the sudden failure is repaired, the service processing apparatus can perform service processing on the sub-flow of the online service in the target state to obtain a processing result. Therefore, the problem that the on-line service processing fails when the burst fault occurs can be avoided. In addition, in order to facilitate the user to know the current online service processing flow in time, the processing result can be sent to the terminal equipment for displaying. On the basis of improving the success rate of on-line service processing, the user experience is improved.
Fig. 4 is a schematic flow chart of a service processing method provided in the second embodiment of the present invention, and on the basis of the first embodiment, as shown in fig. 4, step 102 specifically includes:
step 201, detecting whether a to-be-processed service with any sub-process in a target state exists, wherein the to-be-processed service comprises at least one sub-process;
step 202, determining a remaining process corresponding to the service to be processed according to a preset logic sequence corresponding to the service to be processed;
and 203, processing the rest flows to obtain a processing result.
In this embodiment, in order to avoid a problem that a service processing fails due to a burst failure in a service processing process of a service to be processed, a service processing apparatus may detect whether there is a service to be processed in which any sub-flow is in a target state currently, where the sub-flow of the service to be processed currently being processed is set by the service processing apparatus when the target state detects that a failure occurs currently.
And aiming at each service to be processed, a preset logic sequence is corresponding to each service to be processed, and the logic sequence is the sequence of all the processes required by the service to be processed. After detecting the to-be-processed service of which the sub-process is in the intermediate state, a logic sequence corresponding to the to-be-processed service may be determined. Specifically, the logic sequence may be obtained from the data server according to an identifier corresponding to the service to be processed. And then determining the remaining process corresponding to the service to be processed according to the logic sequence. Wherein the remaining process is composed of a sub-process in a target state and at least one unprocessed sub-process.
After determining the remaining flows which need to be processed currently, the remaining flows may be directly processed. And all sub-processes do not need to be repeatedly processed, so that the service processing efficiency is effectively improved.
For example, in practical applications, when the service processing device obtains a loan request sent by the terminal device, and in the process of processing the loan request, when a certain sub-process corresponding to the loan request is processed, a network fault occurs, at this time, the service processing device may set the sub-process to a target state. Correspondingly, after the fault is repaired, whether the to-be-processed service in any sub-process intermediate link exists in all the to-be-processed services currently processed can be detected according to a preset trigger rule. If the current service to be processed is detected, determining at least one unprocessed sub-process after the currently processed sub-process according to a preset logic sequence, and taking the sub-process in the target state and the at least one unprocessed sub-process as the remaining processes needing to be processed currently.
Specifically, on the basis of the first embodiment, the step 201 includes:
and detecting whether any business to be processed with any sub-process in a target state exists according to a preset time period.
In this embodiment, the preset triggering rule may be triggering according to a preset time period. Specifically, whether there is a to-be-processed service in which any sub-process is in a target state may be detected according to a preset time period.
In particular, different trigger periods may be set for different online services. For example, for an online service with a high real-time requirement, a shorter trigger period may be set, and for a case with a low real-time requirement, a slightly longer trigger period may be set.
Specifically, on the basis of the first embodiment, the step 201 includes:
and responding to a compensation instruction triggered by a user, and detecting whether any business to be processed with a sub-process in a target state exists.
In this embodiment, the preset trigger rule may be a trigger instruction of a user.
Fig. 5 is a schematic view of another display interface provided in the embodiment of the present application, and as shown in fig. 5, a preset compensation icon is arranged on the display interface, and a user can trigger the compensation icon to implement triggering of a compensation instruction, so as to determine a processing result of a current service as soon as possible. Wherein, the triggering of the compensation icon can be realized by clicking, double clicking and long pressing. In practical application, if a user does not receive a processing result for a long time while handling an online service, a fault may occur in the online service processing process and the online service is in a target state, and at this time, the user may trigger the compensation icon. Accordingly, the service processing apparatus can detect whether there is a service to be processed in which any sub-process is in the target state according to the compensation instruction.
Further, on the basis of the first embodiment, the step 102 specifically includes:
if the number of times of sub-process processing failure of the on-line service in the target state exceeds a preset threshold value, the processing result is processing failure;
and if the number of times of sub-process processing failure of the on-line service in the target state is lower than a preset threshold value, the processing result is successful.
In this embodiment, in order to further improve the efficiency of service processing, a threshold for processing failure may be set for each service to be processed, so as to avoid that the service processing apparatus attempts to process the same service to be processed frequently, which results in low processing efficiency and long user waiting time.
Specifically, if the number of times of sub-process processing failures of the online service in the target state is lower than a preset threshold, it may be determined that the processing result is successful. On the contrary, if the sub-process of the online service in the target state still fails to process after the preset number of attempts, the processing result may be determined as a processing failure.
For example, in practical applications, the preset threshold may be 5 times, and the information of processing failure may be directly sent to the user if the sub-process processing of the online service in the target state is not successfully processed for five times.
Further, on the basis of the first embodiment, after the step 102, the method further includes:
and if the processing result is processing failure, deleting the service to be processed and all data corresponding to the service to be processed.
In this embodiment, if it is detected that a processing result of a certain to-be-processed service is a processing failure, all data corresponding to the to-be-processed service may be directly deleted in order to save a storage space in the data server. And, the pending traffic may be deleted.
The service processing apparatus provided in this embodiment detects a service to be processed in a target state according to a preset trigger rule, processes a remaining flow of the service to be processed according to a preset logic sequence corresponding to the service to be processed, obtains a processing result, and sends the processing result to the terminal device. Therefore, the problem of service failure to be processed caused by sudden failure of the intermediate link of the online service can be avoided. The processing efficiency of the service to be processed is improved by directly processing the residual flow behind the middle link with the fault.
Further, on the basis of the first embodiment, before the step 101, the method further includes:
and if the burst fault is detected, setting the state of the currently processed online business sub-process as a target state.
In this embodiment, the service processing apparatus may detect whether a burst failure occurs currently in real time. Wherein, the burst failure includes but is not limited to a network failure, a database exception, an application server exception, and the like. When the occurrence of the burst fault is detected, the sub-process being processed in all the on-line services currently processed is determined, and the state of the sub-process is set to be a target state.
Fig. 6 is a schematic flow chart of a service processing method provided in a third embodiment of the present application, and on the basis of any of the foregoing embodiments, as shown in fig. 6, before step 101, the method further includes:
step 301, determining a sub-process currently processed by the online service;
and step 302, deleting the data generated in the sub-process processing process.
In this embodiment, when a burst fault occurs, a sub-flow corresponding to an online service being processed by a service processing apparatus cannot be successfully processed, so that the sub-flow needs to be processed again in a subsequent compensation processing process. In order to save the storage space of the data server, the data generated by the sub-process in the processing process can be deleted.
In the service processing method provided by this embodiment, the sub-process currently processed by the online service is determined, and the data generated in the processing process of the sub-process is deleted. Therefore, the storage space of the data server can be saved on the basis of avoiding the failure of on-line service processing caused by burst faults.
Fig. 7 is a schematic structural diagram of a service processing apparatus provided in the fourth embodiment of the present application, and as shown in fig. 7, the apparatus includes: the system comprises a setting module 41, a processing module 42 and a sending module 43, wherein the setting module 41 is configured to set a state corresponding to a sub-process of a currently processed online service as a target state when a sudden failure is detected; a processing module 42, configured to, after it is detected that the burst fault is repaired, perform service processing on a sub-flow of the online service in the target state, and obtain a processing result; and the sending module 43 is configured to send the processing result to the terminal device, so that the user views the processing result of the service to be processed.
The service processing apparatus provided in this embodiment sets, when it is detected that a sudden failure occurs, a state corresponding to a sub-flow of an online service currently being processed as a target state, so that after the sudden failure is repaired, the service processing apparatus can perform service processing on the sub-flow of the online service in the target state to obtain a processing result. Therefore, the problem that the on-line service processing fails when the burst fault occurs can be avoided. In addition, in order to facilitate the user to know the current online service processing flow in time, the processing result can be sent to the terminal equipment for displaying. On the basis of improving the success rate of on-line service processing, the user experience is improved.
Fig. 8 is a schematic structural diagram of a service processing apparatus provided in the fifth embodiment of the present application, and as shown in fig. 8, a processing module specifically includes: the system comprises a detection unit 51, a determination unit 52 and a processing unit 53, wherein the detection unit 51 is configured to detect whether there is a to-be-processed service in which any sub-process is in a target state, where the to-be-processed service includes at least one sub-process; a determining unit 52, configured to determine a remaining process corresponding to the service to be processed according to a preset logic sequence corresponding to the service to be processed; and the processing unit 53 is configured to process the remaining flows to obtain a processing result.
Further, on the basis of the fourth embodiment, the detecting unit 51 is configured to:
and detecting whether the service to be processed in the target state exists or not according to a preset time period.
Further, on the basis of the fourth embodiment, the detecting unit 51 is configured to:
and responding to a compensation instruction triggered by a user, and detecting whether the service to be processed in the target state exists.
Further, on the basis of the fourth embodiment, the processing module is configured to:
if the number of times of sub-process processing failure of the on-line service in the target state exceeds a preset threshold value, the processing result is processing failure;
and if the number of times of sub-process processing failure of the on-line service in the target state is lower than a preset threshold value, the processing result is successful.
Further, on the basis of the fourth embodiment, the apparatus further includes:
and the deleting module is used for deleting the service to be processed and all data corresponding to the service to be processed if the processing result is processing failure.
Fig. 9 is a schematic structural diagram of a service processing apparatus provided in a sixth embodiment of the present application, where on the basis of any of the foregoing embodiments, as shown in fig. 9, the apparatus further includes: a flow determining module 61 and a deleting module 62, wherein the flow determining module 61 is configured to determine a sub-flow currently processed by the online service; and a deleting module 62, configured to delete data generated in the sub-process processing process.
The service processing apparatus provided in this embodiment determines a sub-flow currently processed by the online service, and deletes data generated by the sub-flow in a processing process. Therefore, the storage space of the data server can be saved on the basis of avoiding the failure of on-line service processing caused by burst faults.
Fig. 10 is a schematic structural diagram of a service processing device provided in a seventh embodiment of the present application, and as shown in fig. 10, the service processing device includes: a memory 71, a processor 72;
a memory 71; a memory 71 for storing instructions executable by the processor 72;
wherein the processor 72 is configured to execute the service processing method according to any of the above embodiments by the processor 72.
The memory 71 stores programs. In particular, the program may include program code comprising computer operating instructions. The memory 71 may comprise a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor 72 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiments of the present Application.
Alternatively, in a specific implementation, if the memory 71 and the processor 72 are implemented independently, the memory 71 and the processor 72 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (enhanced Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 10, but this is not intended to represent only one bus or type of bus.
Alternatively, in a specific implementation, if the memory 71 and the processor 72 are integrated on a chip, the memory 71 and the processor 72 may perform the same communication through an internal interface.
Yet another embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the computer-readable storage medium is configured to implement the service processing method according to any one of the above embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A method for processing a service, comprising:
when the occurrence of the burst fault is detected, setting a state corresponding to a sub-process of the currently processed on-line service as a target state;
when the burst fault is detected to be repaired, performing service processing on the sub-process of the online service in the target state to obtain a processing result;
and sending the processing result to terminal equipment so that a user can check the processing result of the service to be processed.
2. The method according to claim 1, wherein the performing service processing on the sub-process of the online service in the target state to obtain a processing result comprises:
detecting whether a to-be-processed service with any sub-process in a target state exists, wherein the to-be-processed service comprises at least one sub-process;
determining a residual flow corresponding to the service to be processed according to a preset logic sequence corresponding to the service to be processed;
and processing the rest flows to obtain a processing result.
3. The method according to claim 2, wherein the detecting whether there is any pending service with any sub-process in the target state comprises:
and detecting whether any business to be processed with any sub-process in a target state exists according to a preset time period.
4. The method according to claim 2, wherein the detecting whether there is any pending service with any sub-process in the target state comprises:
and responding to a compensation instruction triggered by a user, and detecting whether any business to be processed with a sub-process in a target state exists.
5. The method according to any one of claims 1 to 4, wherein the performing the service processing on the sub-process of the online service in the target state to obtain the processing result comprises:
if the number of times of sub-process processing failure of the on-line service in the target state exceeds a preset threshold value, the processing result is processing failure;
and if the number of times of sub-process processing failure of the on-line service in the target state is lower than a preset threshold value, the processing result is successful.
6. The method according to claim 5, wherein the performing the service processing on the sub-process of the online service in the target state, after obtaining the processing result, further comprises:
and if the processing result is processing failure, deleting the service to be processed and all data corresponding to the service to be processed.
7. The method according to claim 1, wherein after setting the state corresponding to the sub-flow of the currently processed online service as the target state, the method further comprises:
determining a sub-process currently processed by the online service;
and deleting the data generated in the sub-flow processing process.
8. A traffic processing apparatus, comprising:
the setting module is used for setting the state corresponding to the sub-process of the currently processed on-line service as a target state when the occurrence of the sudden failure is detected;
the processing module is used for carrying out service processing on the sub-flow of the on-line service in the target state after the sudden failure is detected to be repaired, and obtaining a processing result;
and the sending module is used for sending the processing result to the terminal equipment so that the user can check the processing result of the service to be processed.
9. A traffic processing device, comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the traffic processing method of any of claims 1-7 by the processor.
10. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, are configured to implement the business process method of any one of claims 1-7.
CN202010578756.XA 2020-06-23 2020-06-23 Service processing method, device, equipment and computer readable storage medium Pending CN111737055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010578756.XA CN111737055A (en) 2020-06-23 2020-06-23 Service processing method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010578756.XA CN111737055A (en) 2020-06-23 2020-06-23 Service processing method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111737055A true CN111737055A (en) 2020-10-02

Family

ID=72650536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010578756.XA Pending CN111737055A (en) 2020-06-23 2020-06-23 Service processing method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111737055A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035240A (en) * 2020-10-09 2020-12-04 北京达佳互联信息技术有限公司 Task management method, device and system
CN113220589A (en) * 2021-06-03 2021-08-06 上海中通吉网络技术有限公司 On-line problem processing method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107784479A (en) * 2017-02-16 2018-03-09 平安科技(深圳)有限公司 A kind of business flow processing method and apparatus
CN110442481A (en) * 2019-07-10 2019-11-12 阿里巴巴集团控股有限公司 Method for processing business, Service Component container and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107784479A (en) * 2017-02-16 2018-03-09 平安科技(深圳)有限公司 A kind of business flow processing method and apparatus
CN110442481A (en) * 2019-07-10 2019-11-12 阿里巴巴集团控股有限公司 Method for processing business, Service Component container and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035240A (en) * 2020-10-09 2020-12-04 北京达佳互联信息技术有限公司 Task management method, device and system
CN113220589A (en) * 2021-06-03 2021-08-06 上海中通吉网络技术有限公司 On-line problem processing method

Similar Documents

Publication Publication Date Title
WO2019140739A1 (en) Method for determining return visits to client, and electronic apparatus and computer-readable storage medium
CN111737055A (en) Service processing method, device, equipment and computer readable storage medium
WO2019061998A1 (en) Intelligent breakpoint distribution method, electronic device, and computer readable storage medium
CN111737300A (en) Service processing method, device, equipment and computer readable storage medium
CN107239325B (en) Document data processing method and device
CN108509322B (en) Method for avoiding excessive return visit, electronic device and computer readable storage medium
CN116645082A (en) System inspection method, device, equipment and storage medium
CN108390770B (en) Information generation method and device and server
CN114095394B (en) Network node fault detection method and device, electronic equipment and storage medium
CN112818204B (en) Service processing method, device, equipment and storage medium
CN113850664A (en) Data anomaly detection method and data reporting service
CN112925623A (en) Task processing method and device, electronic equipment and medium
CN112800003A (en) Recommendation method for creating snapshot, snapshot creation method and device and electronic equipment
CN107704557B (en) Processing method and device for operating mutually exclusive data, computer equipment and storage medium
CN111488236A (en) Order abnormity processing method, server, storage medium and processing device
CN114218056B (en) Performance test method and device for transaction system, computer equipment and storage medium
CN117251769B (en) Abnormal data identification method, device, equipment and medium based on monitoring component
CN116340097A (en) Method, device, equipment and storage medium for processing abnormal information
CN116185240A (en) Information interaction method and device
CN111737301A (en) Service processing method, device, equipment and computer readable storage medium
CN114826886A (en) Application software disaster tolerance method and device and electronic equipment
CN117829939A (en) Method, device, equipment and storage medium for processing return request
CN118034986A (en) Memory fault processing method and device, storage medium and electronic equipment
CN115271501A (en) Order processing method and device, storage medium and electronic equipment
CN117596047A (en) Request processing method, request processing device, electronic equipment and storage medium

Legal Events

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