当前位置:网站首页>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 .边栏推荐
- Adding subscribers to a list using mailchimp's API V3
- opds sql组件能不能将流程参数通过上下文传给下一个组件
- Combination mode -- stock speculation has been cut into leeks? Come and try this investment strategy!
- Shrimp skin test surface treated
- JMeter basic learning records
- Open function
- [performance tuning basics] performance tuning standards
- Leetcode(146)——LRU 缓存
- Handling of garbled JMeter response data - three solutions
- Basic properties and ergodicity of binary tree
猜你喜欢

Pytest test framework II

Berkeley, MIT, Cambridge, deepmind and other industry leaders' online lectures: towards safe, reliable and controllable AI

Builder mode -- Master asked me to refine pills

What does virtualization mean? What technologies are included? What is the difference with private cloud?

Static routing job
![Use the transparent [x] cross button image in the dialog](/img/0c/2be7bc7f20b581a2cc745d9cabe9ff.jpg)
Use the transparent [x] cross button image in the dialog

Summary of message protocol problems

Summary of idea practical skills: how to rename a project or module to completely solve all the problems you encounter that do not work. It is suggested that the five-star collection be your daughter
Talking about the range of data that MySQL update will lock

Nifi quick installation (stand-alone / cluster)
随机推荐
Background of master data construction
Introduction to interval DP
Pytest testing framework
海泰前沿技术|隐私计算技术在医疗数据保护中的应用
Leetcode (146) - LRU cache
Php-pdo parameter binding problem
PIXIV Gizmo
Format method and parse method of dateformat class
Record a deletion bash_ Profile file
Bridging mode -- law firm
Network flow 24 questions (round table questions)
PHP script calls command to get real-time output
Talking about the range of data that MySQL update will lock
Batch capitalization of MySQL table names
Requests requests for web page garbled code resolution
虚拟货币7个月蒸发2万亿美元,“马斯克们”终结15万人暴富梦
Web automation: summary of special scenario processing methods
Go coding specification
How to apply agile development ideas to other work
Is the waiting insurance record a waiting insurance evaluation? What is the relationship between the two?