Pattern based web services using caching
First Claim
1. A method of processing a request for a plurality of Web services comprising the steps of:
- storing, in a cache, a pattern object from a request for Web services and a list of watchers that invoked Web services responsive to detecting the pattern object;
receiving a new request for Web services specifying a new pattern object;
determining whether the new pattern object matches the cached pattern object;
if so, causing each watcher in the list of watchers to invoke an associated Web service; and
if not, causing each watcher in a system to analyze the new pattern object, such that any watcher determining that the new pattern object matches a provisioned rule invokes an associated Web service.
1 Assignment
0 Petitions
Accused Products
Abstract
A method of processing a request for a plurality of Web services can include storing, in a cache, a pattern object from a request for Web services and a list of watchers that invoked Web services responsive to detecting the pattern object. The method also can include receiving a new request for Web services specifying a new pattern object and determining whether the new pattern object matches the cached pattern object. If so, each watcher in the list of watchers can invoke an associated Web service. If no match with the cached pattern object is determined, each watcher can analyze the new pattern object, such that any watcher determining that the new pattern object matches a provisioned rule invokes an associated Web service.
29 Citations
26 Claims
-
1. A method of processing a request for a plurality of Web services comprising the steps of:
-
storing, in a cache, a pattern object from a request for Web services and a list of watchers that invoked Web services responsive to detecting the pattern object;
receiving a new request for Web services specifying a new pattern object;
determining whether the new pattern object matches the cached pattern object;
if so, causing each watcher in the list of watchers to invoke an associated Web service; and
if not, causing each watcher in a system to analyze the new pattern object, such that any watcher determining that the new pattern object matches a provisioned rule invokes an associated Web service. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method of processing a request for a plurality of Web services comprising the steps of:
-
receiving a request specifying at least two Web services;
storing a pattern object from the request in a common memory;
scanning the common memory with a plurality of watchers, wherein each watcher is associated with a Web service and specifies a rule for invoking an associated one of the Web services;
determining that the pattern object matches a rule of at least two of the watchers, such that each watcher having a rule matching the pattern object invokes an associated one of the Web services; and
storing a list of watchers that invoke an associated one of the Web services and the pattern object in a cache, wherein the list of watchers is associated with the pattern object. - View Dependent Claims (9, 10)
-
-
11. A system for processing complex requests for Web services comprising:
-
a Hypertext Transfer Protocol server configured to receive a single request for more than one Web service;
at least one servlet configured to extract a pattern object from the request and to format a response to the request;
a common memory that temporarily stores the pattern object while the Web services specified by the pattern object execute;
a plurality of watchers, each watcher being associated with a particular Web service and including a rule for invoking the associated Web service, wherein each of said watchers scans said common memory in parallel to determine whether a stored pattern object matches a rule for invoking an associated one of the Web services;
a termination watcher configured to detect termination criterion, wherein the termination watcher provides the pattern object back to one of said plurality of servlets to generate a response upon detecting the termination criterion; and
a cache for storing pattern objects from requests and lists of watchers that invoked Web services responsive to detecting the pattern objects from the past requests. - View Dependent Claims (12, 13, 14, 15, 16)
-
-
17. A machine readable storage, having stored thereon a computer program having a plurality of code sections executable by a machine for causing the machine to perform the steps of:
-
storing, in a cache, a pattern object from a request for Web services and a list of watchers that invoked Web services responsive to detecting the pattern object;
receiving a new request for Web services specifying a new pattern object;
determining whether the new pattern object matches the cached pattern object;
if so, causing each watcher in the list of watchers to invoke an associated Web service; and
if not, causing each watcher in a system to analyze the new pattern object, such that any watcher determining that the new pattern object matches a provisioned rule invokes an associated Web service. - View Dependent Claims (18, 19, 20, 21, 22, 23)
-
-
24. A machine readable storage, having stored thereon a computer program having a plurality of code sections executable by a machine for causing the machine to perform the steps of:
-
receiving a request specifying at least two Web services;
storing a pattern object from the request in a common memory;
scanning the common memory with a plurality of watchers, wherein each watcher is associated with a Web service and specifies a rule for invoking an associated one of the Web services;
determining that the pattern object matches a rule of at least two of the watchers, wherein each watcher having a rule matching the pattern object invokes an associated one of the Web services; and
storing a list of watchers that invoke an associated one of the Web services and the pattern object in a cache, wherein the list of watchers is associated with the pattern object. - View Dependent Claims (25, 26)
-
Specification