Resource constraints for request processing
First Claim
Patent Images
1. A method comprising:
- at a respective server system having one or more processors and memory storing one or more programs that when executed by the one or more processors cause the respective server system to perform the method, the method comprising;
receiving a first request from an application;
processing at least a portion of the first request in accordance with a predefined set of resource constraints; and
in accordance with a determination that the predefined set of resource constraints has been met prior to completing processing the first request;
terminating processing of the first request prior to completing processing of the first request, wherein terminating processing of the first request includes generating detailed state information and approximate state information corresponding to a state of the first request at the time that it was terminated, and wherein the detailed state information includes additional processing state parameters in comparison with the approximate state information;
generating a first intermediate result; and
providing a response to the application including;
the first intermediate result; and
request status information enabling the application to request resumption of the first request, wherein the request status information includes;
a query handle that enables the server system to resume processing the first request in accordance with the detailed state information; and
a query cursor that enables the server system to resume processing the first request in accordance with the approximate state information;
receiving a second request to resume processing the first request, wherein the second request includes both the query handle and the query cursor;
in accordance with a determination that the detailed state information has not expired, utilizing the query handle to resume processing and forgoing utilizing the query cursor; and
in accordance with a determination that the detailed state information has expired, utilizing the query cursor to resume processing and forgoing utilizing the query handle.
2 Assignments
0 Petitions
Accused Products
Abstract
A server system having one or more processors and memory receives a first request from an application and processes at least a portion of the first request in accordance with a predefined set of resource constraints. In accordance with a determination that the predefined set of resource constraints has been met prior to completing processing the first request, the server system terminates processing of the first request prior to completing processing of the first request, generates a first intermediate result; and provides a response to the application. The response includes the first intermediate result, and request status information enabling the application to request resumption of the first request.
73 Citations
21 Claims
-
1. A method comprising:
-
at a respective server system having one or more processors and memory storing one or more programs that when executed by the one or more processors cause the respective server system to perform the method, the method comprising; receiving a first request from an application; processing at least a portion of the first request in accordance with a predefined set of resource constraints; and in accordance with a determination that the predefined set of resource constraints has been met prior to completing processing the first request; terminating processing of the first request prior to completing processing of the first request, wherein terminating processing of the first request includes generating detailed state information and approximate state information corresponding to a state of the first request at the time that it was terminated, and wherein the detailed state information includes additional processing state parameters in comparison with the approximate state information; generating a first intermediate result; and providing a response to the application including; the first intermediate result; and request status information enabling the application to request resumption of the first request, wherein the request status information includes; a query handle that enables the server system to resume processing the first request in accordance with the detailed state information; and a query cursor that enables the server system to resume processing the first request in accordance with the approximate state information; receiving a second request to resume processing the first request, wherein the second request includes both the query handle and the query cursor; in accordance with a determination that the detailed state information has not expired, utilizing the query handle to resume processing and forgoing utilizing the query cursor; and in accordance with a determination that the detailed state information has expired, utilizing the query cursor to resume processing and forgoing utilizing the query handle. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A server system, comprising:
-
one or more processors; memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for; receiving a first request from an application; processing at least a portion of the first request in accordance with a predefined set of resource constraints; and in accordance with a determination that the predefined set of resource constraints has been met prior to completing processing the first request; terminating processing of the first request prior to completing processing of the first request, wherein terminating processing of the first request includes generating detailed state information and approximate state information corresponding to a state of the first request at the time that it was terminated, and wherein the detailed state information includes additional processing state parameters in comparison with the approximate state information; generating a first intermediate result; and providing a response to the application including; the first intermediate result; and request status information enabling the application to request resumption of the first request, wherein the request status information includes;
a query handle that enables the server system to resume processing the first request in accordance with the detailed state information; and
a query cursor that enables the server system to resume processing the first request in accordance with the approximate state information;receiving a second request to resume processing the first request, wherein the second request includes both the query handle and the query cursor; in accordance with a determination that the detailed state information has not expired, utilizing the query handle to resume processing and forgoing utilizing the query cursor; and in accordance with a determination that the detailed state information has expired, utilizing the query cursor to resume processing and forgoing utilizing the query handle. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. A non-transitory computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computer system with one or more processors, cause the computer system to:
-
receive a first request from an application; process at least a portion of the first request in accordance with a predefined set of resource constraints; and in accordance with a determination that the predefined set of resource constraints has been met prior to completing processing the first request; terminate processing of the first request prior to completing processing of the first request, wherein terminating processing of the first request includes generating detailed state information and approximate state information corresponding to a state of the first request at the time that it was terminated, and wherein the detailed state information includes additional processing state parameters in comparison with the approximate state information; generate a first intermediate result; and provide a response to the application including; the first intermediate result; and request status information enabling the application to request resumption of the first request, wherein the request status information includes; a query handle that enables the server system to resume processing the first request in accordance with the detailed state information; and a query cursor that enables the server system to resume processing the first request in accordance with the approximate state information; receive a second request to resume processing the first request, wherein the second request includes both the query handle and the query cursor; in accordance with a determination that the detailed state information has not expired, utilize the query handle to resume processing and forgo utilizing the query cursor; and in accordance with a determination that the detailed state information has expired, utilize the query cursor to resume processing and forgo utilizing the query handle. - View Dependent Claims (17, 18, 19, 20, 21)
-
Specification