CA3158476A1 - 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
CA3158476A1
CA3158476A1 CA3158476A CA3158476A CA3158476A1 CA 3158476 A1 CA3158476 A1 CA 3158476A1 CA 3158476 A CA3158476 A CA 3158476A CA 3158476 A CA3158476 A CA 3158476A CA 3158476 A1 CA3158476 A1 CA 3158476A1
Authority
CA
Canada
Prior art keywords
service request
progress
processing
server
client
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.)
Granted
Application number
CA3158476A
Other languages
French (fr)
Other versions
CA3158476C (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)
  • Retry When Errors Occur (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (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 (10)

CA 03158476 2022-04-21What is claimed is:
1. A method for processing response timeout, comprising steps of:
S1 - 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, determine whether the current service request has been processed by means of retrieving the progress-indicating character;
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;
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 S5 - returning to S1, 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.
2. The method of claim 1, wherein at S 1, the step of setting a progress-indicating character during a process of processing the service request comprises:
during the process of processing the service request, setting progress-indicating character using a setnx method stored in a redis cache.
3. The method of claim 1, wherein 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:
Date Recue/Date Received 2022-04-21 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.
4. The method of any of claims 1-3, wherein the progress-indicating character is a state value.
5. The method of any of claims 1-3, wherein the service request is a request for a non-idempotent service.
6. The method of any of claim 3, wherein the identification number of the service request is a service serial number or a service order number.
7. A system for a server to process response timeout, comprising:
a server setting unit, configured to, when the server receives a service request from a client, set a progress-indicating character during a process of processing the service request;
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;
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;
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 Date Recue/Date Received 2022-04-21 if not, just deleting the progress-indicating character; and a server retrying unit, for having the client resend the service request to the server.
8. The system of claim 7, wherein the server determining unit comprises:
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 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.
9. A system for a client to process response timeout, comprising:
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;
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;
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-indi eating character;
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 a client retrying unit, for having the client resend the service request to the server.

Date Recue/Date Received 2022-04-21
10. The system of claim 9, wherein the client determining unit comprises:
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 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, give an output indicating the process of processing the current service request is done.

Date Recue/Date Received 2022-04-21
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.2 2018-10-24
CN201811245297.2A CN109495452B (en) 2018-10-24 2018-10-24 Response timeout processing method, server and client response timeout processing system
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 true CA3158476A1 (en) 2020-04-30
CA3158476C 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
CN109495452A (en) 2019-03-19
CA3158476C (en) 2023-08-29
WO2020082942A1 (en) 2020-04-30

Similar Documents

Publication Publication Date Title
CA3158476C (en) Method for processing response timeout, and systems for server and client to process response timeout
US20190238632A1 (en) Wireless network cloud computing resource management
US8301706B2 (en) Routing of pooled messages via an intermediary
CN111782360A (en) Distributed task scheduling method and device
CN111176858A (en) Data request processing method and device
CN106648936B (en) Cooperative processing method, system and server based on microservice
US20190028332A1 (en) Configuration information push method and device
CN107688489A (en) A kind of method and system of scheduler task
CN112003947A (en) System and verification method for preventing repeated requests from client to server
CN108243222A (en) Server network architecture method and device
CN108259578B (en) Cluster node upgrading method and device
CN110928887A (en) Data processing method and device
CN112995262B (en) Distributed transaction submission method, system and computing equipment
WO2017133487A1 (en) Service scheduling method and device, and computer storage medium
CN113342503B (en) Real-time progress feedback method, device, equipment and storage medium
CN108874947B (en) Data processing system and data processing method
CN111698281B (en) Resource downloading method and device, electronic equipment and storage medium
CN109905459B (en) Data transmission method and device
CN105009069A (en) Printing system, print server and method for submitting print jobs
CN112817745A (en) Task processing method and device
US10929237B2 (en) Error handling tool
CN114584573A (en) Node machine information synchronization method based on long polling mechanism
US10142393B2 (en) Communication apparatus, communication method, and storage medium
CN110784518A (en) Static resource acquisition method and device
CN111190717A (en) Task processing method and system

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