CN116962524A - Data processing method, device, equipment and computer storage medium - Google Patents

Data processing method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN116962524A
CN116962524A CN202310975812.7A CN202310975812A CN116962524A CN 116962524 A CN116962524 A CN 116962524A CN 202310975812 A CN202310975812 A CN 202310975812A CN 116962524 A CN116962524 A CN 116962524A
Authority
CN
China
Prior art keywords
target
service
request data
type
service system
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
CN202310975812.7A
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 CN202310975812.7A priority Critical patent/CN116962524A/en
Publication of CN116962524A publication Critical patent/CN116962524A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a data processing method, a device, equipment and a computer storage medium. The method comprises the following steps: responding to a service processing request of a user, and generating target request data aiming at target service; the target request data sends the target request data to an external service system; acquiring the associated information of the target service under the condition that service processing result information sent by an external service system is not received; and re-transmitting the target request data processing to the external service system under the condition that the target service supports the idempotent retransmission mechanism according to the association information. According to the embodiment of the application, the times that the user needs to resend the service processing request because the local service system does not receive the service processing result information are reduced, and the user experience is improved.

Description

Data processing method, device, equipment and computer storage medium
Technical Field
The present application relates to data processing, and more particularly, to a data processing method, apparatus, device, and computer storage medium.
Background
Currently, with the rapid development of services, users complete interaction with external service systems through a local service system, which is a common service processing mode.
In the process that a user obtains related services of an external service system through a local service system, the user is usually required to perform corresponding operations in the local service system, the local service system sends data corresponding to the operations of the user to the external service system based on the operations of the user, so that the external service system completes processing of related services according to the data, and the external service system feeds back service processing results to the user through the local service system. However, due to the influence of factors such as network environments of the local service system and the external service system, system stability, etc., an instant network or system service may not be available, so that the local service system cannot receive feedback from the external service system, and cannot know whether the service is successfully processed. For the above situation, if the data is directly retransmitted to the external service system, the service processing result may be wrong due to the repeated processing of the related service, and if the task is directly ended, the user is required to retransmit the above operation, which results in low service processing efficiency and poor user experience.
Disclosure of Invention
The embodiment of the application provides a data processing method, a device, equipment and a computer storage medium, which can reduce the times that a user needs to resend a service processing request because a local service system does not receive service processing result information, and improve user experience.
In a first aspect, an embodiment of the present application provides a data processing method, including:
responding to a service processing request of a user, and generating target request data aiming at target service;
transmitting target request data to an external service system for the external service system to process a target service based on the target request data;
under the condition that service processing result information sent by an external service system is not received, acquiring the associated information of the target service, wherein the associated information comprises whether target request data supports an idempotent retransmission mechanism or not;
and re-transmitting the target request data to the external service system under the condition that the target service supports the idempotent retransmission mechanism according to the association information.
In some embodiments, the method further comprises:
when the target request data does not support an idempotent retransmission mechanism or the target request data is sent to the external service system again, sending a service processing result query request to the external service system so as to be used for sending a service processing result to the local service system by the external service system based on the service processing result query request;
and in response to receiving the information of the service processing result which is not queried and sent by the external service system, re-sending target request data of target request data to the external service system, and returning to execute the query request of the service processing result sent by the external service system until the service processing result sent by the external service system is received as the processing service success.
In some embodiments, resending the destination request data to the external service system includes:
determining the sent times of target request data;
and re-transmitting the target request data to the external service system under the condition that the transmitted times are smaller than a preset threshold value.
In some embodiments, the method further comprises:
and outputting alarm information under the condition that the transmitted times are larger than a preset threshold value.
In some embodiments, the association information includes at least one of a priority of the target service and a cause of failure in service processing, and the sending of the target request data to the external service system includes:
determining the type of the target service based on the association information to obtain the target service type;
storing the target request data into a target queue corresponding to the target service type;
and transmitting the data stored in the target queue according to the data transmission frequency corresponding to the target request data queue so as to transmit the target request data to an external service system.
In some embodiments, in a case where the association information includes a priority of the target service, the target request data determines a type to which the target service belongs based on the association information, to obtain the target service type, including:
Comparing the magnitude relation between the priority of the target request data and the preset priority;
under the condition that the priority of the target request data is greater than the preset priority, determining the type of the target service as a first type, wherein a target queue corresponding to the first type is a first queue;
under the condition that the priority of the target request data is smaller than or equal to the preset priority, determining the type of the target service as a second type, wherein a target queue corresponding to the second type is a second queue;
the preset frequency corresponding to the second queue is lower than the preset frequency corresponding to the first queue.
In some embodiments, in a case that the service processing of the association information including the target request data fails, determining a type to which the target service belongs based on the association information, to obtain the target service type includes:
under the condition that the service processing failure of the target request data is caused by network jitter, determining the type of the target service as a first type, and determining a target queue corresponding to the first type as a first queue;
under the condition that the service processing failure reason of the target request data is that an external service system is unavailable, determining the type of the target service as a second type, wherein a target queue corresponding to the second type is a second queue;
The preset frequency corresponding to the second queue is lower than the preset frequency corresponding to the first queue.
In some embodiments, in a case where the association information includes a priority of the target request data and a service processing failure, the target request data processing determines a type to which the target service belongs based on the association information, and obtains the target service type, including:
comparing the priority of the target request data with the preset priority;
under the condition that the priority of the target request data is greater than the preset priority, determining the type of the target service as a first type, wherein a target queue corresponding to the first type is a first queue;
acquiring a service processing failure reason of the target request data from the associated information under the condition that the priority of the target request data is smaller than or equal to a preset priority;
under the condition that the service processing failure of the target request data is caused by network jitter, determining the type of the target service as a first type;
under the condition that the service processing failure reason of the target request data is that an external service system is unavailable, determining the type of the target service as a second type, wherein a target queue corresponding to the second type is a second queue;
The preset frequency corresponding to the second queue is lower than the preset frequency corresponding to the first queue.
In a second aspect, an embodiment of the present application provides a data processing apparatus, including:
the generating module is used for responding to the service processing request of the user and generating target request data aiming at target service;
the sending module is used for sending target request data to the external service system so as to be used for processing target business by the external service system based on the target request data;
the acquisition module is used for acquiring the associated information of the target service under the condition that service processing result information sent by the external service system is not received, wherein the associated information comprises whether the target request data supports an idempotent retransmission mechanism or not;
and the retransmission module is used for retransmitting the target request data to the external service system under the condition that the target service supports the idempotent retransmission mechanism according to the association information.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the data processing method according to any one of the first aspects.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement a data processing method as in any of the first aspects.
In a fifth aspect, embodiments of the present application provide a computer program product, instructions in which, when executed by a processor of an electronic device, cause the electronic device to perform a data processing method according to any of the first aspects.
According to the data processing method, the device, the equipment and the computer storage medium, the target request data can be resent according to whether the target service corresponding to the target request data has idempotent or not under the condition that the service processing result information sent by the external service system is not received, so that the local service system can resend the target request data to the external service system under the condition that the local service system is influenced by factors such as network environments of the local service system and the external service system, system stability and the like, the external service system can resend the target service corresponding to the target request data, the frequency of resending the service processing request due to the fact that the local service system does not receive the service processing result information is effectively reduced, and user experience is improved.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings that are needed to be used in the embodiments of the present application will be briefly described, and it is possible for a person skilled in the art to obtain other drawings according to these drawings without inventive effort.
FIG. 1 is a flow chart of a data processing method according to an embodiment of the present application;
FIG. 2 is a flow chart of a data processing method according to another embodiment of the present application;
FIG. 3 is a flow chart of a data processing method according to another embodiment of the present application;
FIG. 4 is a schematic diagram of a data processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Features and exemplary embodiments of various aspects of the present application will be described in detail below, and in order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail below with reference to the accompanying drawings and the detailed embodiments. It should be understood that the particular embodiments described herein are meant to be illustrative of the application only and not limiting. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the application by showing examples of the application.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
In addition, the technical scheme of the application can acquire, store, use, process and the like the data, which accords with the relevant regulations of national laws and regulations.
Before describing the embodiments of the present application, technical terms used in describing the embodiments of the present application will be first described.
Idempotent retransmission mechanism: it means that the results obtained when the operations are performed a plurality of times are the same, i.e., the results of the operations are identical. That is, for the same operation, whether a request is initiated or multiple requests are initiated, the final execution result is consistent, and no side effects are generated due to the multiple requests.
External service system: the pointer is a service system which can handle target business for users, such as a service system which can handle mobile phone charge recharging business.
Local service system: the pointer is a service system which enables a user to send a service handling request to an external service system through a terminal device, for example, an APP which can send a mobile phone charge recharging request to the external service system in the terminal device.
Currently, with the rapid development of services, users complete interaction with external service systems through a local service system, which is a common service processing mode.
In the process that a user obtains related services of an external service system through a local service system, the user is usually required to perform corresponding operations in the local service system, the local service system sends data corresponding to the operations of the user to the external service system based on the operations of the user, so that the external service system completes processing of related services according to the data, and the external service system feeds back service processing results to the user through the local service system. However, due to the influence of factors such as network environments of the local service system and the external service system, system stability, etc., an instant network or system service may not be available, so that the local service system cannot receive feedback from the external service system, and cannot know whether the service is successfully processed. For the above situation, if the data is directly retransmitted to the external service system, the service processing result may be wrong due to the repeated processing of the related service, and if the task is directly ended, the user is required to retransmit the above operation, which results in low service processing efficiency and poor user experience.
Based on the above problems, the present application provides a data processing method, apparatus, device and computer storage medium, which can resend target request data according to whether a target service corresponding to the target request data has idempotent property under the condition that service processing result information sent by an external service system is not received, so that a local service system can resend the target request data to the external service system under the condition that the local service system is affected by factors such as network environments of the local service system and the external service system, system stability and the like, so that the external service system resends the target service corresponding to the target request data, thereby effectively reducing the times that a user needs to resend the service processing request because the local service system does not receive the service processing result information, and improving user experience.
The following first describes a data processing method provided by an embodiment of the present application.
Fig. 1 is a flow chart of a data processing method according to an embodiment of the present application. As shown in fig. 1, the data processing method provided by the embodiment of the application includes the following steps: S101-S104.
S101: in response to a user's business processing request, target request data for a target business is generated.
As an example, after a user inputs a service processing request by the local service system, the local service system generates target request data for a target service according to the service processing request input by the user. Wherein the target service corresponds to the service processing request.
For example, the user inputs information requesting to transact the telephone fee recharging service in the system a, where the information includes a target recharging account and a recharging amount of the user in the system B, the system a generates target request data according to the recharging account and the recharging amount, and the target request data may recharge the target recharging account for the system B according to the recharging amount.
S102: the target request data is sent to the external service system for the external service system to process the target traffic based on the target request data.
As one example, the local service system sends target request data to the external service system, which processes the target business based on the target request data after receiving the target request data.
S103: and under the condition that service processing result information sent by an external service system is not received, acquiring the associated information of the target service.
In an embodiment of the application, the association information includes whether the target request data supports an idempotent retransmission mechanism.
It will be appreciated that after the local service system sends the target request data to the external service system, there are typically two cases: one of the cases is that service processing result information sent by an external service system is received, wherein the service processing result information comprises service processing success information or service processing failure information, and the fact that the external service system has completed processing the target service or the target service cannot be processed due to the fact that target request data does not meet target service processing requirements; another situation is that the service processing result information sent by the external service system is not received, which is caused by network jitter, unstable local service system or external service system, and failure of data transmission.
As an example, if the service processing result information sent by the external service system is not received within the preset duration, the association information of the target service is obtained. The association information may include whether the target request data supports an idempotent retransmission mechanism.
S104: and re-transmitting the target request data to the external service system under the condition that the target service supports the idempotent retransmission mechanism according to the association information.
It can be understood that, if it is determined that the target service supports the idempotent retransmission mechanism by the information about whether the target request data in the associated information supports the idempotent retransmission mechanism, the target request data may be sent to the external service system again, so that the external service system processes the target service again based on the target request data, and sends the service processing result to the local service system.
According to the data processing method provided by the embodiment of the application, the target request data is retransmitted according to whether the target service corresponding to the target request data has idempotent or not under the condition that the service processing result information sent by the external service system is not received, so that the local service system can retransmit the target request data to the external service system under the condition that the local service system is influenced by factors such as network environments of the local service system and the external service system, system stability and the like, and the external service system is enabled to retransmit the target service corresponding to the target request data, thereby effectively reducing the times that a user needs to retransmit the service processing request because the local service system does not receive the service processing result information, and improving user experience.
It should be noted that, in the case where the target request data does not support the idempotent retransmission mechanism and the service processing result information sent by the external service system is not received, or the target request data is sent to the external service system again, the external service system may already complete the transaction of the target service, but the result of successful service processing due to network jitter or system instantaneous unavailability may not be successfully sent to the local service system, or the result of incomplete service transaction of the external service system due to network jitter or system instantaneous unavailability may be caused.
Therefore, in order to further reduce the number of times that the user needs to resend the service processing request because the local service system does not receive the service processing result information, and improve the user experience, another data processing method is proposed, and please refer to fig. 2, which is a flowchart of the data processing method provided by another embodiment of the present application. As shown in fig. 2, the data processing method includes: S201-S207.
S201: in response to a user's business processing request, target request data for a target business is generated.
S202: the target request data is sent to the external service system for the external service system to process the target traffic based on the target request data.
S203: and under the condition that service processing result information sent by an external service system is not received, acquiring the associated information of the target service.
In an embodiment of the application, the association information includes whether the target request data supports an idempotent retransmission mechanism.
S204: and re-transmitting the target request data to the external service system under the condition that the target service supports the idempotent retransmission mechanism according to the association information.
Steps S201 to S204 in this embodiment are the same as steps S101 to S104 in the embodiment of the present application, and for brevity, detailed descriptions thereof will not be provided here.
In some embodiments of the present application, resending target request data to an external service system includes:
determining the sent times of target request data;
and re-transmitting the target request data to the external service system under the condition that the transmitted times are smaller than a preset threshold value.
As an example, a preset threshold value may be preset, and when the number of times the target request data has been transmitted exceeds the preset threshold value, the re-transmission of the target request data to the external service system may be stopped to avoid endless transmission of the target request data to the external service system due to a problem that the system failure is not solved or the like.
In some embodiments of the present application, the data processing method further includes:
and outputting alarm information under the condition that the transmitted times are larger than a preset threshold value.
As an example, when the number of times of transmitted data is greater than a preset threshold, it is indicated that there may be an abnormality in the network or the system, alarm information is output, and the problem of abnormality is solved in time, so that the efficiency of processing the target service is further improved.
S205: and in the case that the target request data does not support an idempotent retransmission mechanism or the target request data is sent to the external service system again, sending a service processing result query request to the external service system for the external service system to send the service processing result to the local service system based on the service processing result query request.
As an example, in a case where the service processing result information transmitted by the external service system is not received and the target request data does not support the idempotent retransmission mechanism, or in a case where the target request data is newly transmitted to the external service system, the service processing result inquiry request may be transmitted to the external service system, and after the external service system receives the service processing result inquiry request, the service processing result may be transmitted to the local service system based on the service processing result inquiry request.
S206: and judging whether the received query result sent by the external service system is information of the queried service processing result.
S207: and in response to receiving the information which is sent by the external service system and is not queried for the service processing result, re-sending target request data to the external service system, and returning to execute the query request for sending the service processing result to the external service system.
S208: and stopping sending target request data to the external service system in response to receiving the information of the service processing result queried by the external service system.
As an example, in response to receiving the information of the service processing result which is not queried and sent by the external service system, it is explained that the external service system does not complete the processing of the target service, so, although the target request data does not support the idempotent retransmission mechanism, the target request data can still be sent again to the external service system because the target service is not processed successfully, and the execution is returned to send the service processing result query request to the external service system until the information of the service processing result query sent by the external service system is received. The information of the service processing result queried by the external service system may include information of successful service processing, or may include information of failed service processing.
In some embodiments of the present application, after receiving information of the service processing result queried by the external service system, the information of the service processing result may be stored, and the stored service processing state information may be updated according to the information of the service processing result.
The data processing method provided by the embodiment of the application is used for sending a service processing result query request to an external service system when the target request data does not support an idempotent retransmission mechanism or the target request data is sent to the external service system again, so that the external service system sends the service processing result to a local service system based on the service processing result query request; and in response to receiving the information of the service processing result which is not queried and sent by the external service system, re-sending target request data to the external service system, and returning to execute the process of sending the service processing result query request to the external service system until the service processing result sent by the external service system is successful in processing the service, thereby further reducing the times that the user needs to re-send the service processing request because the local service system does not receive the service processing result information and improving the user experience.
It should be noted that, because of the large variety of services, some kinds of services need to be processed as soon as possible, and some service delay processes will not affect the user, so that the target request data can be sent to the external service system again according to the type of the service and the failure frequency, so as to meet the actual requirement.
Therefore, in order to further increase the rationality of the target request data transmission frequency, another data processing method is proposed, and please refer to fig. 3, which is a flowchart of a data processing method according to another embodiment of the present application. As shown in fig. 3, the data processing method includes: S301-S306.
S301: in response to a user's business processing request, target request data for a target business is generated.
Step S301 in this embodiment is the same as step S101 in this embodiment, and for brevity, detailed description will not be given here.
S302: and determining the type of the target service based on the association information to obtain the target service type.
In the embodiment of the application, the associated information comprises at least one of the priority of the target service and the reason of service processing failure.
In some embodiments of the present application, in the case that the association information includes the priority of the target service, S302 specifically includes:
Comparing the magnitude relation between the priority of the target request data and the preset priority;
under the condition that the priority of the target request data is greater than the preset priority, determining the type of the target service as a first type, wherein a target queue corresponding to the first type is a first queue;
under the condition that the priority of the target request data is smaller than or equal to the preset priority, determining the type of the target service as a second type, wherein a target queue corresponding to the second type is a second queue;
the preset frequency corresponding to the second queue is lower than the preset frequency corresponding to the first queue.
In the embodiment of the present application, the priority of the target request data may be preset according to the actual requirement according to the corresponding target service of the target request data.
It can be understood that the request data with higher priority can be sent to the external service system according to higher frequency, and the request data with lower priority can be sent to the external service system according to lower frequency, so that the retransmission of the request information with higher priority is more frequent while all the request data to be retransmitted can be retransmitted to the external service system according to a certain frequency, and the service corresponding to the request information with higher priority can be processed as soon as possible.
As an example, if the associated information includes the priority of the target service, if the priority of the target request data is greater than the preset priority, determining that the type to which the target service belongs is a first type, and the target queue corresponding to the first type is a first queue; if the priority of the target request data is smaller than or equal to the preset priority, determining that the type of the target service is a second type, and determining that a target queue corresponding to the second type is a second queue; the preset frequency corresponding to the second queue is lower than the preset frequency corresponding to the first queue.
In other embodiments of the present application, in the case that the service processing of the association information including the target request data fails, S302 specifically includes:
under the condition that the service processing failure of the target request data is caused by network jitter, determining the type of the target service as a first type, and determining a target queue corresponding to the first type as a first queue;
under the condition that the service processing failure reason of the target request data is that an external service system is unavailable, determining the type of the target service as a second type, wherein a target queue corresponding to the second type is a second queue;
the preset frequency corresponding to the second queue is lower than the preset frequency corresponding to the first queue.
It should be noted that, if the service processing fails due to network jitter, since network jitter is usually instantaneous and has a short duration, the transaction of the target service can be completed quickly by retransmitting the target request data, whereas if the service processing fails due to unavailability of the external service system, the failure may be due to failure of the external service system and may last for a long time.
Therefore, when the service processing failure cause of the target request data is network jitter, the type of the target service is determined to be a first type, the target queue corresponding to the first type is determined to be a first queue, when the service processing failure cause of the target request data is unavailable to the external service system, the type of the target service is determined to be a second type, the target queue corresponding to the second type is determined to be a second queue, and the preset frequency corresponding to the second queue is lower than the preset frequency corresponding to the first queue, so that the request information corresponding to the service which is caused to be processed failure by the network jitter cause is more frequently retransmitted when all the request data to be retransmitted can be retransmitted to the external service system according to a certain frequency.
In still other embodiments of the present application, in the case where the association information includes the priority of the target request data and the service processing fails, S302 specifically includes:
comparing the priority of the target request data with the preset priority;
under the condition that the priority of the target request data is greater than the preset priority, determining the type of the target service as a first type, wherein a target queue corresponding to the first type is a first queue;
acquiring a service processing failure reason of the target request data from the associated information under the condition that the priority of the target request data is smaller than or equal to a preset priority;
under the condition that the service processing failure of the target request data is caused by network jitter, determining the type of the target service as a first type;
under the condition that the service processing failure reason of the target request data is that an external service system is unavailable, determining the type of the target service as a second type, wherein a target queue corresponding to the second type is a second queue;
the preset frequency corresponding to the second queue is lower than the preset frequency corresponding to the first queue.
As an example, the priority of the target request data is compared with the preset priority, and the type of the target service with the priority higher than the preset priority is determined to be the first type, and the target queue corresponding to the first type is the first queue. And under the condition that the priority of the target request data is smaller than or equal to the preset priority, acquiring the service processing failure reason of the target request data from the associated information, if the service processing failure reason of the target request data is network jitter, determining the type of the target service to be a first type, if the service processing failure reason of the target request data is unavailable for an external service system, determining the type of the target service to be a second type, wherein a target queue corresponding to the second type is a second queue, and the preset frequency corresponding to the second queue is lower than the preset frequency corresponding to the first queue. Therefore, the request data with higher priority is divided into a first queue with higher sending frequency, the request data with the reason of service processing failure being network jitter is also divided into the first queue on the basis of the request data, and the request data with the reason of service processing failure being network jitter is also divided into a second queue with lower sending frequency. Therefore, the request data with higher priority is preferentially divided into the queues with higher sending frequency, and the request data with lower priority is further divided into the corresponding queues according to the service processing failure reasons, so that the rationality of the sending frequency of the target request data is increased.
S303: and storing the target request data into a target queue corresponding to the target service type.
S304: and transmitting the data stored in the target queue according to the data transmission frequency corresponding to the target request data queue so as to transmit the target request data to an external service system.
As one example, target request data is stored in a target queue corresponding to a target service type, and the data stored in the target queue is transmitted according to a data transmission frequency corresponding to the target request data queue to transmit the target request data to an external service system.
S305: and under the condition that service processing result information sent by an external service system is not received, acquiring the associated information of the target service.
In an embodiment of the application, the association information includes whether the target request data supports an idempotent retransmission mechanism.
S306: and re-transmitting the target request data to the external service system under the condition that the target service supports the idempotent retransmission mechanism according to the association information.
Steps S305 to S306 in this embodiment are the same as steps S103 to S104 in the embodiment of the present application, and for brevity, detailed description will not be given here, and for details, please refer to the description in the embodiment of the present application.
The data processing method provided by the embodiment of the application determines the type of the target service based on the associated information to obtain the target service type; storing the target request data into a target queue corresponding to the target service type; and according to the data transmission frequency corresponding to the target request data queue, transmitting the data stored in the target queue to transmit the target request data to an external service system, thereby effectively increasing the rationality of the target request data transmission frequency.
Based on the data processing method provided by the foregoing embodiment, a specific implementation of the data processing apparatus provided by the embodiment of the present application will be described with reference to fig. 4.
Referring to fig. 4, a schematic structural diagram of a data processing apparatus according to an embodiment of the present application is provided, where the data processing apparatus 400 includes:
a generating module 401, configured to generate target request data for a target service in response to a service processing request of a user;
a sending module 402, configured to send target request data to an external service system, for the external service system to process a target service based on the target request data;
an obtaining module 403, configured to obtain, when no service processing result information sent by the external service system is received, association information of the target service, where the association information includes whether the target request data supports an idempotent retransmission mechanism;
The first retransmission module 404 is configured to resend the target request data to the external service system if it is determined that the target service supports the idempotent retransmission mechanism according to the association information.
According to the training device of the bearing fault diagnosis model, provided by the embodiment of the application, the target request data is resent according to whether the target service corresponding to the target request data has idempotent or not under the condition that the service processing result information sent by the external service system is not received, so that the local service system can resend the target request data to the external service system under the condition that the local service system is influenced by factors such as the network environment of the local service system and the external service system, the system stability and the like, and the external service system can resend the target service corresponding to the target request data, thereby effectively reducing the times that a user needs to resend the service processing request because the local service system does not receive the service processing result information, and improving the user experience.
As an implementation manner of the present application, in order to find data conforming to the distribution characteristic of the second operation data set in the first operation data set, the apparatus may further include:
The query module is used for sending a service processing result query request to the external service system when the target request data does not support an idempotent retransmission mechanism or the target request data is sent to the external service system again, so that the external service system can send the service processing result to the local service system based on the service processing result query request;
and the second retransmission module is used for retransmitting target request data of target request data to the external service system in response to receiving the information of the service processing result which is not queried and transmitted by the external service system, and returning to execute the query request for transmitting the service processing result to the external service system until the service processing result transmitted by the external service system is received as successful service processing.
As an implementation manner of the present application, in order to find data in the first operation data set, which conforms to the distribution characteristics of the second operation data set, the second retransmission module may include:
a first determining submodule, configured to determine a number of times that the target request data has been sent;
and the retransmission sub-module is used for retransmitting the target request data to the external service system under the condition that the transmitted times are smaller than a preset threshold value.
As an implementation manner of the present application, the foregoing apparatus may further include:
and the alarm module is used for outputting alarm information under the condition that the transmitted times are larger than a preset threshold value.
As an implementation manner of the present application, in order to find data in the first operation data set that conforms to the distribution characteristic of the second operation data set, the sending module 402 may further include:
the second determining submodule is used for determining the type of the target service based on the association information to obtain the type of the target service;
the storage sub-module is used for storing the target request data into a target queue corresponding to the target service type;
and the transmitting sub-module is used for transmitting the data stored in the target queue according to the data transmission frequency corresponding to the target request data queue so as to transmit the target request data to an external service system.
As an implementation manner of the present application, the second determining submodule may be used to: comparing the magnitude relation between the priority of the target request data and the preset priority; under the condition that the priority of the target request data is greater than the preset priority, determining the type of the target service as a first type, wherein a target queue corresponding to the first type is a first queue; under the condition that the priority of the target request data is smaller than or equal to the preset priority, determining the type of the target service as a second type, wherein a target queue corresponding to the second type is a second queue; the preset frequency corresponding to the second queue is lower than the preset frequency corresponding to the first queue.
As an implementation manner of the present application, the second determining submodule may be used to: under the condition that the service processing failure of the target request data is caused by network jitter, determining the type of the target service as a first type, and determining a target queue corresponding to the first type as a first queue; under the condition that the service processing failure reason of the target request data is that an external service system is unavailable, determining the type of the target service as a second type, wherein a target queue corresponding to the second type is a second queue; the preset frequency corresponding to the second queue is lower than the preset frequency corresponding to the first queue.
As an implementation manner of the present application, the second determining submodule may be used to: comparing the priority of the target request data with the preset priority; under the condition that the priority of the target request data is greater than the preset priority, determining the type of the target service as a first type, wherein a target queue corresponding to the first type is a first queue; acquiring a service processing failure reason of the target request data from the associated information under the condition that the priority of the target request data is smaller than or equal to a preset priority; under the condition that the service processing failure of the target request data is caused by network jitter, determining the type of the target service as a first type; under the condition that the service processing failure reason of the target request data is that an external service system is unavailable, determining the type of the target service as a second type, wherein a target queue corresponding to the second type is a second queue; the preset frequency corresponding to the second queue is lower than the preset frequency corresponding to the first queue.
Fig. 5 shows a schematic hardware structure of a data processing method according to an embodiment of the present application.
The electronic device 500 may include a processor 501 and a memory 502 storing computer program instructions.
In particular, the processor 501 may include a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured as one or more integrated circuits that implement embodiments of the present application.
Memory 502 may include mass storage for data or instructions. By way of example, and not limitation, memory 502 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. Memory 502 may include removable or non-removable (or fixed) media, where appropriate. Memory 502 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 502 is a non-volatile solid state memory. Memory 502 may include Read Only Memory (ROM), random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible memory storage devices. Thus, in general, memory 502 includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software comprising computer-executable instructions and which, when executed (e.g., by one or more processors), perform the operations described by any of the data processing methods of the above-described embodiments.
The processor 501 implements any one of the data processing methods of the above embodiments by reading and executing computer program instructions stored in the memory 502.
In one example, electronic device 500 may also include communication interface 503 and bus 510. As shown in fig. 5, the processor 501, the memory 502, and the communication interface 503 are connected to each other by a bus 510 and perform communication with each other.
The communication interface 503 is mainly used to implement communication between each module, apparatus, unit and/or device in the embodiments of the present application.
Bus 510 includes hardware, software, or both that couple the components of the online data flow billing device to each other. By way of example, and not limitation, the buses may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a micro channel architecture (MCa) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus, or a combination of two or more of the above. Bus 510 may include one or more buses, where appropriate. Although embodiments of the application have been described and illustrated with respect to a particular bus, the application contemplates any suitable bus or interconnect.
In addition, in combination with the data processing method in the above embodiment, the embodiment of the present application may be implemented by providing a computer storage medium. The computer storage medium has stored thereon computer program instructions; which when executed by a processor, implement any of the data processing methods of the above embodiments.
It should be understood that the application is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after appreciating the spirit of the present application.
The functional blocks shown in the above-described structural block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this disclosure describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, or may be performed in a different order from the order in the embodiments, or several steps may be performed simultaneously.
Aspects of the present application are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of 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, 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, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to being, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware which performs the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In the foregoing, only the specific embodiments of the present application are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present application is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present application, and they should be included in the scope of the present application.

Claims (12)

1. A method of data processing, comprising:
responding to a service processing request of a user, and generating target request data aiming at target service;
transmitting the target request data to an external service system for processing a target service by the external service system based on the target request data;
acquiring the association information of the target service under the condition that service processing result information sent by the external service system is not received, wherein the association information comprises whether the target request data supports an idempotent retransmission mechanism or not;
And re-transmitting the target request data to an external service system under the condition that the target service supports an idempotent retransmission mechanism according to the association information.
2. The data processing method of claim 1, wherein the method further comprises:
in the case that the target request data does not support an idempotent retransmission mechanism or the target request data is sent to an external service system again, sending a service processing result query request to the external service system, wherein the service processing result query request is used for the external service system to send a service processing result to a local service system based on the service processing result query request;
and in response to receiving the information of the service processing result which is not queried and sent by the external service system, re-sending the target request data of the target request data to the external service system, and returning to execute the query request of the service processing result which is sent to the external service system until receiving the information of the service processing result which is queried and sent by the external service system.
3. The data processing method according to claim 2, wherein the resending the target request data to the external service system includes:
Determining the sent times of the target request data;
and re-transmitting the target request data to an external service system under the condition that the transmitted times are smaller than a preset threshold value.
4. A data processing method according to claim 3, characterized in that the method further comprises:
and outputting alarm information under the condition that the sent times are larger than the preset threshold value.
5. The data processing method according to claim 1, wherein the association information includes at least one of a priority of a target service and a cause of failure in service processing, and the sending the target request data to the external service system includes:
determining the type of the target service based on the association information to obtain a target service type;
storing the target request data into a target queue corresponding to the target service type;
and transmitting the data stored in the target queue according to the data transmission frequency corresponding to the target request data queue so as to transmit the target request data to the external service system.
6. The method according to claim 5, wherein, in the case that the association information includes a priority of a target service, determining a type to which the target service belongs based on the association information by target request data, and obtaining a target service type, comprises:
Comparing the priority of the target request data with the magnitude relation of the preset priority;
determining that the type of the target service belongs to a first type under the condition that the priority of the target request data is larger than a preset priority, wherein a target queue corresponding to the first type is a first queue;
determining that the type of the target service belongs to a second type under the condition that the priority of the target request data is smaller than or equal to a preset priority, wherein a target queue corresponding to the second type is a second queue;
the preset frequency corresponding to the second queue is lower than the preset frequency corresponding to the first queue.
7. The data processing method according to claim 5, wherein in the case where the association information includes a failure of service processing of the target request data, the determining the type to which the target service belongs based on the association information, to obtain the target service type, includes:
under the condition that the service processing failure of the target request data is caused by network jitter, determining the type of the target service as a first type, wherein a target queue corresponding to the first type is a first queue;
determining that the type of the target service is a second type when the service processing failure reason of the target request data is that an external service system is unavailable, wherein a target queue corresponding to the second type is a second queue;
The preset frequency corresponding to the second queue is lower than the preset frequency corresponding to the first queue.
8. The data processing method according to claim 5, wherein, in the case where the association information includes a priority of target request data and a service processing failure, the target request data target requests the data processing the type to which the target service belongs determined based on the association information, and the obtaining the target service type includes:
comparing the priority of the target request data with the preset priority;
determining that the type of the target service belongs to a first type under the condition that the priority of the target request data is larger than a preset priority, wherein a target queue corresponding to the first type is a first queue;
acquiring a service processing failure reason of the target request data from the associated information under the condition that the priority of the target request data is smaller than or equal to a preset priority;
determining that the type of the target service belongs to the first type under the condition that the service processing failure of the target request data is caused by network jitter;
determining that the type of the target service is a second type when the service processing failure reason of the target request data is that an external service system is unavailable, wherein a target queue corresponding to the second type is a second queue;
The preset frequency corresponding to the second queue is lower than the preset frequency corresponding to the first queue.
9. A data processing apparatus, comprising:
the generating module is used for responding to the service processing request of the user and generating target request data aiming at target service;
the sending module is used for sending the target request data to an external service system so as to be used for processing target business by the external service system based on the target request data;
the acquisition module is used for acquiring the association information of the target service under the condition that service processing result information sent by the external service system is not received, wherein the association information comprises whether the target request data supports an idempotent retransmission mechanism or not;
and the retransmission module is used for retransmitting the target request data to an external service system under the condition that the target service supports an idempotent retransmission mechanism according to the association information.
10. An electronic device, the device comprising: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements a data processing method as claimed in any one of claims 1-8.
11. A computer-readable storage medium, on which computer program instructions are stored which, when executed by a processor, implement a data processing method according to any of claims 1-8.
12. A computer program product, characterized in that instructions in the computer program product, when executed by a processor of an electronic device, cause the electronic device to perform the data processing method according to any of claims 1-8.
CN202310975812.7A 2023-08-03 2023-08-03 Data processing method, device, equipment and computer storage medium Pending CN116962524A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310975812.7A CN116962524A (en) 2023-08-03 2023-08-03 Data processing method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310975812.7A CN116962524A (en) 2023-08-03 2023-08-03 Data processing method, device, equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN116962524A true CN116962524A (en) 2023-10-27

Family

ID=88447451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310975812.7A Pending CN116962524A (en) 2023-08-03 2023-08-03 Data processing method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN116962524A (en)

Similar Documents

Publication Publication Date Title
CN108965164B (en) Service request retransmission method and device based on message queue and readable storage medium
CN107087033B (en) Message pushing method and device, storage medium and computer equipment
EP3379754A1 (en) Method, apparatus and device for retransmitting code blocks
CN110855792B (en) Message pushing method, device, equipment and medium
CN114039703B (en) Data transmission method, device, equipment and medium
CN103684707A (en) Server-side and user-side message transmission processing method, message transmission method and message transmission system
US20180278375A1 (en) Allocation method and apparatus for code block groups in a transport block
CN116962524A (en) Data processing method, device, equipment and computer storage medium
CN116069751A (en) Information processing method, apparatus, device and computer readable storage medium
CN103685249B (en) A kind of register the method for application, terminal and server
CN112714108B (en) Method, device and equipment for verifying terminal communication number and computer storage medium
CN115208877A (en) File transmission method, device, equipment, medium and product
CN110971535B (en) Communication congestion control method, device, equipment and storage medium
CN111371586B (en) Log data transmission method, device and equipment
CN115379400B (en) Method and device for group short message receipt
CN115421823A (en) Service request processing method, device, equipment and computer storage medium
CN114710403B (en) Data scheduling method, device, equipment, medium and program product
CN114640385B (en) Data transmission method based on Beidou communication system and electronic equipment
CN115118727B (en) Data transmission method, device, equipment and storage medium of distributed computing architecture
CN112637362B (en) Request result determining method, device and system, electronic equipment and storage medium
CN117172769A (en) Resource transfer method, device, equipment and storage medium
CN115243204A (en) Message sending method, device, equipment and computer storage medium
CN114650511B (en) Short message service processing method, device and system
WO2024026721A1 (en) Devices, methods, apparatuses, and computer readable media for feedback transmission
CN116775538A (en) File transmission method, device, equipment, system, medium and product

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