当前位置:网站首页>Distributed basic concepts
Distributed basic concepts
2022-06-24 21:14:00 【gaoZhuanMing】
1. Extensibility
(1) Horizontal expansion (horizontal scaling): Change the number of resources .
- Horizontal allocation of resources is also known as scaling out (scaling out).
- The horizontal release of resources also becomes inward expansion (scaling in).
(2) Vertical expansion (vertical scaling): Change the capacity of resources .
- Allocating larger capacity resources is also called scaling up (scaling up).
- Allocating resources with smaller capacity is also called scaling down (scaling down).
2. CAP theory
A distributed system can only satisfy the consistency at most (Consistency)、 Usability (Availability) And partition fault tolerance (Partition tolerance) Two of these three .
notes : Consistency here refers to strong consistency .
3. BASE theory
Basic available (Basically Available), Soft state (Soft state), Final consistency (Eventually consistent).
- Basic available : Even if the system has an unpredictable failure , But it still works , But compared with a normal system , There may be a loss of response time 、 Loss of function, etc ;
- Soft state : Allow data in the system to have intermediate states , It is considered that this state does not affect the overall availability of the system , That is, data delay between multiple data copies is allowed .
- Final consistency : The system can ensure that there is no other new update operation , The data will eventually reach a consistent state .
4. Quorum Arbitration agreement
Set the total number of copies of data to N N N, The number of copies whose write operation is confirmed to be accepted is W W W, The number of copies to be read for a successful read operation is R R R.
- Strong consistency : R + W > N R+W>N R+W>N, To ensure that the read and write operations on the replica will produce an intersection , So that you can read the latest version ;
- Weak consistency : R + W ≤ N R+W \le N R+W≤N, If the read and write operations do not produce an intersection , You might read dirty data ;
5. Microservice architecture
Microservice architecture is an architecture pattern , It promotes the division of a single application into a small set of services , Each service runs in a separate process ; Services communicate with each other through lightweight communication mechanism , Each service is built around a specific business , And can be developed independently 、 Deployment and expansion . For a specific service , Should be based on the business context , Choose the right language 、 Tools to build it , Each service can also use a different data store .边栏推荐
- A/b test helps the growth of game business
- How to enhance influence
- Read all text from stdin to a string
- Undo log and redo log must be clear this time
- Web automation: web control interaction / multi window processing / Web page frame
- PHP script calls command to get real-time output
- Curl command
- Reflect package
- Basic database syntax learning
- Berkeley, MIT, Cambridge, deepmind and other industry leaders' online lectures: towards safe, reliable and controllable AI
猜你喜欢

The Google File System (GFS) learning notes

DHCP operation

Interpreter mode -- formulas for dating

What are the problems with traditional IO? Why is zero copy introduced?

Memo mode - game archiving

Difference between map and object

Nifi fast authentication configuration

Web automation: summary of special scenario processing methods

How Fiddler works

Variable setting in postman
随机推荐
Responsibility chain mode -- through interview
Poj1061 frog dating (extended Euclid)
Steps of JMeter performance test
JMeter parameterization
大厂出海,败于“姿态”
Static routing job supplement
Mr. Hu Bo, CIO of weiduomei, a scientific innovator: digitalization is a bloodless revolution, and the correct answer lies in the field of business
Procedural life: a few things you should know when entering the workplace
在Dialog中使用透明的【X】叉叉按钮图片
data link layer
The difference between RPC and restful
Builder mode -- Master asked me to refine pills
科创人·味多美CIO胡博:数字化是不流血的革命,正确答案藏在业务的田间地头
等保备案是等保测评吗?两者是什么关系?
I just purchased a MySQL database and prompted that there are already instances. The console login instance needs to provide a database account. How do I know the database account.
Capture the whole process of accessing web pages through Wireshark
Enjoy yuan mode -- a large number of flying dragons
Reflection - class object function - get method (case)
maptalks:数据归一化处理与分层设色图层加载
What does virtualization mean? What technologies are included? What is the difference with private cloud?