1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ACID特性の理解

Posted at

【ACID特性の理解】

業務内でもトランザクション処理に携わっています。
AWSの学習の際にもトランザクション処理を考慮して、サービスを選択する必要がありました。

ACID特性についての理解が乏しかったため学習しなおしました。

ACID特性

ACID特性は、DBMSでのトランザクション処理に必須とされている。

Atomicity (原子性)

トランザクション処理結果は、「すべて実行される」か「全く実行されない」のどちらかで終了。
中途半端な実行を許さない。許容しない。

Consistency (一貫性)

データベースの内容は、矛盾がない状態であること。
トランザクション処理結果に矛盾が生じてはいけない。

Isolation (隔離性)

複数トランザクションを同時に実行した場合、実行した処理結果の順番が一致すること。
排他処理をしっかりして相互に影響を及ぼさないように。

Durability (耐久性)

正常に終了したトランザクション処理の更新結果は、もし障害が発生してもデータベースから消失しないこと。
その場合の何らかの復旧手段が保証されている必要がある。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?