notes .pdf
notes .pdf
1
Contents
Click to edit Master title style
• CAP
• No SQL
• ACID
• BASE
2 2
CAP Theorem
Click to edit Master title style
• The CAP Theorem is a fundamental theorem in distributed systems that
states any distributed system can have at most two of the following
three properties.
• Consistency (C)
• Availability (A)
• Partition tolerance (P)
3 3
CAP Theorem
Click cont.. title style
to edit Master
4 4
CAP Theorem
Click cont..title style
to edit Master
• Availability:
• A read/write request will always be acknowledged in the form of a
success or a failure.
5 5
CAP to
Click Theorem cont..
edit Master title style
• Partition tolerance:
• The database system can tolerate communication outages that split
the cluster into multiple partition and can still service read/write
requests.
6 6
Click to edit Master
CAP Theorem cont.. title style
7 7
ACIDto edit Master title style
Click
8 8
ACIDtoAtomicity
Click edit Master title style
9 9
ACID-
Click to Consistency
edit Master title style
11
11
ACID-
Click to Durability
edit Master title style
• Durability ensures that the results of an operation are
permanent. In other words, once a transaction has been
committed, it cannot be rolled back. This is irrespective
of any system failure.
1.A user updates a record as part of a transaction.
2.The database successfully updates the record.
3.Right after this update, a power failure occurs. The
database maintains its state while there is no power.
4.The power is resumed.
5.The database serves the record as per last update
when requested by the user.
12
12
Soft to
Click State
edit Master title style
13
13