SYSTEM FOR REPLICATION-DRIVEN REPOSITORY CACHE INVALIDATION ACROSS MULTIPLE DATA CENTERS
First Claim
Patent Images
1. A method, performed by one or more processors at a first data center, for invalidating items using a distributed cache mode at the first data center, the method comprising:
- writing replication data, using the one or more processors, to a notifier table, with the replication data indicating updates made to tables of a database at a second data center that are replicated as updates to corresponding tables of a database at the first data center, with each row of the notifier table represented by a notification item holding metadata including the name of an updated first table of the database at the first data center, a timestamp indicating when an update occurred to the updated first table and a name/value pair, where the second data center is remote from the first data center;
periodically polling, using the one or more processors, the metadata to access notification items having a timestamp indicating that the age of the notification item is less than a maximum value;
mapping, using the one or more processors, a first table name stored in a first accessed notification item to one or more mapped object relational repository items that use the distributed cache mode;
constructing, using the one or more processors, a unique identity for a mapped object relational repository item using one or more name/value pairs stored in a first accessed notification item and representing the primary key column(s) of the first table name stored in the first accessed notification item;
invoking, using the one or more processors, a distributed cache invalidation system implemented only at the first data center; and
providing, using the one or more processors, the unique identity of the mapped object relational depository item to be invalidated to the distributed cache invalidation system to invalidate all cached copies of the mapped object relational depository item at the first data center.
1 Assignment
0 Petitions
Accused Products
Abstract
A distributed cache invalidation system operating on multiple data centers utilizes metadata, read from a replication stream transmitted between data centers, to identify cached items to be invalidated.
18 Citations
21 Claims
-
1. A method, performed by one or more processors at a first data center, for invalidating items using a distributed cache mode at the first data center, the method comprising:
-
writing replication data, using the one or more processors, to a notifier table, with the replication data indicating updates made to tables of a database at a second data center that are replicated as updates to corresponding tables of a database at the first data center, with each row of the notifier table represented by a notification item holding metadata including the name of an updated first table of the database at the first data center, a timestamp indicating when an update occurred to the updated first table and a name/value pair, where the second data center is remote from the first data center; periodically polling, using the one or more processors, the metadata to access notification items having a timestamp indicating that the age of the notification item is less than a maximum value; mapping, using the one or more processors, a first table name stored in a first accessed notification item to one or more mapped object relational repository items that use the distributed cache mode; constructing, using the one or more processors, a unique identity for a mapped object relational repository item using one or more name/value pairs stored in a first accessed notification item and representing the primary key column(s) of the first table name stored in the first accessed notification item; invoking, using the one or more processors, a distributed cache invalidation system implemented only at the first data center; and providing, using the one or more processors, the unique identity of the mapped object relational depository item to be invalidated to the distributed cache invalidation system to invalidate all cached copies of the mapped object relational depository item at the first data center. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. An apparatus configured to invalidate items using a distributed cache mode at a first data center, the apparatus comprising:
-
one or more digital processors coupled to a non-transitory processor-readable storage device, with the one or more digital processors configured to execute one or more instructions included in the non-transitory processor-readable storage device to perform the following acts; writing replication data to a notifier table, with the replication data indicating updates made to tables of a database at a second data center that are replicated as updates to corresponding tables of a database at the first data center, with each row of the notifier table represented by a notification item holding metadata including the name of an updated first table of the database at the first data center, a timestamp indicating when an update occurred to the updated first table and a name/value pair, where the second data center is remote from the first data center; periodically polling the metadata to access notification items having a timestamp indicating that the age of the notification item is less than a maximum value; mapping, using the one or more processors, a first table name stored in a first accessed notification item to one or more mapped object relational repository items that use the distributed cache mode; constructing, using the one or more processors, a unique identity for a mapped object relational repository item using one or more name/value pairs stored in a first accessed notification item and representing the primary key column(s) of the first table name stored in the first accessed notification item; invoking, using the one or more processors, a distributed cache invalidation system implemented only at the first data center; and providing, using the one or more processors, the unique identity of the mapped object relational depository item to be invalidated to the distributed cache invalidation system to invalidate all cached copies of the mapped object relational depository item at the first data center. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A non-transitory computer-readable storage medium comprising encoded program code for execution by one or more computer processors on a computer to invalidate items using a distributed cache mode at a first data center, the program code when executed is executable to perform the acts of:
-
writing replication data to a notifier table, with the replication data indicating updates made to tables of a database at a second data center that are replicated as updates to corresponding tables of a database at the first data center, with each row of the notifier table represented by a notification item holding metadata including the name of an updated first table of the database at the first data center, a timestamp indicating when an update occurred to the updated first table and a name/value pair, where the second data center is remote from the first data center; periodically polling the metadata to access notification items having a timestamp indicating that the age of the notification item is less than a maximum value; mapping, using the one or more processors, a first table name stored in a first accessed notification item to one or more mapped object relational repository items that use the distributed cache mode; constructing, using the one or more processors, a unique identity for a mapped object relational repository item using one or more name/value pairs stored in a first accessed notification item and representing the primary key column(s) of the first table name stored in the first accessed notification item; invoking, using the one or more processors, a distributed cache invalidation system implemented only at the first data center; and providing, using the one or more processors, the unique identity of the mapped object relational depository item to be invalidated to the distributed cache invalidation system to invalidate all cached copies of the mapped object relational depository item at the first data center. - View Dependent Claims (16, 17, 18, 19, 20)
-
-
21. An apparatus configured to invalidate repository items using a distributed cache mode at a first data center, the apparatus comprising:
-
one or more digital processors coupled to a non-transitory processor-readable storage device, with the one or more digital processors configured to execute one or more instructions included in the non-transitory processor-readable storage device to perform the following acts; writing replication data to a notifier table, with the replication data indicating updates made to tables of a database at a second data center that are replicated as updates to corresponding tables of a database at the first data center, with each row of the notifier table represented by a notification item holding metadata including the name of an updated first table of the database at the first data center, a timestamp indicating when an update occurred to the updated first table and a identification of a row updated in the first table, where the second data center is remote from the first data center; periodically polling the metadata to access notification items having a timestamp indicating that the age of the notification item is less than a maximum value; invoking, using the one or more processors, a distributed cache invalidation system implemented only at the first data center; and providing, using the one or more processors, a unique identity of an invalid repository item, mapped to an updated row of the first table, to the distributed cache invalidation system to invalidate all cached copies of the invalid depository item at the first data center.
-
Specification