CA3158476C - Method for processing response timeout, and systems for server and client to process response timeout - Google Patents

Method for processing response timeout, and systems for server and client to process response timeout Download PDF

Info

Publication number
CA3158476C
CA3158476C CA3158476A CA3158476A CA3158476C CA 3158476 C CA3158476 C CA 3158476C CA 3158476 A CA3158476 A CA 3158476A CA 3158476 A CA3158476 A CA 3158476A CA 3158476 C CA3158476 C CA 3158476C
Authority
CA
Canada
Prior art keywords
service request
progress
indicating character
server
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CA3158476A
Other languages
French (fr)
Other versions
CA3158476A1 (en
Inventor
Ming Zhang
Guohua YE
Xiaobo SI
Yi Zhou
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.)
10353744 Canada Ltd
Original Assignee
10353744 Canada 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 10353744 Canada Ltd filed Critical 10353744 Canada Ltd
Publication of CA3158476A1 publication Critical patent/CA3158476A1/en
Application granted granted Critical
Publication of CA3158476C publication Critical patent/CA3158476C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • 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/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)
  • Retry When Errors Occur (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Disclosed are a response timeout processing method, a server, and a client response timeout processing system; capable of promptly, efficiently, and accurately initiating a rollback mechanism to handle an error so as to improve the user experience. The method comprises: a server receiving a service request sent by a client, and simultaneously configuring a progress identification character while processing the service request; the server feeding back a request receipt to the client, and when the request receipt is a response timeout, querying the progress identification character to determine whether the current service request has been completed; if so, performing a rollback operation on the service request, and if not, changing the progress identification character; and after execution of the processing of the service request is completed, confirming whether the progress identification character has changed, if so, performing a rollback operation on the service request, and deleting the progress identification character, and if not, directly deleting the progress identification character.

Description

METHOD FOR PROCESSING RESPONSE TIMEOUT, AND SYSTEMS FOR
SERVER AND CLIENT TO PROCESS RESPONSE TIMEOUT
BACKGROUND OF THE INVENTION
Technical Field [0001] The present invention relates to the technical field of computer applications, and more particularly to a method for processing response timeout, and a system for a server and a client to process response timeout.
Description of Related Art
[0002] In a client-server system, a server provides clients with services they need. During normal interaction, as shown in FIG. 2, a client sends a request A to the server.
After receiving the request A, the server immediately responds and sends the processing result back to the client. However, in practical application scenarios, due to network delay or network interruption, the server may receive the request A at a later time or even not receive it eventually. In this case, the corresponding server will respond at a later time or even not respond at all. If the client has not received the processing result from the server in a predetermined time frame, the client will automatically trigger a fuse mechanism and inform the user of the timeout anomaly. The client also performs a rollback operation on the request A timely, so as to prompt the user to initiate a retry for the request A through the client, thereby finishing the process.
[0003] In the prior art, a server typically processes a timeout anomaly happens by means of manual removal or an automatic rollback mechanism. However, manual removal of anomalies is relatively time-consuming and inaccurate, making it unfavorable to good user experience and thus limited in deployment. As to the automatic rollback mechanism, while it features high efficiency and timeliness, the server is unable to monitor the processing result. In other words, it will be a problem to determine whether the request is Date Recue/Date Received 2022-04-21 under processing or has been processed. Since the rollback operation should not be performed on a request under processing, an improperly conducted rollback operation can lead to system errors.
SUMMARY OF THE INVENTION
[0004] The objective of the present invention is to provide a method for processing response timeout, and a system for a server and a client to process response timeout, which activate a rollback mechanism timely, efficiently, and accurately to deal with anomalies, thereby providing improved user experience.
[0005] To achieve the foregoing objective, in a first aspect, the present invention provides a method for processing response timeout, comprising the following steps:
[0006] 51: having a server receive a service request from a client, and set a progress-indicating character during a process of processing the service request;
[0007] S2: having the server feed a request acknowledgement back to the client, and when a response timeout occurs with respect to the request acknowledgement, determine whether the current service request has been processed by means of retrieving the progress-indicating character;
[0008] S3: if the process of processing the current service request has been done, performing a rollback operation on the service request, or if the process of processing the current service request has not been done, changing the progress-indicating character;
[0009] S4: after the process of processing the service request has been done, checking whether the progress-indicating character has changed, and if yes, performing a rollback operation on the service request, and also deleting the progress-indicating character, or if not, just deleting the progress-indicating character; and
[0010] S5: returning to 51, and having the client resend the service request to the server, until a response timeout no longer occurs with respect to the request acknowledgement of S2.
[0011] Preferably, at 51, the step of setting a progress-indicating character during a process of processing the service request comprises:

Date Recue/Date Received 2022-04-21
[0012] during the process of processing the service request, setting progress-indicating character using a setnx method stored in a redis cache.
[0013] Preferably, at S2, the step of having the server feed a request acknowledgement back to the client, and when a response timeout occurs with respect to the request acknowledgement, determine whether the current service request has been processed by means of retrieving the progress-indicating character comprises:
[0014] having the server, based on an identification number of the current service request, retrieve the progress-indicating character in the process of processing the current service request; and
[0015] if the current process has not ended and the progress-indicating character is retrieved, giving an output indicating that the process of processing the current service request has not been done, or, otherwise, giving an output indicating the process of processing the current service request is done.
[0016] Optionally, the progress-indicating character is a state value.
[0017] Optionally, the service request is a request for a non-idempotent service.
[0018] Exemplarily, the identification number of the service request is a service serial number or a service order number.
[0019] As compared to the prior art, the method for processing response timeout of the present invention provides the following beneficial effects:
[0020] In the method for processing response timeout of the present invention, after receiving a request from the client, the server first sets a progress-indicating character in the process of processing the service request. The progress-indicating character is used to determine whether the process of processing the current service request is done.
Specifically, if the client does not receive acknowledgement about the request within a predetermined timeframe, it is determined that the response of the server to the request is timeout. At this time, the client reports an error to the user and automatically sends a call instruction to the server, so that the server can retrieve the progress-indicating character set in the service request previously according to the call instruction, and then determine whether the process of processing the current service request is done based on the progress-Date Recue/Date Received 2022-04-21 indicating character. If the result is that the process of processing the current service request is done, a rollback operation is directly executed for the processed service request.
If the process of processing the current service request has not been done, instead of performing a rollback operation for the service request, the server only changes the progress-indicating character until the process of processing the service request has been done. In checking whether the progress-indicating character has been changed, if the result is yes, it indicates that the service request has never received a rollback operation.
Thus, the method is proceeded with performing a rollback operation on the service request and deleting the progress-indicating character. When the result is no, it indicates that the service request has received a rollback operation. The method now is proceeded with only deleting the progress-indicating character without performing a rollback operation on the service request. At last, the user resends the service request to the server through the client to perform the foregoing operation until the request acknowledgement is sent to the user before response timeout.
[0021] It is thus clear that the present invention uses a progress-indicating character set in the process of processing a service request as a basis for determining the processing progress of the current service request, so that when the process of processing the current service request is done, the server can automatically perform a rollback operation, and when if the process of processing the current service request has not been done, for avoiding system errors, the rollback operation is held, and only the progress-indicating character is changed at this moment, so that after the processing process is done, a rollback operation can be selectively performed on the service request that has not received a rollback operation according to the checking result of whether the progress-indicating character has been changed. This can effectively avoid the defect of system errors caused by improperly executing a rollback operation before the process of processing the service request has been done, thereby ensuring of good timing of activation of a rollback operation and stability of the system. In addition, as compared to the prior-art approach that deals with response timeout manually, the timeout processing method of the present invention is faster and more efficient.

Date Recue/Date Received 2022-04-21
[0022] In another aspect, the present invention provides a system for a server to process response timeout, which is used in the method for processing response timeout of the foregoing technical scheme. The system comprises:
[0023] a server setting unit, for having the server receive a service request from a client, and set a progress-indicating character during a process of processing the service request;
[0024] a server determining unit, configured to, when the server feeds a request acknowledgement back to the client, and a response timeout occurs with respect to the request acknowledgement, determine whether the current service request has been processed by means of retrieving the progress-indicating character;
[0025] a server executing unit, configured to, according to a determination result, perform a rollback operation on the service request if the process of processing the current service request has been done, or change the progress-indicating character if the process of processing the current service request has not been done;
[0026] a server checking unit, for after the process of processing the service request has been done, checking whether the progress-indicating character has changed, and if yes, performing a rollback operation on the service request, and also deleting the progress-indicating character, or if not, just deleting the progress-indicating character; and
[0027] a server retrying unit, for having the client resend the service request to the server.
[0028] Preferably, the server determining unit comprises:
[0029] a server retrieving module, for having the server, based on an identification number of the current service request, retrieve the progress-indicating character in the process of processing the current service request; and
[0030] a server determining module, for giving an output indicating that the process of processing the current service request has not been done when the current process has not been done and the progress-indicating character is retrieved, or, otherwise, give an output indicating the process of processing the current service request is done.
[0031] The disclosed system for a server to process response timeout is superior to the prior-art devices for having beneficial effects. As these beneficial effects are identical to those of the method for processing response timeout as provided by the foregoing technical Date Recue/Date Received 2022-04-21 schemes, no repeated discussion is made herein.
[0032] In a third aspect, the present invention provides a system for a client to process response timeout, which is used in the method for processing response timeout of the foregoing technical scheme. The system comprises:
[0033] a client setting unit, configured to, when the client sends a service request to a server, set a progress-indicating character during a process of processing the service request;
[0034] a client determining unit, configured to, when the client receives a request acknowledgement from the server, and a response timeout occurs with respect to the request acknowledgement, determine whether the current service request has been processed by means of retrieving the progress-indicating character;
[0035] a client executing unit, for according to determining result, if the process of processing the current service request has been done, performing a rollback operation on the service request, or if the process of processing the current service request has not been done, changing the progress-indicating character;
[0036] a client checking unit, for after the process of processing the service request has been done, checking whether the progress-indicating character has changed, and if yes, performing a rollback operation on the service request, and also deleting the progress-indicating character, or if not, just deleting the progress-indicating character; and
[0037] a client retrying unit, for having the client resend the service request to the server.
[0038] Preferably, the client determining unit comprises:
[0039] a client retrieving module, for having the client retrieve the progress-indicating character in the process of processing the current service request, based on an identification number of the current service request; and
[0040] a client determining module, for giving an output indicating that the process of processing the current service request has not been done when the current process has not been done and the progress-indicating character is retrieved, or, otherwise, giving an output indicating the process of processing the current service request is done.
[0041] The disclosed system for a client to process response timeout is superior to the prior-art devices for having beneficial effects. As these beneficial effects are identical to those of Date Recue/Date Received 2022-04-21 the method for processing response timeout as provided by the foregoing technical schemes, no repeated discussion is made herein.
BRIEF DESCRIPTION OF THE DRAWINGS
[0042] To better illustrate the technical schemes as disclosed in the embodiments of the present invention, accompanying drawings referred in the description of the embodiments below are introduced briefly. It is apparent that the accompanying drawings as recited in the following description merely provide a part of possible embodiments of the present invention, and people of ordinary skill in the art would be able to obtain more drawings according to those provided herein without paying creative efforts, wherein:
[0043] FIG. 1 is a flowchart of a method for processing response timeout according to one embodiment of the present invention;
[0044] FIG. 2 is a schematic drawing that illustrates the principle of response timeout in the method according to the first embodiment of the present invention;
[0045] FIG. 3 is a structure block diagram of a system for a server to process response timeout according to another embodiment of the present invention; and
[0046] FIG. 4 is a structure block diagram of a system for a client to process response timeout according to still another embodiment of the present invention.
[0047] List of Reference Numbers:
1: Server setting unit 2: Server determining unit 3: Server executing unit 4: Server checking unit 5: Server retrying unit 21: Server retrieving module 22: Server determining module 6: Client setting unit 7: Client determining unit 8: Client executing unit 9: Client checking unit 10: Client retrying unit 71: Client retrieving module 72: Client determining module Date Recue/Date Received 2022-04-21 DETAILED DESCRIPTION OF THE INVENTION
[0048] To make the foregoing objectives, features, and advantages of the present invention clearer and more understandable, the following description will be directed to some embodiments as depicted in the accompanying drawings to detail the technical schemes disclosed in these embodiments. It is, however, to be understood that the embodiments referred herein are only a part of all possible embodiments and thus not exhaustive. Based on the embodiments of the present invention, all the other embodiments can be conceived without creative labor by people of ordinary skill in the art, and all these and other embodiments shall be encompassed in the scope of the present invention.
Embodiment 1
[0049] FIG. 1 illustrates a method for processing response timeout of one embodiment of the present invention. As shown, the method for processing response timeout comprises the following steps:
[0050] Si: having a server receive a service request from a client, and set a progress-indicating character during a process of processing the service request; S2: having the server feed a request acknowledgement back to the client, and when a response timeout occurs with respect to the request acknowledgement, retrieve the progress-indicating character to determine whether the process of processing the current service request is done; S3: if the process of processing the current service request has been done, performing a rollback operation on the service request, if the process of processing the current service request has not been done, changing the progress-indicating character; S4: after the process of processing the service request has been done, checking whether the progress-indicating character has changed, if yes, performing a rollback operation on the service request, and deleting the progress-indicating character, or if not, just deleting the progress-indicating character; S5: returning to Si, and having the client resend the service request to the server, until a response timeout no longer occurs with respect to the request acknowledgement of S2.

Date Recue/Date Received 2022-04-21
[0051] In the method for processing response timeout of the present invention, after receiving a request from the client, the server first sets a progress-indicating character in the process of processing the service request. The progress-indicating character is used to determine whether the process of processing the current service request is done.
Specifically, if the client does not receive acknowledgement about the request within a predetermined timeframe, it is determined that the response of the server to the request is timeout. At this time, the client reports an error to the user and automatically sends a call instruction to the server, so that the server can retrieve the progress-indicating character set in the service request previously according to the call instruction, and then determine whether the process of processing the current service request is done based on the progress-indicating character. If the result is that the process of processing the current service request is done, a rollback operation is directly executed for the processed service request.
If the process of processing the current service request has not been done, instead of performing a rollback operation for the service request, the server only changes the progress-indicating character until the process of processing the service request has been done. In checking whether the progress-indicating character has been changed, if the result is yes, it indicates that the service request has never received a rollback operation.
Thus, the method is proceeded with performing a rollback operation on the service request and deleting the progress-indicating character. When the result is no, it indicates that the service request has received a rollback operation. The method now is proceeded with only deleting the progress-indicating character without performing a rollback operation on the service request. At last, the user resends the service request to the server through the client to perform the foregoing operation until the request acknowledgement is sent to the user before response timeout.
[0052] It is thus clear that the present invention uses a progress-indicating character set in the process of processing a service request as a basis for determining the processing progress of the current service request, so that when the process of processing the current service request is done, the server can automatically perform a rollback operation, and when if the process of processing the current service request has not been done, for avoiding Date Recue/Date Received 2022-04-21 system errors, the rollback operation is held, and only the progress-indicating character is changed at this moment, so that after the processing process is done, a rollback operation can be selectively performed on the service request that has not received a rollback operation according to the checking result of whether the progress-indicating character has been changed. This can effectively avoid the defect of system errors caused by improperly executing a rollback operation before the process of processing the service request has been done, thereby ensuring of good timing of activation of a rollback operation and stability of the system. In addition, as compared to the prior-art approach that deals with response timeout manually, the timeout processing method of the present invention is faster and more efficient.
[0053] It is understandable that in the present embodiment, the service request is a request for non-idempotent services. For helping people skilled in the art better understand the method for processing response timeout, the present invention will be further explained with the example of coupon locking.
[0054] When an on-line shopping user puts merchandise items in his shopping chat, he may submit his order with an applicable coupon. After the server receives the service request related to the order, the server immediately processes the service request and sends a request acknowledgement associated with the request to the client. Therein, the service request processing contains calls to the merchandise stock resources and promotion resources that lock the selected merchandise items and the selected coupon, respectively.
However, when a response timeout occurs during transmission of the request acknowledgement, the user has no idea whether the server has locked the selected merchandise items and the selected coupon. If a rollback operation is performed before the locking is done, the server can become unstable. However, it is unpractical to leave too much time to the serve for finishing the locking because this approach that sacrifices waiting time at the user side for processing response timeout can degrade shopping experience of users and is obviously unreasonable. Therefore, how to perform a rollback operation as soon as possible after the locking is done is the crucial problem to be solved in the present embodiment. The present invention uses a progress-indicating character set Date Recue/Date Received 2022-04-21 in the process of processing a locking operation as a basis for determining the processing progress of the current locking operation, so that when the process of processing the current locking operation is done, the server can automatically perform a rollback operation, and when if the process of processing the current locking operation has not been done, for avoiding system errors, the rollback operation is held, and only the progress-indicating character is changed at this moment, so that after the processing process is done, a rollback operation can be selectively performed on the locking operation that has not received a rollback operation according to the checking result of whether the progress-indicating character has been changed. This can effectively avoid the defect of system errors caused by improperly executing a rollback operation before the process of processing the locking operation has been done.
[0055] Exemplarily, in Si of the embodiment described previously, the operation of setting the progress-indicating character in the process of processing the service request is achieved by: during the process of processing the service request, setting progress-indicating character using a setnx method stored in a redis cache. Optionally, the progress-indicating character is a state value.
[0056] Further, in S2 of the embodiment described previously, the operation of having the server feed a request acknowledgement back to the client, and when a response timeout occurs with respect to the request acknowledgement, determine whether the current service request has been processed by means of retrieving the progress-indicating character is achieved by:
[0057] having the server, based on an identification number of the current service request, retrieve the progress-indicating character in the process of processing the current service request; and if the current process has not ended and the progress-indicating character is retrieved, giving an output indicating that the process of processing the current service request has not been done, or, otherwise, giving an output indicating the process of processing the current service request is done. Exemplarily, the identification number of the service request is service serial number or service order number.

Date Recue/Date Received 2022-04-21 Embodiment 2
[0058] Referring to FIG. 1 and FIG. 3, the present embodiment provides a system for a server to process response timeout, comprising:
[0059] a server setting unit 1, when the server receives a service request from a client, for setting a progress-indicating character during a process of processing the service request;
[0060] a server determining unit 2, for having the server feed a request acknowledgement back to the client, and when it is determined that the request acknowledgement becomes response timeout, determine whether the current service request has been processed by means of retrieving the progress-indicating character;
[0061] a server executing unit 3, for according to determining result, if the process of processing the current service request has been done, performing a rollback operation on the service request, or if the process of processing the current service request has not been done, changing the progress-indicating character;
[0062] a server checking unit 4, for after the process of processing the service request has been done, checking whether the progress-indicating character has changed, and if yes, performing a rollback operation on the service request, and also deleting the progress-indicating character, or if not, just deleting the progress-indicating character; and
[0063] a server retrying unit, for having the client resend the service request to the server.
[0064] Preferably, the server determining unit 2 comprises:
[0065] a server retrieving module 21, for having the server, based on an identification number of the current service request, retrieve the progress-indicating character in the process of processing the current service request; and
[0066] a server determining module 22, for giving an output indicating that the process of processing the current service request has not been done when the current process has not been done and the progress-indicating character is retrieved, or, otherwise, give an output indicating the process of processing the current service request is done.
[0067] The disclosed system for a server to process response timeout is superior to the prior-art devices for having beneficial effects. As these beneficial effects are identical to those of the methods for processing response timeout as provided by the Embodiment 1, no Date Recue/Date Received 2022-04-21 repeated discussion is made herein.
Embodiment 3
[0068] Referring to FIG. 1 and FIG. 4, the present embodiment provides a system for a client to process response timeout. The system comprises:
[0069] a client setting unit 6, when the client sends a service request to a server, for setting a progress-indicating character during a process of processing the service request;
[0070] a client determining unit 7, when the client receives a request acknowledgement from the server, and a response timeout occurs with respect to the request acknowledgement, for determining whether the current service request has been processed by means of retrieving the progress-indicating character;
[0071] a client executing unit 8, for according to determining result, if the process of processing the current service request has been done, performing a rollback operation on the service request, or if the process of processing the current service request has not been done, changing the progress-indicating character;
[0072] a client checking unit 9, for after the process of processing the service request has been done, checking whether the progress-indicating character has changed, and if yes, performing a rollback operation on the service request, and also deleting the progress-indicating character, or if not, just deleting the progress-indicating character; and
[0073] a client retrying unit 10, for having the client resend the service request to the server.
[0074] Preferably, the client determining unit 7 comprises:
[0075] a client retrieving module 71, for having the client retrieve the progress-indicating character in the process of processing the current service request, based on the identification number of the current service request; and
[0076] a client determining module 72, for giving an output indicating that the process of processing the current service request has not been done when the current process has not been done and the progress-indicating character is retrieved, or, otherwise, giving an output indicating the process of processing the current service request is done.
[0077] The disclosed system for a client to process response timeout is superior to the prior-art Date Recue/Date Received 2022-04-21 devices for having beneficial effects. As these beneficial effects are identical to those of the methods for processing response timeout as provided by the Embodiment 1, no repeated discussion is made herein.
[0078] As will be appreciated by people of ordinary skill in the art, implementation of all or a part of the steps of the method of the present invention as described previously may be realized by having a program instruct related hardware components. The program may be stored in a computer-readable storage medium, and the program is about performing the individual steps of the methods described in the foregoing embodiments.
The storage medium may be a ROM/RAM, a hard drive, an optical disk, a memory card or the like.
[0079] The present invention has been described with reference to the preferred embodiments and it is understood that the embodiments are not intended to limit the scope of the present invention. Moreover, as the contents disclosed herein should be readily understood and can be implemented by a person skilled in the art, all equivalent changes or modifications which do not depart from the concept of the present invention should be encompassed by the appended claims. Hence, the scope of the present invention shall only be defined by the appended claims.

Date Recue/Date Received 2022-04-21

Claims (168)

Claims:
1. A device comprising:
a server setting unit, configured to set a progress-indicating character during a process of processing a service request, when a server receives the service request from a client;
a server determining unit, configured to determine a current service request is processed by means of retrieving the progress-indicating character, when the server feeds a request acknowledgement back to the client, and a response timeout occurs with respect to the request acknowledgement;
a server executing unit, configured to, according to a determination result, perform a rollback operation on the service request when the process of processing the current service request is done, or change the progress-indicating character when the process of processing the current service request is not done;
a server checking unit, configured to checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, wherein not, deleting the progress-indicating character; and a server retrying unit, configured to have the client resend the service request to the server.
2. The device of claim 1, wherein the server determining unit further comprises:
a server retrieving module, configured to the server, based on an identification number of the current service request, retrieve the progress-indicating character in the process of processing the current service request; and Date Recue/Date Received 2023-05-17 a server determining module, configured to give an output indicating the process of processing the current service request is not done and the progress-indicating character is retrieved, or give the output indicating the process of processing the current service request is done.
3. The device of claim 1, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a setnx device stored in a redis cache.
4. The device of any one of claims 1 to 3, wherein the progress-indicating character is a state value.
5. The device of any one of claims 1 to 4, wherein the service request is a request for a non-idempotent service.
6. The device of claim 2, wherein the identification number of the service request is a service serial number or a service order number.
7. The device of any one of claims 1 to 6, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
8. The device of any one of claims 1 to 7, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.

Date Recue/Date Received 2023-05-17
9. A device comprising:
a client setting unit, configured to set a progress-indicating character during a process of processing a service request, when a client sends the service request to a server;
a client determining unit, configured to determine the current service request is processed by means of retrieving the progress-indicating character, when the client receives a request acknowledgement from the server, and a response timeout occurs with respect to the request acknowledgement;
a client executing __ n't, configured to according to determining result, performing a rollback operation on the service request when the process of processing the current service request is done, or changing the progress-indicating character when the process of processing the current service request is not done;
a client checking unit, configured to after the process of processing the service request is done, checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, or not, deleting the progress-indicating character; and a client retrying unit, configured the client to resend the service request to the server.
10. The device of claim 9, wherein the client determining unit comprises:
a client retrieving module, configured to the client retrieve the progress-indicating character in the process of processing the current service request, based on an identification number of the current service request; and a client determining module, configured to give an output indicating that the process of processing the current service request is not done when the current process is not done and the progress-indicating character is retrieved, or, otherwise, give the output indicating the process of processing the current service request is done.

Date Recue/Date Received 2023-05-17
11. The device of claim 9, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a setnx device stored in a redis cache.
12. The device of any one of claims 9 to 11, wherein the progress-indicating character is a state value.
13. The device of any one of claims 9 to 12, wherein the service request is a request for a non-idempotent service.
14. The device of claim 10, wherein the identification number of the service request is a service serial number or a service order number.
15. The device of any one of claims 9 to 14, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is fimeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
16. The device of any one of claims 9 to 15, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.
17. A system comprising:
a server setting unit, configured to set a progress-indicating character during a process of processing a service request when a server receives the service request from a client;

Date Recue/Date Received 2023-05-17 a server determining unit, configured to determine a current service request is processed by means of retrieving the progress-indicating character when the server feeds a request acknowledgement back to the client, and a response timeout occurs with respect to the request acknowledgement;
a server executing unit, configured to, according to a determination result, perform a rollback operation on the service request when the process of processing the current service request is done, or change the progress-indicating character when the process of processing the current service request is not done;
a server checking unit, configured to checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, wherein not, deleting the progress-indicating character; and a server retrying unit, configured to have the client resend the service request to the server.
18. The system of claim 17, wherein the server determining unit further comprises:
a server retrieving module, configured to the server, based on an identification number of the current service request, retrieve the progress-indicating character in the process of processing the current service request; and a server determining module, configured to give an output indicating the process of processing the current service request is not done and the progress-indicating character is retrieved, or give the output indicating the process of processing the current service request is done.
19. The system of claim 17, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a sonx system stored in a redis cache.

Date Recue/Date Received 2023-05-17
20. The system of any one of claims 17 to 19, wherein the progress-indicating character is a state value.
21. The system of any one of claims 17 to 20, wherein the service request is a request for a non-idempotent service.
22. The system of claim 18, wherein the identification number of the service request is a service serial number or a service order number.
23. The system of any one of claims 17 to 22, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
24. The system of any one of claims 17 to 23, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.
25. A system comprising:
a client setting unit, configured to set a progress-indicating character during a process of processing a service request, when a client sends the service request to a server;
a client determining unit, configured to determine a current service request is processed by means of retrieving the progress-indicating character, when the client receives a request acknowledgement from the server, and a response timeout occurs with respect to the request acknowledgement;
Date Recue/Date Received 2023-05-17 a client executing unit, configured to according to determining result performing a rollback operation on the service request when the process of processing the current service request is done, or changing the progress-indicating character when the process of processing the current service request is not done;
a client checking unit, configured to after the process of processing the service request is done, checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, or not, deleting the progress-indicating character; and a client retrying unit, configured the client to resend the service request to the server.
26. The system of claim 25, wherein the client determining unit comprises:
a client retrieving module, configured to the client retrieve the progress-indicating character in the process of processing the current service request, based on an identification number of the current service request; and a client determining module, configured to give an output indicating that the process of processing the current service request is not done when the current process is not done and the progress-indicating character is retrieved, or, otherwise, give the output indicating the process of processing the current service request is done.
27. The system of claim 25, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a setnx system stored in a redis cache.
28. The system of any one of claims 25 to 27, wherein the progress-indicating character is a state value.
29. The system of any one of claims 25 to 28, wherein the service request is a request for a non-idempotent service.

Date Recue/Date Received 2023-05-17
30. The system of claim 26, wherein the identification number of the service request is a service serial number or a service order number.
31. The system of any one of claims 25 to 30, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
32. The system of any one of claims 25 to 31, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.
33. A method comprising:
receiving a service request from a client on a server, and setting a progress-indicating character during a process of processing the service request;
feeding a request acknowledgement back to the client from the server, and determining current service request is processed by means of retrieving the progress-indicating character when a response timeout occurs with respect to the request acknowledgement;
performing a rollback operation on the service request where the process of processing the current service request is completed;
changing the progress-indicating character where the process of processing the current service request is not completed;
checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, wherein not, deleting the progress-indicating character; and Date Recue/Date Received 2023-05-17 resending the service request from the client to the server, until the response timeout no longer occurs with the request acknowledgement.
34. The method of claim 33, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a setnx method stored in a redis cache.
35. The method of claim 33, wherein the server feeding the request acknowledgement back to the client, and when the response timeout occurs with respect to the request acknowledgement, determine the current service request is processed by means of retrieving the progress-indicating character comprises:
the server, based on an identification number of the current service request, retrieve the progress-indicating character in the process of processing the current service request; and the process of processing the current service request has not ended and the progress-indicating character is retrieved, giving an output indicating that the process of processing the current service request is not done, or giving the output indicating the process of processing the current service request is done.
36. The method of any one of claims 33 to 35, wherein the progress-indicating character is a state value.
37. The method of any one of claims 33 to 35, wherein the service request is a request for a non-idempotent service.
38. The method of claim 35, wherein the identification number of the service request is a service serial number or a service order number.

Date Recue/Date Received 2023-05-17
39. The method of any one of claims 33 to 38, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
40. The method of any one of claims 33 to 38, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.
41. A computer readable physical memory having stored thereon a computer program executed by a computer configured to:
setting a progress-indicating character during a process of processing a service request when a server receives the service request from a client;
determining a current service request is processed by means of retrieving the progress-indicating character when the server feeds a request acknowledgement back to the client, and a response timeout occurs with respect to the request acknowledgement;
according to a determination result, perform a rollback operation on the service request when the process of processing the current service request is done, or change the progress-indicating character when the process of processing the current service request is not done;
checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, wherein not, deleting the progress-indicating character; and have the client resend the service request to the server.

Date Recue/Date Received 2023-05-17
42. The memory of claim 41, wherein the server feeds the request acknowledgement back to the client, and the response timeout occurs with respect to the request acknowledgement, determine the current service request is processed by means of retrieving the progress-indicating character comprises:
the server, based on an identification number of the current service request, retrieving the progress-indicating character in the process of processing the current service request; and giving an output indicating the process of processing the current service request is not done and the progress-indicating character is retrieved, or give the output indicating the process of processing the current service request is done.
43. The memory of claim 41, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a semx memory stored in a redis cache.
44. The memory of any one of claims 41 to 19, wherein the progress-indicating character is a state value.
45. The memory of any one of claims 41 to 20, wherein the service request is a request for a non-idempotent service.
46. The memory of claim 42, wherein the identification number of the service request is a service serial number or a service order number.
47. The memory of any one of claims 41 to 43, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
Date Recue/Date Received 2023-05-17
48. The memory of any one of claims 41 to 44, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.
49. A computer readable physical memory having stored thereon a computer program executed by a computer configured to:
setting a progress-indicating character during a process of processing a service request when a client sends the service request to a server;
determining a current service request is processed by means of retrieving the progress-indicating character when the client receives a request acknowledgement from the server, and a response timeout occurs with respect to the request acknowledgement,;
according to determining result, the process of processing the current service request is done, performing a rollback operation on the service request, or the process of processing the current service request is not done, changing the progress-indicating character;
checking the progress-indicating character has changed after the process of processing the service request is done, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, or not, deleting the progress-indicating character; and the client to resend the service request to the server.
50. The memory of claim 49, wherein when the client receives the request acknowledgement from the server, and the response timeout occurs with respect to the request acknowledgement, determine the current service request is processed by means of retrieving the progress-indicating character comprises:
the client retrieving the progress-indicating character in the process of processing the current service request, based on an identification number of the current service request;
and Date Recue/Date Received 2023-05-17 giving an output indicating that the process of processing the current service request is not done when the current process is not done and the progress-indicating character is retrieved, or, otherwise, give the output indicating the process of processing the current service request is done.
51. The memory of claim 49, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a setnx memory stored in a redis cache.
52. The memory of any one of claims 49 to 51, wherein the progress-indicating character is a state value.
53. The memory of any one of claims 49 to 52, wherein the service request is a request for a non-idempotent service.
54. The memory of claim 50, wherein the identification number of the service request is a service serial number or a service order number.
55. The memory of any one of claims 49 to 54, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
56. The memory of any one of claims 49 to 55, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.

Date Recue/Date Received 2023-05-17
57. A device comprising:
a server deterinining unit, configured to determine a current service request is processed by means of retrieving a progress-indicating character when a server feeds a request acknowledgement back to a client, and a response timeout occurs with respect to the request acknowledgement; and a server executing unit, configured to, according to a determination result, perform a rollback operation on a service request when a process of processing the current service request is done, or change the progress-indicating character when the process of processing the current service request is not done.
58. The device of claim 57, further comprises:
the server setting unit, configured to when the server receives the service request from the client, set the progress-indicating character during the process of processing the service request;
a server checking unit, configured to checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, wherein not, deleting the progress-indicating character; and a server retrying unit, configured to have the client resend the service request to the server.
59. The device of claim 57, wherein the server determining unit further comprises:
a server retrieving module, configured to the server, based on an identification number of the current service request, retrieve the progress-indicating character in the process of processing the current service request; and Date Recue/Date Received 2023-05-17 a server determining module, configured to give an output indicating the process of processing the current service request is not done and the progress-indicating character is retrieved, or give the output indicating the process of processing the current service request is done.
60. The device of claim 58, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a setnx device stored in a redis cache.
61. The device of any one of claims 57 to 60, wherein the progress-indicating character is a state value.
62. The device of any one of claims 57 to 61, wherein the service request is a request for a non-idempotent service.
63. The device of claim 59, wherein the identification number of the service request is a service serial number or a service order number.
64. The device of any one of claims 57 to 63, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
65. The device of any one of claims 57 to 64, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.

Date Recue/Date Received 2023-05-17
66. A device comprising:
a client determining unit, configured to determine a current service request is processed by means of retrieving a progress-indicating character, when a client receives a request acknowledgement from a server, and a response timeout occurs with respect to a request acknowledgement; and a client executing unit, configured to according to determining result, perform a rollback operation on a service request when a process of processing the current service request is done, or the process of processing the current service request is not done, changing the progress-indicating character.
67. The device of claim 66, further comprises:
a client setting unit, configured to, when the client sends the service request to the server, set the progress-indicating character during the process of processing the service request;
a client checking unit, configured to after the process of processing the service request is done, checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, or not, deleting the progress-indicating character; and a client retrying unit, configured the client to resend the service request to the server.
68. The device of claim 66, wherein the client determining unit comprises:
a client retrieving module, configured to the client retrieve the progress-indicating chaxacter in the process of processing the current service request, based on an identification number of the current service request; and a client determining module, configured to give an output indicating that the process of processing the current service request is not done when the current process is not done and the progress-indicating character is retrieved, or, otherwise, give the output indicating the process of processing the current service request is done.
Date Recue/Date Received 2023-05-17
69. The device of claim 67, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a setnx device stored in a redis cache.
70. The device of any one of claims 66 to 69, wherein the progress-indicating character is a state value.
71. The device of any one of claims 66 to 70, wherein the service request is a request for a non-idempotent service.
72. The device of claim 68, wherein the identification number of the service request is a service serial number or a service order number.
73. The device of any one of claims 66 to 72, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
74. The device of any one of claims 66 to 73, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.
75. A system comprising:
a server determining unit, configured to determine a current service request is processed by means of retrieving a progress-indicating character when a server feeds a request acknowledgement back to a client, and a response timeout occurs with respect to the request acknowledgement; and Date Recue/Date Received 2023-05-17 a server executing unit, configured to, according to a determination result, perform a rollback operation on a service request when a process of processing the current service request is done, or change the progress-indicating character when the process of processing the current service request is not done.
76. The system of claim 75, further comprises:
a server setting unit, configured to when the server receives the service request from the client, set the progress-indicating character during the process of processing the service request;
a server checking unit, configured to checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, wherein not, deleting the progress-indicating character; and a server retrying unit, configured to have the client resend the service request to the server.
77. The system of claim 75, wherein the server determining unit further comprises:
a server retrieving module, configured to the server, based on an identification number of the current service request, retrieve the progress-indicating character in the process of processing the current service request; and a server determining module, configured to give an output indicating the process of processing the current service request is not done and the progress-indicating character is retrieved, or give the output indicating the process of processing the current service request is done.
78. The system of claim 76, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a setnx system stored in a redis cache.

Date Recue/Date Received 2023-05-17
79. The system of any one of claims 75 to 78, wherein the progress-indicating character is a state value.
80. The system of any one of claims 75 to 79, wherein the service request is a request for a non-idempotent service.
81. The system of claim 77, wherein the identification number of the service request is a service serial number or a service order number.
82. The system of any one of claims 75 to 81, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
83. The system of any one of claims 75 to 82, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.
84. A system comprising:
a client determining unit, configured to determine a current service request is processed by means of retrieving a progress-indicating character, when a client receives a request acknowledgement from a server, and a response timeout occurs with respect to the request acknowledgement;
a client executing unit, configured to according to determining result, perform a rollback operation on a service request when a process of processing the current service request is done, or the process of processing the current service request is not done, changing the progress-indicating character;

Date Recue/Date Received 2023-05-17
85. The system of claim 84, wherein a client setting unit, configured to, when the client sends the service request to the server, set the progress-indicating character during the process of processing the service request;
a client checking unit, configured to after the process of processing the service request is done, checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, or not, deleting the progress-indicating character; and a client retrying unit, configured the client to resend the service request to the server.
86. The system of claim 84, wherein the client determining unit comprises:
a client retrieving module, configured to the client retrieve the progress-indicating character in the process of processing the current service request, based on an identification number of the current service request; and a client determining module, configured to give an output indicating that the process of processing the current service request is not done when the current process is not done and the progress-indicating character is retrieved, or, otherwise, give the output indicating the process of processing the current service request is done.
87. The system of claim 85, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a setnx system stored in a redis cache.
88. The system of any one of claims 84 to 87, wherein the progress-indicating character is a state value.
89. The system of any one of claims 84 to 88, wherein the service request is a request for a non-idempotent service.

Date Recue/Date Received 2023-05-17
90. The system of claim 86, wherein the identification number of the service request is a service serial number or a service order number.
91. The system of any one of claims 84 to 90, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
92. The system of any one of claims 84 to 91, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.
93. A method comprising:
determine current service request is processed by means of retrieving a progress-indicating character when a server feeding a request acknowledgement back to a client, and when a response timeout occurs with respect to the request acknowledgement;
performing a rollback operation on a service request when a process of processing the current service request is completed; and changing the progress-indicating character when the process of processing the current service request is not completed.
94. The method of claim 93, further comprises:
a server receiving the service request from the client, and setting the progress-indicating character during the process of processing the service request;
Date Recue/Date Received 2023-05-17 checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, wherein not, deleting the progress-indicating character; and the client resend the service request to the server, until the response timeout no longer occurs with the request acknowledgement.
95. The method of claim 94, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a setnx method stored in a redis cache.
96. The method of claim 93, wherein the server feeding the request acknowledgement back to the client, and when the response timeout occurs with respect to the request acknowledgement, determine the current service request is processed by means of retrieving the progress-indicating character comprises:
the server, based on an identification number of the current service request, retrieve the progress-indicating character in the process of processing the current service request; and the process of processing the current service request has not ended and the progress-indicating character is retrieved, giving an output indicating that the process of processing the current service request is not done, or giving the output indicating the process of processing the current service request is done.
97. The method of any one of claims 93 to 96, wherein the progress-indicating character is a state value.
98. The method of any one of claims 93 to 97, wherein the service request is a request for a non-idempotent service.
99. The method of claim 96, wherein the identification number of the service request is a service serial number or a service order number.

Date Recue/Date Received 2023-05-17
100. The method of any one of claims 93 to 99, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
101. The method of any one of claims 93 to 100, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.
102. A computer readable physical memory having stored thereon a computer program executed by a computer configured to:
determine a current service request is processed by means of retrieving a progress-indicating character when a server feeds a request acknowledgement back to a client, and a response timeout occurs with respect to the request acknowledgement; and according to a determination result, perform a rollback operation on a service request when a process of processing the current service request is done, or change the progress-indicating character when the process of processing the current service request is not done.
103. The memory of claim 102, further comprises:
when the server receives the service request from the client, set the progress-indicating character during the process of processing the service request;
checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, wherein not, deleting the progress-indicating character; and have the client resend the service request to the server.

Date Recue/Date Received 2023-05-17
104. The memory of claim 102, wherein the server feeds the request acknowledgement back to the client, and the response timeout occurs with respect to the request acknowledgement, determine the current service request is processed by means of retrieving the progress-indicating character comprises:
the server, based on an identification number of the current service request, retrieving the progress-indicating character in the process of processing the current service request; and giving an output indicating the process of processing the current service request is not done and the progress-indicating character is retrieved, or give the output indicating the process of processing the current service request is done.
105. The memory of claim 103, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a setnx memory stored in a redis cache.
106. The memory of any one of claims 102 to 105, wherein the progress-indicating character is a state value.
107. The memory of any one of claims 102 to 106, wherein the service request is a request for a non-idempotent service.
108. The memory of claim 104, wherein the identification number of the service request is a service serial number or a service order number.
109. The memory of any one of claims 102 to 108, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.

Date Recue/Date Received 2023-05-17
110. The memory of any one of claims 102 to 109, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.
111. A computer readable physical memory having stored thereon a computer program executed by a computer configured to:
determine a current service request is processed by means of retrieving a progress-indicating character when a client receives a request acknowledgement from a server, and a response timeout occurs with respect to the request acknowledgement; and according to determining result, perform a rollback operation on a service request when a process of processing the current service request is done, or when the process of processing the current service request is not done, changing the progress-indicating character.
112. The memory of claim 111, further comprises:
when the client sends the service request to the server, set the progress-indicating character during the process of processing the service request after the process of processing the service request is done, checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, or not, deleting the progress-indicating character; and the client to resend the service request to the server.
113. The memory of claim 111, wherein when the client receives the request acknowledgement from the server, and the response timeout occurs with respect to the request acknowledgement, determine a current service request is processed by means of retrieving the progress-indicating character comprises:

Date Recue/Date Received 2023-05-17 the client retrieving the progress-indicating character in the process of processing the current service request, based on an identification number of the current service request;
and giving an output indicating that the process of processing the current service request is not done when the current process is not done and the progress-indicating character is retrieved, or, otherwise, give the output indicating the process of processing the current service request is done.
114. The memory of claim 112, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a sentx memory stored in a redis cache.
115. The memory of any one of claims 111 to 114, wherein the progress-indicating character is a state value.
116. The memory of any one of claims 111 to 115, wherein the service request is a request for a non-idempotent service.
117. The memory of claim 113, wherein the identification number of the service request is a service serial number or a service order number.
118. The memory of any one of claims 111 to 117, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
119. The memory of any one of claims 111 to 118, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.
Date Recue/Date Received 2023-05-17
120.A device comprising:
a server setting unit, configured to set a progress-indicating character during a process of processing a service request when a server receives the service request from a client;
a server detennining unit, configured to determine a current service request is processed by means of retrieving the progress-indicating character when the server feeds a request acknowledgement back to the client, and a response timeout occurs with respect to the request acknowledgement;
the server determining unit further comprises:
a server retrieving module, configured retrieve the progress-indicating character in the process of processing the current service request based on an identification number of the current service request;
a server determining module, configured to give an output indicating the process of processing the current service request is not done and the progress-indicating character is retrieved, or give the output indicating the process of processing the current service request is done;
a server executing unit, configured to, according to a determination result, perform a rollback operation on the service request when the process of processing the current service request is done, or change the progress-indicating character when the process of processing the current service request is not done;
a server checking unit, configured to checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, wherein not, deleting the progress-indicating character; and a server retrying unit, configured to have the client resend the service request to the server.

Date Recue/Date Received 2023-05-17
121. The device of claim 120, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a setnx device stored in a redis cache.
122. The device of any one of claims 120 to 121, wherein the progress-indicating character is a state value.
123. The device of any one of claims 120 to 122, wherein the service request is a request for a non-idempotent service.
124. The device of claim 120, wherein the identification number of the service request is a service serial number or a service order number.
125. The device of any one of claims 120 to 124, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
126. The device of any one of claims 120 to 125, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.
127.A device comprising:
a client setting unit, configured to set a progress-indicating character during a process of processing a service request, when a client sends the service request to a server;

Date Recue/Date Received 2023-05-17 a client determining unit, configured to determine a current service request is processed by means of retrieving the progress-indicating character, when the client receives a request acknowledgement from the server, and a response timeout occurs with respect to the request acknowledgement;
the client determining unit comprises:
a client retrieving module, configured to retrieve the progress-indicating character in the process of processing the current service request, based on an identification number of the current service request;
a client determining module, configured to give an output indicating that the process of processing the current service request is not done when the current process is not done and the progress-indicating character is retrieved, or, otherwise, give the output indicating the process of processing the current service request is done;
a client executing unit, configured to according to determining result, performing a rollback operation on the service request when the process of processing the current service request is done, or the process of processing the current service request is not done, changing the progress-indicating character;
a client checking unit, configured to after the process of processing the service request is done, checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, or not, deleting the progress-indicating character; and a client retrying unit, configured the client to resend the service request to the server.
128. The device of claim 127, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a semx device stored in a redis cache.

Date Recue/Date Received 2023-05-17
129. The device of any one of claims 127 to 128, wherein the progress-indicating character is a state value.
130. The device of any one of claims 127 to 129, wherein the service request is a request for a non-idempotent service.
131. The device of claim 127, wherein the identification number of the service request is a service serial number or a service order number.
132. The device of any one of claims 127 to 131, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
133. The device of any one of claims 127 to 132, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.
134. A system comprising:
a server setting unit, configured to set a progress-indicating character during a process of processing a service request when a server receives the service request from a client;
a server determining unit, configured to determine a current service request is processed by means of retrieving the progress-indicating character when the server feeds a request acknowledgement back to the client, and a response timeout occurs with respect to the request acknowledgement;
the server determining unit further comprises:

Date Recue/Date Received 2023-05-17 a server retrieving module, configured to retrieve the progress-indicating character in the process of processing the current service request based on an identification number of the current service request;
a server determining module, configured to give an output indicating the process of processing the current service request is not done and the progress-indicating character is retrieved, or give the output indicating the process of processing the current service request is done;
a server executing unit, configured to, according to a determination result, perform a rollback operation on the service request when the process of processing the current service request is done, or change the progress-indicating character when the process of processing the current service request is not done;
a server checking unit, configured to checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, wherein not, deleting the progress-indicating character; and a server retrying unit, configured to have the client resend the service request to the server.
135. The system of claim 134, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a setnx system stored in a redis cache.
136. The system of any one of claims 134 to 135, wherein the progress-indicating character is a state value.
137. The system of any one of claims 134 to 136, wherein the service request is a request for a non-idempotent service.
Date Recue/Date Received 2023-05-17
138. The system of claim 134, wherein the identification number of the service request is a service serial number or a service order number.
139. The system of any one of claims 134 to 138, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
140. The system of any one of claims 134 to 139, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.
141. A system comprising:
a client setting unit, configured to set a progress-indicating character during a process of processing a service request, when a client sends the service request to a server;
a client determining unit, configured to determine a current service request is processed by means of retrieving the progress-indicating character, when the client receives a request acknowledgement from the server, and a response timeout occurs with respect to the request acknowledgement;
the client determining unit comprises:
a client retrieving module, configured to retrieve the progress-indicating character in the process of processing the current service request, based on an identification number of the current service request;

Date Recue/Date Received 2023-05-17 a client determining module, configured to give an output indicating that the process of processing the current service request is not done when the current process is not done and the progress-indicating character is retrieved, or, otherwise, give the output indicating the process of processing the current service request is done;
a client executing unit, configured to according to determining result, performing a rollback operation on the service request when the process of processing the current service request is done, or the process of processing the current service request is not done, changing the progress-indicating character;
a client checking unit, configured to after the process of processing the service request is done, checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, or not, deleting the progress-indicating character; and a client retrying unit, configured the client to resend the service request to the server.
142. The system of claim 141, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a setnx system stored in a redis cache.
143. The system of any one of claims 141 to 142, wherein the progress-indicating character is a state value.
144. The system of any one of claims 141 to 143, wherein the service request is a request for a non-idempotent service.
145. The system of claim 141, wherein the identification number of the service request is a service serial number or a service order number.

Date Recue/Date Received 2023-05-17
146. The system of any one of claims 141 to 145, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
147. The system of any one of claims 141 to 146, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.
148. A method comprising:
receiving a service request on a server from a client, and setting a progress-indicating character during a process of processing the service request;
feeding a request acknowledgement back from the server to the client, and when a response timeout occurs with respect to the request acknowledgement, determining a current service request is processed by means of retrieving the progress-indicating character;
retrieving the progress-indicating character in the process of processing the current service request based on an identification number of the current service request;
giving an output indicating that the process of processing the current service request is not done wherein the process of processing the current service request has not ended and the progress-indicating character is retrieved, or giving the output indicating the process of processing the current service request is done;
performing a rollback operation on the service request where the process of processing the current service request is completed;

Date Recue/Date Received 2023-05-17 changing the progress-indicating character where the process of processing the current service request is not completed;
checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, wherein not, deleting the progress-indicating character; and resending the service request from the client to the server, until the response timeout no longer occurs with the request acknowledgement.
149. The method of claim 148, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a setnx method stored in a rah cache.
150. The method of any one of claims 148 to 149, wherein the progress-indicating character is a state value.
151. The method of any one of claims 148 to 150, wherein the service request is a request for a non-idempotent service.
152. The method of claim 148, wherein the identification number of the service request is a service serial number or a service order number.
153. The method of any one of claims 148 to 152, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.

Date Recue/Date Received 2023-05-17
154. The method of any one of claims 148 to 153, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.
155. A computer readable physical memory having stored thereon a computer program executed by a computer configured to:
setting a progress-indicating character during a process of processing a service request when the server receives a service request from a client;
determining a current service request is processed by means of retrieving the progress-indicating character when the server feeds a request acknowledgement back to the client, and a response timeout occurs with respect to the request acknowledgement;
retrieving the progress-indicating character in the process of processing the current service request based on an identification number of the current service request,;
giving an output indicating the process of processing the current service request is not done and the progress-indicating character is retrieved, or give the output indicating the process of processing the current service request is done;
according to a determination result, perform a rollback operation on the service request when the process of processing the current service request is done, or change the progjess-indicating character when the process of processing the current service request is not done;
checking the progress-indicating character has changed, wherein yes, performing the rollback operation on the service request, and deleting the progress-indicating character, wherein not, deleting the progress-indicating character; and have the client resend the service request to the server.
156. The memory of claim 155, wherein setting the progress-indicating character during the process of processing the service request comprises:
Date Recue/Date Received 2023-05-17 setting progress-indicating character using a setnx memory stored in a redis cache.
157. The memory of any one of claims 155 to 156, wherein the progress-indicating character is a state value.
158. The memory of any one of claims 155 to 157, wherein the service request is a request for a non-idempotent service.
159. The memory of claim 155, wherein the identification number of the service request is a service serial number or a service order number.
160. The memory of any one of claims 155 to 159, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
161. The memory of any one of claims 155 to 160, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.
162.A computer readable physical memory having stored thereon a computer program executed by a computer configured to:
setting a progress-indicating character during a process of processing a service request when a client sends the service request to a server;
determining a current service request is processed by means of retrieving the progress-indicating character when the client receives a request acknowledgement from the server, and a response timeout occurs with respect to the request acknowledgement;

Date Recue/Date Received 2023-05-17 retrieving the progress-indicating character in the process of processing the current service request, based on an identification number of the current service request;
and giving an output indicating that the process of processing the current service request is not done when the current process is not done and the progress-indicating character is retrieved, or, otherwise, give the output indicating the process of processing the current service request is done.
according to determining result, the process of processing the current service request is done, performing a rollback operation on the service request, or the process of processing the current service request is not done, changing the progress-indicating character;
checking the progress-indicating character has changed after the process of processing the service request is done, wherein yes, perfoiming the rollback operation on the service request, and deleting the progress-indicating character, or not, deleting the progress-indicating character; and the client to resend the service request to the server.
163. The memory of claim 162, wherein setting the progress-indicating character during the process of processing the service request comprises:
setting progress-indicating character using a setnx memory stored in a redis cache.
164. The memory of any one of claims 162 to 163, wherein the progress-indicating character is a state value.
165. The memory of any one of claims 162 to 164, wherein the service request is a request for a non-idempotent service.
166. The memory of claim 162, wherein the identification number of the service request is a service serial number or a service order number.

Date Recue/Date Received 2023-05-17
167. The memory of any one of claims 162 to 166, wherein the client does not receive the request acknowledgement within a predetermined timeframe, it is determined that the response of the server to the service request is timeout, the client reports an error to a user and automatically sends a call instruction to the server, wherein the server retrieves the progress-indicating character set in the service request previously according to the call instruction, and then determine the process of processing the current service request is done based on the progress-indicating character.
168. The memory of any one of claims 162 to 167, wherein the rollback operation is selectively performed on the service request that has not received the rollback operation according to the checking result of the progress-indicating character is changed.

Date Recue/Date Received 2023-05-17
CA3158476A 2018-10-24 2019-09-18 Method for processing response timeout, and systems for server and client to process response timeout Active CA3158476C (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201811245297.2A CN109495452B (en) 2018-10-24 2018-10-24 Response timeout processing method, server and client response timeout processing system
CN201811245297.2 2018-10-24
PCT/CN2019/106515 WO2020082942A1 (en) 2018-10-24 2019-09-18 Response timeout processing method, server, and client response timeout processing system

Publications (2)

Publication Number Publication Date
CA3158476A1 CA3158476A1 (en) 2020-04-30
CA3158476C true CA3158476C (en) 2023-08-29

Family

ID=65691544

Family Applications (1)

Application Number Title Priority Date Filing Date
CA3158476A Active CA3158476C (en) 2018-10-24 2019-09-18 Method for processing response timeout, and systems for server and client to process response timeout

Country Status (3)

Country Link
CN (1) CN109495452B (en)
CA (1) CA3158476C (en)
WO (1) WO2020082942A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495452B (en) * 2018-10-24 2020-08-11 苏宁易购集团股份有限公司 Response timeout processing method, server and client response timeout processing system
CN111818489B (en) * 2019-04-11 2023-04-25 中国移动通信集团山东有限公司 Service opening time prediction method and service opening monitoring system
CN110275764B (en) * 2019-05-15 2024-03-19 创新先进技术有限公司 Method, device and system for processing call timeout
CN110417910B (en) * 2019-08-07 2022-04-22 北京达佳互联信息技术有限公司 Notification message sending method, device, server and storage medium
CN110391880A (en) * 2019-08-23 2019-10-29 聚好看科技股份有限公司 Access request processing method and equipment based on terminal-server framework
CN111899021A (en) * 2020-08-04 2020-11-06 武汉众邦银行股份有限公司 Method for realizing automatic receipt of super network bank account service
CN112351110B (en) * 2020-11-27 2022-10-21 杭州安恒信息技术股份有限公司 ID distribution method and device based on zookeeper
CN112565286A (en) * 2020-12-17 2021-03-26 金蝶软件(中国)有限公司 Task response method, device, equipment and storage medium based on RPC access
CN114430396B (en) * 2022-04-06 2022-07-05 中国光大银行股份有限公司 Transaction frequency control method and device, storage medium and electronic equipment

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7559060B2 (en) * 2003-06-10 2009-07-07 National Instruments Corporation Time-bounded program execution
CN101110679A (en) * 2007-08-21 2008-01-23 华为技术有限公司 Charging process protection method, system and business control point of on-line accounting system
US9417906B2 (en) * 2010-04-01 2016-08-16 Red Hat, Inc. Transaction participant registration with caveats
US20130179400A1 (en) * 2012-01-09 2013-07-11 Morgan Stanley Intelligent data publishing framework for common data updates in large scale networks of heterogeneous computer systems
CN103019651B (en) * 2012-08-02 2016-06-29 青岛海信传媒网络技术有限公司 The method for parallel processing of complex task and device
CN103312549B (en) * 2013-06-26 2016-08-24 华为技术有限公司 A kind of office management method and device and system
CN105989133B (en) * 2015-02-25 2019-10-01 阿里巴巴集团控股有限公司 Transaction methods and device
CN106570027B (en) * 2015-10-10 2020-08-25 阿里巴巴集团控股有限公司 Transactional task processing method and device
CN106844014B (en) * 2015-12-07 2020-04-28 阿里巴巴集团控股有限公司 Method and device for realizing suspension prevention of distributed transactions
CN105868029A (en) * 2015-12-11 2016-08-17 鼎点视讯科技有限公司 Consistency fault-tolerance processing method and system
CN107257363B (en) * 2017-05-27 2020-02-04 北京思特奇信息技术股份有限公司 Method and system for responding request of request terminal
CN108073684A (en) * 2017-11-16 2018-05-25 深圳市买买提信息科技有限公司 A kind of data processing method, server and computer readable storage medium
CN108038141A (en) * 2017-11-27 2018-05-15 国云科技股份有限公司 Ensure the method for data consistency under micro services framework HTTP interactive modes
CN108205440A (en) * 2017-12-25 2018-06-26 国云科技股份有限公司 A kind of task flow framework implementation method for supporting rollback
CN108153598B (en) * 2017-12-25 2021-06-25 东软集团股份有限公司 Data consistency method and device based on micro-service architecture
CN109495452B (en) * 2018-10-24 2020-08-11 苏宁易购集团股份有限公司 Response timeout processing method, server and client response timeout processing system

Also Published As

Publication number Publication date
CN109495452B (en) 2020-08-11
CA3158476A1 (en) 2020-04-30
WO2020082942A1 (en) 2020-04-30
CN109495452A (en) 2019-03-19

Similar Documents

Publication Publication Date Title
CA3158476C (en) Method for processing response timeout, and systems for server and client to process response timeout
US20170026463A1 (en) Wireless network cloud computing resource management
CN111176858A (en) Data request processing method and device
CN108681777B (en) Method and device for running machine learning program based on distributed system
US8301706B2 (en) Routing of pooled messages via an intermediary
CN111782360A (en) Distributed task scheduling method and device
CN108733720B (en) On-line checking method and checking system for SQL (structured query language) query of multiple database types
CN107688489B (en) Method and system for scheduling tasks
CN107645476B (en) Request processing method and device
CN115004673A (en) Message pushing method and device, electronic equipment and computer readable medium
CN112003947A (en) System and verification method for preventing repeated requests from client to server
CN108243222A (en) Server network architecture method and device
CN112995262B (en) Distributed transaction submission method, system and computing equipment
CN110928887A (en) Data processing method and device
CN111698281B (en) Resource downloading method and device, electronic equipment and storage medium
EP2760178B1 (en) Method, apparatus and system for obtaining object
CN109905459B (en) Data transmission method and device
CN105009069A (en) Printing system, print server and method for submitting print jobs
US20220239638A1 (en) Method and device for registration and login, and computer-readable storage medium
US10142393B2 (en) Communication apparatus, communication method, and storage medium
CN114896337A (en) Data uplink method, system, equipment and computer readable storage medium
CN114584573A (en) Node machine information synchronization method based on long polling mechanism
CN110784518A (en) Static resource acquisition method and device
JP2010122818A (en) Computer system and computer
CN115220877B (en) Service processing method and device

Legal Events

Date Code Title Description
EEER Examination request

Effective date: 20220706

EEER Examination request

Effective date: 20220706

EEER Examination request

Effective date: 20220706

EEER Examination request

Effective date: 20220706

EEER Examination request

Effective date: 20220706

EEER Examination request

Effective date: 20220706

EEER Examination request

Effective date: 20220706