← Cloud computing

Core cloud services

Storage and databases

存储与数据库

The cloud offers several kinds of storage: object storage for huge amounts of files, images and video, block storage attached to a virtual machine, and file storage shared between several machines.

Object storage is cheap and holds enormous amounts, and every file has its own address, so websites use it for images, videos and backups.

Databases come in two main kinds: relational databases that organise data in linked tables queried with SQL, and non-relational (NoSQL) databases that are more flexible for data whose shape changes.

In the cloud you usually use a managed database: the provider handles installation, updates and backups, and you focus on the data. Supabase, which this site uses, is an example.

The choice depends on the data: accounts and orders suit a relational database, images suit object storage, and large volumes of event logs may suit a non-relational database.

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.