Endpoint call backoff in a computing service environment
First Claim
1. A method for providing an endpoint backoff operation in a computing service environment, the method comprises:
- under control of at least one processor and memory configured with executable instructions that;
define an allowable call failure rate for application programming interface (API) calls sent to one or more endpoints, and the allowable call failure rate is defined using a token bucket for storing a plurality of tokens, wherein removal of a single token from the token bucket is defined as being equal to one API call failure, and one or more additional tokens are added to the token bucket when a predetermined number of successful calls are sent to and executed by the endpoint;
determine a number of tokens in the token bucket prior to executing an API call to the one or more endpoints;
identify a health status of the one or more endpoints according to the number of tokens in the token bucket;
determine that the one or more endpoints, having a number of tokens in the token bucket that is equal to zero or less than a defined number of tokens, are unhealthy; and
delay the API calls to the one or more endpoints determined to be unhealthy.
1 Assignment
0 Petitions
Accused Products
Abstract
A technology is provided for call failure backoff in a computing service environment. An allowable call failure rate is defined for application programming interface (API) calls sent to one or more endpoints. Each endpoint may use a token bucket containing a plurality of tokens, wherein a single token is defined as being equal to one API call failure. A number of tokens in the token bucket are determined prior to executing an API call to the one or more endpoints. A health status of the one or more endpoints is identified according to the number of tokens in the token bucket. The API calls to the one or more endpoints having the determined number of tokens in the token bucket that are equal to zero or may be delayed for a predetermined backoff time period.
-
Citations
21 Claims
-
1. A method for providing an endpoint backoff operation in a computing service environment, the method comprises:
-
under control of at least one processor and memory configured with executable instructions that; define an allowable call failure rate for application programming interface (API) calls sent to one or more endpoints, and the allowable call failure rate is defined using a token bucket for storing a plurality of tokens, wherein removal of a single token from the token bucket is defined as being equal to one API call failure, and one or more additional tokens are added to the token bucket when a predetermined number of successful calls are sent to and executed by the endpoint; determine a number of tokens in the token bucket prior to executing an API call to the one or more endpoints; identify a health status of the one or more endpoints according to the number of tokens in the token bucket; determine that the one or more endpoints, having a number of tokens in the token bucket that is equal to zero or less than a defined number of tokens, are unhealthy; and delay the API calls to the one or more endpoints determined to be unhealthy. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method for providing call failure backoff in a computing service environment, the method comprises executable instructions that:
-
identify an endpoint configured to execute calls received as an application programming interface (API) call; define an allowable call failure rate for calls executed to an endpoint; determine a number of tokens in a token bucket for the endpoint prior to sending a call to the endpoint for execution, wherein a token represents a call failure, and one or more additional tokens are added to the token bucket when a predetermined number of successful calls are sent to and executed by the endpoint; and delay calls to the endpoint upon determining the number of tokens in the token bucket is less than a defined number of tokens. - View Dependent Claims (8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. A method for providing a call failure backoff in a computing service environment, the method comprises:
-
defining an allowable call failure rate using a token bucket for application programming interface (API) calls executed on an endpoint, wherein a single token is defined as being equal to one API call failure; determining a number of tokens in the token bucket prior to executing an API call at the endpoint; assigning a token in the token bucket to failed API calls; decrementing a total token count number in the token bucket when the failed API calls are identified; delaying API calls to the endpoint upon determining the number of tokens in the token bucket is equal to zero; adding an additional token to the token bucket for each successful API call to the endpoint; and refilling the token bucket with at least one token per predefined time period that has passed. - View Dependent Claims (19, 20, 21)
-
Specification