Detailed explanation of the difference between horizontal expansion and vertical expansion

You have an API server with millions of requests per day. Now to improve performance:

1

Horizontal expansion: Add a few more API servers to serve together.
Vertical expansion: Replace the API server with a better-performing machine.
Horizontal expansion is also called horizontal expansion, which uses more nodes to support a larger number of requests. For example, thousands of ants complete a handling task.
Vertical expansion is also called vertical expansion. The ability to expand a point supports larger requests. Such as using the ability of one person, such as Spider-Man, forcing the train to stop

2

Vertical expansion: improve the performance of a single hardware under the premise of the same number.
Horizontal expansion: improve the performance of the cluster by increasing the number.
When the hardware performance is relatively low, the vertical is cheaper than the horizontal 2T<2 1T
in the hardware performance is relatively high When the horizontal direction is cheaper than the vertical direction, 16T> 2
8T

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_41536934/article/details/114333932