Storage types

Where data lives · Part of Networking and infrastructure

Key idea

Practice

6 questions · about 3 min

Explained step by step

Volume

Storage is how a system keeps data, for a while or forever. A volume is a fixed amount of space on a disk. It's often used as a synonym for the disk, but it's not the same: a 2 TB disk can hold 2 volumes of 1 TB, and one volume can span several disks. It's like a building and its apartments: a building has several, and a big apartment can take up 2 floors.

File storage

File storage keeps data as files inside folders, in a tree, just like your computer. To find a file you need its full path, for example /photos/2024/trip.jpg. It's convenient, cheap and easy to understand. It's like a filing cabinet with drawers and folders: you know exactly where to look. Examples: Amazon EFS, Azure Files and Google Cloud Filestore.

Block storage

Block storage splits data into blocks and stores each one separately, with a unique identifier. Since every block has its id, the system can place it wherever is most convenient and, when reading, reassembles the blocks in order. It's fast, so it's used as the disk for servers and databases. It's like a numbered jigsaw puzzle: the pieces can be in any box, but you know how to put it together. Example: Amazon EBS.

Object storage

Object storage keeps data as objects in a repository, which can be spread across many networked machines. Each object has the file, extra data (like date or type) and an id to request it. There are no real folders: it's a huge, flat space. It's like a coat check with tickets: you hand in your coat, get a number and use that number to get it back. It's used for photos, videos and backups: Amazon S3, Azure Blob Storage or Google Cloud Storage.

Each storage type has its place. Block storage works as a fast disk for a server or a database. File storage works when several machines share folders. Object storage works for keeping millions of photos, videos or backups. NAS works for an office that shares files. HDFS works for analyzing giant files on a cluster. It's like choosing where to keep things at home: the fridge, the closet and the storage room are for different things.

NAS

A NAS (Network Attached Storage) is a storage device connected to the network that lets authorized users store and read data from a central place. It's flexible: if you need more space, you add disks. It's like an office library: everyone goes to the same place to find and leave books. It gives many of the benefits of a public cloud, but in your own building and with full control.

HDFS

HDFS (Hadoop Distributed File System) is a distributed file system designed to run on cheap, ordinary hardware. It stores huge files spread over a cluster's machines: each file is split into blocks of the same size and each block is copied to several machines. That makes it fault tolerant: if a machine dies, the block is on another. It's like spreading an encyclopedia's pages over 100 houses, with 3 copies of every page.

Terms in this lesson

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.

Key idea

Where data lives