×

Updating distributed shards without compromising on consistency

  • US 10,303,796 B2
  • Filed: 03/11/2015
  • Issued: 05/28/2019
  • Est. Priority Date: 01/09/2015
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising:

  • receiving, at a queue manager executed on one or more hardware processors, from a first client application, a first data change to data stored in a distributed database;

    receiving, at the queue manager, from a second client application different than the first client application, a second data change to the data stored in the distributed database;

    batching, by the queue manager, the first data change and the second data change in a communication to an index manager;

    reindexing, by the index manager, the distributed database based on the first data change and the second data change by creating a revised first shard index for a first shard in the distributed database and a revised second shard index for a second shard in the distributed database, wherein the revised first shard index is different than the revised second shard index, wherein the first shard is stored on a first device and the second shard is stored on a second device;

    instructing, by the index manager, the first shard to update a first shard index based on the revised first shard index;

    instructing, by the index manager, the second shard to update a second shard index based on the revised second shard index;

    receiving, at the index manager, at a first time, confirmation, from the first device, that the first shard index has been updated;

    receiving, at the index manager, at a second time, confirmation, from the second device, that the second shard index has been updated; and

    in response to both the receiving the confirmation that the first shard index has been updated and the confirmation that the second shard index has been updated, instructing, by the index manager, the first shard to commit the revised first shard index and the second shard to commit the revised second shard index.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×