Generating fault tolerant connectivity API
First Claim
1. A system, comprising:
- a computer processor; and
a memory device containing a program that, when executed on the computer processor, performs an operation for generating a wrapper for an application program interface (API), comprising;
receiving a usage pattern comprising a sequence of commands issued by a user application to access a data source;
receiving a cache option associated with at least one command in the usage pattern, the cache option defining how the wrapper, to be generated, caches data when the user application issues the at least one command;
receiving an error code associated with the at least one command, wherein the error code represents an error message issued by one of the API and the data source in response to a service disruption, wherein the wrapper is configured to retry a user application request upon identifying the error code; and
generating the wrapper based on the received usage pattern, the received cache option, and the received error code.
1 Assignment
0 Petitions
Accused Products
Abstract
To make a connection between a user application and a data source fault tolerant, a user may use a wrapper generator to create an API wrapper that retries request that may have failed due to a service disruption. Generally, the wrapper manages a cache and contains the necessary information for retrying a connection after a service disruption. To create the wrapper, the wrapper generator may identify the different commands used by the user application to access the data source. The wrapper generator presents these commands to the user who organizes the commands to generate usage patterns for the different requests the user application may send to the data source. The user may also define a caching preference associated the commands in the usage patterns. To restart the connection, the wrapper may use the cache data to generate a new request to complete the original failed request.
12 Citations
13 Claims
-
1. A system, comprising:
-
a computer processor; and a memory device containing a program that, when executed on the computer processor, performs an operation for generating a wrapper for an application program interface (API), comprising; receiving a usage pattern comprising a sequence of commands issued by a user application to access a data source; receiving a cache option associated with at least one command in the usage pattern, the cache option defining how the wrapper, to be generated, caches data when the user application issues the at least one command; receiving an error code associated with the at least one command, wherein the error code represents an error message issued by one of the API and the data source in response to a service disruption, wherein the wrapper is configured to retry a user application request upon identifying the error code; and generating the wrapper based on the received usage pattern, the received cache option, and the received error code. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer program product for generating a wrapper for an application program interface (API), the computer program product comprising:
a non-transitory computer-readable storage medium having computer-readable program code embodied therewith, the computer-readable program code comprising computer-readable program code configured to; receive a usage pattern comprising a sequence of commands issued by a user application to access a data source; receive a cache option associated with at least one command in the usage pattern, the cache option defining how the wrapper, to be generated, caches data when the user application issues the at least one command; receive an error code associated with the at least one command, wherein the error code represents an error message issued by one of the API and the data source in response to a service disruption, wherein the wrapper is configured to retry a user application request upon identifying the error code; and generate the wrapper based on the received usage pattern, the received cache option, and the received error code. - View Dependent Claims (9, 10, 11, 12, 13)
Specification