当前位置:网站首页>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".
边栏推荐
- 大像素全景制作完成后,推广方式有哪些?
- QStyle platform style
- 2022 Hangzhou Electric Multi-School 1st Game
- Linux下常见的开源数据库,你知道几个?
- Android 面试题——如何徒手写一个非阻塞线程安全队列 ConcurrentLinkedQueue?
- [Paper Notes] MapReduce: Simplified Data Processing on Large Clusters
- 毕设-基于SSM房屋租赁管理系统
- burp安装及代理设置
- ffmpeg enumeration decoders, encoders analysis
- What is the difference between SAP ERP and ORACLE ERP?
猜你喜欢
![[Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]](/img/c9/fff226b6d33a773b59a0314a99a788.png)
[Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]

Flink 1.15.1 Cluster Construction (StandaloneSession)

告白数字化转型时代,时速云镌刻价值新起点

Walter talked little knowledge | "remote passthrough" that something

public static <T> List<T> asList(T... a) 原型是怎么回事?

沃谈小知识 |“远程透传”那点事儿

Initial solution of the structure

dmp (dump) dump file

A small tool to transfer files using QR code - QFileTrans 1.2.0.1

The second council meeting of the Dragon Lizard Community was successfully held!Director general election, 4 special consultants joined
随机推荐
【七夕节】浪漫七夕,代码传情。将爱意变成绚烂的立体场景,给她(他)一个惊喜!(送代码)
The usage of try...catch and finally in js
The second council meeting of the Dragon Lizard Community was successfully held!Director general election, 4 special consultants joined
测试薪资这么高?刚毕业就20K
【滤波跟踪】基于matlab无迹卡尔曼滤波惯性导航+DVL组合导航【含Matlab源码 2019期】
Android实战开发-Kotlin教程(入门篇-登录功能实现 3.3)
用Unity发布APP到Hololens2无坑教程
IJCAI2022 | DictBert: Pre-trained Language Models with Contrastive Learning for Dictionary Description Knowledge Augmentation
GC Gaode coordinate and Baidu coordinate conversion
Increasing leetcode - a daily topic 1403. The order of the boy sequence (greed)
龙蜥社区第二届理事大会圆满召开!理事换届选举、4 位特约顾问加入
沃谈小知识 |“远程透传”那点事儿
为什么pca分量没有关联
Use Unity to publish APP to Hololens2 without pit tutorial
YYGH-13-Customer Service Center
Use @Mapper to query the partition status of oracle and report an error
How to discover a valuable GameFi?
Intersection of Boolean Operations in SuperMap iDesktop.Net - Repairing Complex Models with Topological Errors
How to simulate the background API call scene, very detailed!
shell脚本:for循环与while循环