当前位置:网站首页>Acid (ACID) Base (BASE) Principles for Database Design
Acid (ACID) Base (BASE) Principles for Database Design
2022-08-05 03:31:00 【Hao Kai】
Acid (ACID) Base (BASE) Principles for Database Design
Transactions
A transaction is a series of operations performed as a single logical unit of work, either completely or not at all.
Let's take a first look at the state machine model of a transaction.
The picture shows the five phases of a transaction
Transactions must follow ACID principles.
ACID Acid Principle
ACID is a principle that must be followed in order to ensure that data is written reliably during the transaction execution process of a relational database.
Atomicity
The operations of a transaction are either all or none.
Consistency Consistency
The integrity constraints of the database are not violated before and after the transaction begins; however, temporary violations are allowed during execution.
Isolation Isolation
Transactions do not interfere with each other, one transaction cannot see data changes in the middle of another transaction's execution, nor can it interact with another transaction.
Durability
After the transaction ends, the changes will be written to the database and will not be rolled back, even if the database crashes and restarts.
RDBMS In order to achieve high consistency as mentioned in the above four points, there is no emphasis on its scalability.
BASE BASE Principle
Basically Availability
The most basic requirement of a database is availability.
Soft-state
Soft-state can be thought of as an intermediate state between stateless and stateful.
Stateless means that there is no contextual connection between multiple requests, which will help simplify, expand and restore the database.
stateful refers to the connection between multiple request contexts connected.
Soft-state is generally regarded as the server maintains the context within a limited resource (usually time), and when it expires, the state is discarded and returned to the default state.
Eventually Consistency
Allows temporary data inconsistency due to delays, etc., as long as the data is eventually consistent.
Basically Availability to pay attention to.It is probably a problem of translation. The "Basic" here is translated into "basic", and the explanation closer to the original meaning is probably "fundamentally".
边栏推荐
- Walter talked little knowledge | "remote passthrough" that something
- 21 Days Learning Challenge (2) Use of Graphical Device Trees
- 调用阿里云oss和sms服务
- 大佬们,我注意到mysql cdc connector有参数scan.incremental.sna
- Queue Topic: Recent Requests
- 21天学习挑战赛(2)图解设备树的使用
- 基于生长的棋盘格角点检测方法
- Growth-based checkerboard corner detection method
- 905. 区间选点
- Industry Status?Why do Internet companies prefer to spend 20k to recruit people rather than raise their salary to retain old employees~
猜你喜欢
Intersection of Boolean Operations in SuperMap iDesktop.Net - Repairing Complex Models with Topological Errors
10 years of testing experience, worthless in the face of the biological age of 35
【七夕节】浪漫七夕,代码传情。将爱意变成绚烂的立体场景,给她(他)一个惊喜!(送代码)
Walter talked little knowledge | "remote passthrough" that something
Industry Status?Why do Internet companies prefer to spend 20k to recruit people rather than raise their salary to retain old employees~
Confessing the era of digital transformation, Speed Cloud engraves a new starting point for value
通过模拟Vite一起深入其工作原理
Shell script: for loop and the while loop
基于生长的棋盘格角点检测方法
[Paper Notes] MapReduce: Simplified Data Processing on Large Clusters
随机推荐
[Software testing] unittest framework for automated testing
Flink 1.15.1 Cluster Construction (StandaloneSession)
Thinking (88): Use protobuf custom options for multi-version management of data
QStyle platform style
Why is the pca component not associated
Getting Started with Kubernetes Networking
After the large pixel panorama is completed, what are the promotion methods?
Package zip is not available, but is referred to by another package.
CPDA|How Operators Learn Data Analysis (SQL) from Negative Foundations
10 years of testing experience, worthless in the face of the biological age of 35
2022.8.4-----leetcode.1403
从“能用”到“好用” 国产软件自主可控持续推进
2022-08-04 第六小组 瞒春 学习笔记
Increasing leetcode - a daily topic 1403. The order of the boy sequence (greed)
2022 High-level installation, maintenance, and removal of exam questions mock exam question bank and online mock exam
Use @Mapper to query the partition status of oracle and report an error
2022高处安装、维护、拆除考试题模拟考试题库及在线模拟考试
Slapped in the face: there are so many testers in a certain department of byte
How to find all fields with empty data in sql
今年七夕,「情蔬」比礼物更有爱