Document database system using replicas of a stored document

US12373461B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12373461-B2
Application numberUS-202318394047-A
CountryUS
Kind codeB2
Filing dateDec 22, 2023
Priority dateDec 22, 2023
Publication dateJul 29, 2025
Grant dateJul 29, 2025

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A database management system for managing a database includes each document being stored as a number of replicas for accessibility and data preservation. The system includes: a processor; a network interface; and a memory comprising programming instructions for execution by the processor to implement a database management service, the service configured to maintain a primary replica of a document, a number of secondary replicas of the document, and another log-only replica storing a log of changes to the document rather than contents of the document. The service makes head reads to the primary replica as needed when a read request to the number of secondary replicas does not result in a quorum.

First claim

Opening claim text (preview).

What is claimed is: 1. A database management system for managing a database in which each document is stored as a plurality of replicas for accessibility and data preservation, the plurality of replicas being set to a total number of replicas to balance data resiliency and demand on resources, the database management system comprising: a processor; a network interface; and a memory comprising programming instructions for execution by the processor to implement a database management service, the database management system configured to perform operations of: operating the database management service to maintain the total number of replicas during normal operations including a primary replica of a document, a plurality of secondary replicas of the document, and another log-only replica storing a log of changes to the document over time rather than contents of the document; addressing write requests received during the normal operations to the primary replica to update data in the primary replica; recording changes to the data in the primary replica in the log-only replica; receiving a read request to read the contents of the document from a user terminal; in response to the read request, attempting to form a quorum by reading data from the plurality of secondary replicas, wherein forming the quorum for read requests includes receiving a response from (n−n/2) second replicas that have a same version of the document, wherein n is a total number of replicas configured to support the read request including the primary replica and the plurality of secondary replicas; determining whether at least (n−n/2) secondary replicas of the plurality of secondary replicas have responded to the read request and have the same version of the document; in response to determining that at least (n−n/2) secondary replicas of the plurality of secondary replicas have responded to the read request and have the same version of the document, providing the contents of the document to the user terminal; and in response to determining that at least (n−n/2) secondary replicas of the plurality of secondary replicas have not responded to the read request and do not have the same version of the document, providing the contents of the document to the user terminal without waiting for responses from a remainder of the plurality of secondary replicas based on responses being received from a threshold number of the plurality of secondary replicas that is less than (n−n/2). 2. The database management system of claim 1 , wherein the plurality of secondary replicas of the document is only two. 3. The database management system of claim 1 , wherein the database management service is configured to: make read calls to two secondary replicas of the plurality of secondary replicas; and if only one secondary replica of the two secondary replicas of the plurality of secondary replicas responds, determine a quorum by a head read to the primary replica. 4. The database management system of claim 1 , wherein the database management service is configured to: make read calls to two secondary replicas of the plurality of secondary replicas; and if neither secondary replica of the two secondary replicas responds, make a read call to the primary replica. 5. The database management system of claim 1 , wherein the database management service is configured to, in response to determining that a subset of the total number of replicas fails to form a quorum, declaring a gone exception. 6. The database management system of claim 1 , wherein the database management service is configured to: in response to a response being received from only one secondary replica, making a head read of the primary replica; and if a primary Log Serial Number (LSN) is equal to a secondary LSN, returning current contents of the document to a user based on the response from the one secondary replica and the primary replica. 7. The database management system of claim 1 , wherein the database management service is configured to: in response to a response being received from only one secondary replica, making a head read of the primary replica; and wait for the plurality of secondary replicas to converge before returning current contents of the document to a user based on the plurality of secondary replicas. 8. The database management system of claim 7 , wherein the database management service is configured to, in response to the plurality of secondary replicas not converging: making a read call to the primary replica; determining if a store LSN is equal to a QuorumAckLN; and responsive to the store LSN being equal to the QuorumAckLN, returning current contents of the document to the user based on a read of the one secondary replica and the primary replica. 9. The database management system of claim 8 , wherein the database management service is configured to, in response to the store LSN not equaling the QuorumAckLN, executing a barrier read of the plurality of secondary replicas. 10. The database management system of claim 9 , wherein the database management service is configured to, in response to the barrier read succeeding, returning current contents of the document to the user based on the barrier read. 11. The database management system of claim 9 , wherein the database management service is configured to, in response to the barrier read not resulting in formation of a quorum, declare a gone exception. 12. A database management system for managing a database in which each document is stored as a plurality of replicas for accessibility and data preservation, the database management system comprising: a processor; a network interface; and a memory comprising programming instructions for execution by the processor to implement a database management service, the database management system configured to perform operations of: operating the database management service to maintain a primary replica of a document, a plurality of secondary replicas of the document, and a log-only replica storing a log of changes to the document over time rather than contents of the document; addressing write requests received during normal operations to the primary replica to update data in the primary replica; recording changes to the data in the primary replica in the log-only replica; receiving a read request to read the contents of the document from a user terminal; in response to the read request, attempting to form a quorum by reading data from the plurality of secondary replicas, wherein forming the quorum for read requests includes receiving a response from (n−n/2) replicas that have a same version of the document, wherein n is a total number of replicas configured to support the read request including the primary replica and the plurality of secondary replicas; determining that a subset of the plurality of secondary replicas configured to support the read request, including at least a minimum threshold number of replicas, have responded to the read request and do not have a same version of the document and the subset of the plurality of secondary replicas configured to support the read request includes less than a number of replicas required to form the quorum; performing a read on the primary replica responsive to the subset of the plurality of secondary replicas configured to support the read request including less than the number of replicas required to form the quorum; determining that the primary replica has responded to the read; determining that the subset of the plurality of secondary replicas configured to support the read request and the primary replica satisfy the number of replicas required to form the quorum; and providing

Assignees

Inventors

Classifications

  • G06F16/27Primary

    Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12373461B2 cover?
A database management system for managing a database includes each document being stored as a number of replicas for accessibility and data preservation. The system includes: a processor; a network interface; and a memory comprising programming instructions for execution by the processor to implement a database management service, the service configured to maintain a primary replica of a docume…
Who is the assignee on this patent?
Microsoft Technology Licensing Llc
What technology area does this patent fall under?
Primary CPC classification G06F16/27. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Jul 29 2025 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 10 related publications on this page (citations in our corpus or others sharing the same primary CPC).