Lably
Skip to content

Consistency (database systems)

Guarantee of validity following an update

  • 2 min read
  • 2 chapters

Related on Lably

Through Database, ACID and Relational database

In a distributed system, referencing CAP theorem, consistency can also be understood as after a successful write, update or delete of a Record, any read request immediately receives the latest value of the Record.

As an ACID guarantee

Consistency is one of the four guarantees that define ACID transactions; however, significant ambiguity exists about the nature of this guarantee. It is defined variously as:

  • The guarantee that database constraints are not violated, particularly once a transaction commits.
  • The guarantee that any transactions started in the future necessarily see the effects of other transactions committed in the past.

As these various definitions are not mutually exclusive, it is possible to design a system that guarantees "consistency" in every sense of the word, as most relational database management systems in common use today arguably do.

Sign in to keep reading

One more chapter is free with a Lably account.

More in Computing and communication