← Cloud computing

Core cloud services

Scaling and load balancing

扩展与负载均衡

Scaling means the system can handle more users. There are two ways: vertical scaling makes the server itself bigger, and horizontal scaling adds more servers that work together.

Vertical scaling has a limit, since one server cannot grow forever, and if it fails everything stops. Horizontal scaling is more flexible, and most large applications rely on it.

A load balancer receives requests and spreads them across the available servers, and stops sending requests to any server that does not respond, so users don't notice the failure.

With autoscaling, the cloud adds servers when load rises, such as when results are announced or during a sale, then removes them when it drops, so you only pay for what you need.

For horizontal scaling to work well, a server should not keep user data in its own memory but in a database or shared cache, so any server can serve any user.

Ask the AI assistant

Ask anything about this lesson and get a simple answer with the terms in Chinese, Arabic and English.

The AI assistant runs on Google's Gemini model and can make mistakes. Do not write personal information. Available to signed-in learners, up to 30 requests a day.

The content is simplified and covers the basics only.