Batching of invalidations and new values in a web cache with dynamic content
First Claim
1. An system supporting distributed web applications between a client and a server, wherein the server is equipped with a cache, and the system comprises:
- cache entries, comprising data, commands and server pages, which may be stored in the cache;
an invalidation instruction sequence, which invalidates selected cache entries in the cache; and
a batch update daemon, which awakes periodically, invoking the invalidation instruction sequence to invalidate multiple cache entries.
1 Assignment
0 Petitions
Accused Products
Abstract
A system and method are disclosed, according to which, the responsiveness of client/server-based distributed web applications operating in an object-oriented environment may be improved by batching invalidations of cache entries. Cache invalidations require updates of invalid cache entries from the database. Since database accesses are time-consuming, it is advantageous to combine several invalidations and execute them all at once (i.e.—to batch them). In an exemplary embodiment, cache entries may be identified or located on the basis of a unique ID. A list of IDs can be compiled by an application and consulted by a batch invalidation daemon, which uses the IDs therein to invalidate the desired entries. Alternatively, a time limit property of each cache entry can be examined by a time limit invalidation daemon, to invalidate entries that have “timed out”. Batching invalidations implies that invalid entries may remain in cache until the daemon wakes up. However, moderate latency in updating cached data is typically acceptable in e-business applications.
-
Citations
21 Claims
-
1. An system supporting distributed web applications between a client and a server, wherein the server is equipped with a cache, and the system comprises:
-
cache entries, comprising data, commands and server pages, which may be stored in the cache;
an invalidation instruction sequence, which invalidates selected cache entries in the cache; and
a batch update daemon, which awakes periodically, invoking the invalidation instruction sequence to invalidate multiple cache entries. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
- 10. The system further comprising a Java Virtual Machine (JVM), wherein the cache is associated with the JVM and the server pages stored therein are Java Server Pages (JSPs)
-
11. A method for batching invalidation of cache entries in system supporting distributed web applications between a client and server, comprising:
-
specifying a plurality of cache entries for a batch of cache entries and;
periodically waking a batch invalidation daemon, which receives the identities of the specified cache entries and invokes an invalidation instruction sequence in the batch. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 20)
-
-
21. A computer program product in a computer readable medium for batching invalidation of cache entries in a web application, comprising;
-
means for specifying a plurality of cache entries for a batch of cache entries; and
a batch invalidation daemon, which periodically wakes to receive the specified cache entries and invokes an invalidation instruction sequence on the batch.
-
Specification