📜  数据库水平和垂直扩展的区别

📅  最后修改于: 2021-09-13 03:02:57             🧑  作者: Mango

缩放:
它可以概括为改变事物的大小,例如扩展业务。它甚至在数据库的上下文中也是一样的。

有两种类型的缩放:

1. 水平缩放:
水平扩展意味着我们通过在现有资源中添加额外的机器来扩展。

水平缩放

2. 垂直缩放:
垂直扩展意味着我们通过向现有机器添加更多计算能力(如 CPU 和 RAM)来扩展。

垂直缩放

数据库水平和垂直扩展的区别:

Horizontal scaling

Vertical scaling

Horizontal scaling is difficult to implement. Vertical scaling easy to implement.
In Horizontal scaling the databases at each node or site only contains part of the data. Vertical scaling means we scale by adding more computing power like CPU and RAM to an existing machine.
Scaling can be done with less downtime. Vertical scaling involve more downtime.
More concurrency. Less concurrency when compared to Horizontal scaling.
Data sharing is complex. Data sharing is easy.
Horizontal scaling is more reliable. Less reliable when compared to Horizontal scaling.
Horizontal scaling is very costly. Vertical scaling is cheaper.
It is also known as scale out. It is also known as scale up.
More easy to upgrade in the future. Upgradation in future is not so easy.
Consumes more power. Consume less power.