Automatic consistency for database write forwarding
AssigneeAmazon Technologies, Inc.
InventorsSaraswathy Narayan, Gopi Krishna Attaluri, Dhruva Ranjan Chakrabarti, Atrayee Mullick, Damien Katz, Alexandre Olegovich Verbitski, Tengiz Kharatishvili, Yingjie He
Life of this patent
Estimating the term…
Abstract
Automatic consistency is implemented for forwarding writes in a database system. A read-only node may support both read and write requests to a database. The read only node may forward write requests to a read-write node. The read-only node may determine whether to include the forwarded requests in a version of the database for a read request automatically according to a consistency specified for a read request.
Claims20
A system, comprising:
- a plurality of nodes, respectively comprising at least one processor and a memory, that implement a database system;
- wherein one of the plurality of nodes implements a read replica node for the database system and another one of the plurality of nodes implements a primary node for the database system;
- wherein the read replica node is configured to:
- receive write request via a session established between a client of the database system and the read replica node that supports both read and write requests;
- send the write request to the primary node via another session established between the read replica and the primary node;
- wherein the primary node is configured to:
- perform the write request to database data;
- send an acknowledgement to the read replica node that the write request was performed;
- wherein the read replica node is further configured to:
- receive the acknowledgement from the read-write node that the write request to the database was performed;
- and
- automatically determine whether to use a version of the database that includes the write request when performing a read request received after the write request.
A method, comprising:
- receiving, at a read-only node for a database, a write request via a session established between a client of the database and the read-only node that supports both read and write requests;
- forwarding, by the read-only node, the write request to a read-write node for the database;
- performing, by the read-write node, the write request to the database;
- and
- automatically determining, by the read-only node, whether to use a version of the database that includes the write request when performing a read request received after the write request.
One or more non-transitory, computer-readable storage media, storing program instructions that when executed on or across one or more computing devices cause the one or more computing devices to implement:
- receiving, at a read-only node for a database, a write request via a session established between a client of the database and the read-only node that supports both read and write requests;
- forwarding, by the read-only node, the write request to a read-write node for the database;
- receiving, at the read-only node, an acknowledgement from the read-write node that the write request to the database was performed;
- and
- automatically determining, by the read-only node, whether to use a version of the database that includes the write request when performing a read request received after the write request.
Dependencies are inferred from the claim text.