Method and apparatus for synchronizing caches in a distributed computing system
First Claim
Patent Images
1. A method for synchronizing an entry in a cache in a computer system through a peer-to-peer refreshing operation, comprising:
- determining the age of the entry in the cache within the computer system;
determining the life span for the entry based upon a taxonomy of data that associates different life spans with different types of data; and
if the age of the entry exceeds a life span for the entry, invalidating the entry in the cache, and refreshing the entry by retrieving an updated version of the entry from a peer of the computer system, if possible, instead of from a centralized source for the entry.
2 Assignments
0 Petitions
Accused Products
Abstract
One embodiment of the present invention provides a system for synchronizing a cache in a computer system through a peer-to-peer refreshing operation. During operation, the system determines the age of an entry in the cache. If the age of the entry exceeds a life span for the entry, the system invalidates the entry in the cache. The system subsequently refreshes the entry by retrieving an updated version of the entry from a peer of the computer system, if possible, instead of from a centralized source for the entry.
10 Citations
24 Claims
-
1. A method for synchronizing an entry in a cache in a computer system through a peer-to-peer refreshing operation, comprising:
-
determining the age of the entry in the cache within the computer system;
determining the life span for the entry based upon a taxonomy of data that associates different life spans with different types of data; and
if the age of the entry exceeds a life span for the entry, invalidating the entry in the cache, and refreshing the entry by retrieving an updated version of the entry from a peer of the computer system, if possible, instead of from a centralized source for the entry. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
attempting to retrieve the updated version of the entry from a first-order peer, which is part of the same peer group as the computer system; and
if the updated version of the entry cannot be retrieved from a first-order peer, attempting to retrieve the updated version of the entry from a second-order peer, which is accessible through a first order peer.
-
-
6. The method of claim 1, wherein if the updated version of the entry cannot be retrieved from a peer of the computer system, the method further comprises retrieving the updated version of entry from the centralized source for the entry.
-
7. The method of claim 1, wherein if a given peer of the computer system subsequently requests the updated version of the entry, the method further comprises supplying the updated version of the entry to the given peer.
-
8. The method of claim 1, wherein retrieving the updated version of the entry involves using a Juxtapose (JXTA) framework to facilitate peer-to-peer communications to retrieve the entry.
-
9. A computer-readable storage medium storing instructions that when executed by a computer system cause the computer system to perform a method for synchronizing an entry in a cache in the computer system through a peer-to-peer refreshing operation, the method comprising:
-
determining the age of the entry in the cache within the computer system;
determining the life span for the entry based upon a taxonomy of data that associates different life spans with different types of data; and
if the age of the entry exceeds a life span for the entry, invalidating the entry in the cache, and refreshing the entry by retrieving an updated version of the entry from a peer of the computer system, if possible, instead of from a centralized source for the entry. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
attempting to retrieve the updated version of the entry from a first-order peer, which is part of the same peer group as the computer system; and
if the updated version of the entry cannot be retrieved from a first-order peer, attempting to retrieve the updated version of the entry from a second-order peer, which is accessible through a first order peer.
-
-
14. The computer-readable storage medium of claim 9, wherein if the updated version of the entry cannot be retrieved from a peer of the computer system, the method further comprises retrieving the updated version of entry from the centralized source for the entry.
-
15. The computer-readable storage medium of claim 9, wherein if a given peer of the computer system subsequently requests the updated version of the entry, the method further comprises supplying the updated version of the entry to the given peer.
-
16. The computer-readable storage medium of claim 9, wherein retrieving the updated version of the entry involves using a Juxtapose (JXTA) framework to facilitate peer-to-peer communications to retrieve the entry.
-
17. An apparatus that synchronizes an entry in a cache in a computer system through a peer-to-peer refreshing operation, comprising:
-
an age determining mechanism that is configured to determine the age of the entry in the cache within the computer system;
a life span determining mechanism that is configured to determine the life span for the entry based upon a taxonomy of data that associates different life spans with different types of data; and
a refreshing mechanism, wherein if the age of the entry exceeds a life span for the entry, the refreshing mechanism is configured to, invalidate the entry in the cache, and to refresh the entry by retrieving an updated version of the entry from a peer of the computer system, if possible, instead of from a centralized source for the entry. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24)
attempt to retrieve the updated version of the entry from a first-order peer, which is part of the same peer group as the computer system; and
toattempt to retrieve the updated version of the entry from a second-order peer, which is accessible through a first order peer, if the updated version of the entry cannot be retrieved from a first-order peer.
-
-
22. The apparatus of claim 17, wherein if the updated version of the entry cannot be retrieved from a peer of the computer system, the refreshing mechanism is configured to retrieve the updated version of entry from the centralized source for the entry.
-
23. The apparatus of claim 17, wherein if a given peer of the computer system subsequently requests the updated version of the entry, the refreshing mechanism is configured to supply the updated version of the entry to the given peer.
-
24. The apparatus of claim 17, wherein the refreshing mechanism is configured to use a Juxtapose (JXTA) framework to facilitate peer-to-peer communications to retrieve the entry.
Specification