Method and apparatus for client-side aggregation of asynchronous fragmented requests
First Claim
Patent Images
1. A computer implemented process for asynchronously executing requests, the computer implemented process comprising:
- receiving an original request thread from a client at an application server;
executing the original request;
replacing an asynchronous component in the original request with a placeholder;
starting a new thread for the asynchronous component having a unique identifier;
registering the unique identifier at a server store;
writing a script for retrieving the new thread output from the sever store;
sending the new thread output to the server store;
returning the original request thread with the script to the client; and
when the new thread output is received at the server store, using the script to retrieve the new thread output from the server store and replacing the placeholder in the original request with the new thread output.
1 Assignment
0 Petitions
Accused Products
Abstract
The Asynchronous Aggregator shifts the burden of retrieving and aggregating asynchronous responses by replacing asynchronous requests in an original request thread with placcholders with a unique identifier, creating new threads for each asynchronous request, writing a script to request the asynchronous request output, and returning the original request and the script to the client. Each of the new threads run independently and when completed, place the output in the server store. The script then requests each output from the server store as the output becomes available to fill the placeholders.
-
Citations
9 Claims
-
1. A computer implemented process for asynchronously executing requests, the computer implemented process comprising:
-
receiving an original request thread from a client at an application server; executing the original request; replacing an asynchronous component in the original request with a placeholder; starting a new thread for the asynchronous component having a unique identifier; registering the unique identifier at a server store; writing a script for retrieving the new thread output from the sever store; sending the new thread output to the server store; returning the original request thread with the script to the client; and when the new thread output is received at the server store, using the script to retrieve the new thread output from the server store and replacing the placeholder in the original request with the new thread output. - View Dependent Claims (2, 3)
-
-
4. An apparatus for asynchronously executing requests, the apparatus comprising:
-
a processor; a memory connected to the processor; a service in the computer memory; a program in the memory operable to; receive an original request thread from a client at an application server; execute the original request; replace an asynchronous component of the original request with a placeholder; start a new thread for the asynchronous component having a unique identifier; register the unique identifier at a server store; write a script for retrieving a new thread output from the sever store; send the new thread output to the server store; return the original request thread with the script to the client; wherein when the new thread output is received at the server store, the script will retrieve the new thread output from the server store for the client and replace the placeholder in the original request thread with the new thread output. - View Dependent Claims (5, 6)
-
-
7. A computer program product containing a plurality of instructions encoded on a computer usable storage memory to cause a computer to asynchronously execute requests, the plurality of instructions comprising:
-
first instructions to receive an original request thread from a client at an application server; second instructions to execute the original request; third instructions to replace an asynchronous component of the original request with a placeholder; fourth instructions to start a new thread for the asynchronous component having a unique identifier; fifth instructions to register the unique identifier at a server store; sixth instructions to write a script for retrieving a new thread output from the sever store; seventh instructions to send the new thread output to the server store; and eighth instructions to return the original request thread with the script to the client; wherein when the new thread output is received at the server store, the script retrieves the new thread output from the server store and replace the placeholder in the original request thread with the new thread output. - View Dependent Claims (8, 9)
-
Specification