Course contentsShow
← Cloud and Infrastructure
Lesson 124 of 2,9893. Storage PrimitivesFree lesson

Block Storage Overview

Understanding block storage concepts, how data is organized in fixed-size blocks, and when to use block storage.

Block Storage Overview

What you'll learn: How block storage organizes data into fixed-size chunks and when it's the right choice for your applications.

What is Block Storage?

Block storage divides data into fixed-size blocks (typically 512 bytes, 4KB, or larger), each with a unique address. Think of it like a large parking garage where each parking space is numbered and can hold exactly one car—no more, no less. Your operating system can directly access any block by its address, making reads and writes extremely fast.

Unlike file storage (which organizes data in folders) or object storage (which stores complete files with metadata), block storage gives you raw, unformatted storage volumes that behave like physical hard drives attached to your VM.

How Block Storage Works

When you attach a block storage volume to a virtual machine, the operating system sees it as a raw disk. You must format it with a filesystem (like ext4, NTFS, or XFS) before storing files. The OS manages how files map to blocks—you just interact with the low-level storage.

Block storage excels at random access patterns—jumping directly to any block without reading everything before it. This makes it ideal for databases, transactional systems, and VM boot disks.

When to Use Block Storage

Choose block storage when you need:

  • High performance: Low latency for databases (MySQL, PostgreSQL, MongoDB)
  • Boot volumes: Operating system disks for VMs
  • Transactional workloads: Applications requiring frequent, random read/write operations
  • Raw disk access: When applications need direct control over storage layout

Block storage typically offers the best IOPS (Input/Output Operations Per Second) among storage types, making it essential for performance-critical applications.

Key Takeaway: Block storage provides high-performance, low-latency access to fixed-size data blocks, making it the go-to choice for databases, VM boot disks, and any workload requiring fast random access.