System Design · Case Studies

Case Study: Cloud Storage

Design, trade-offs, and alternatives for a cloud storage service at scale.

01
Chapter One

Problem Statement

Problem Statement
Coming Soon
Problem Statement
This chapter covers cloud storage requirements: petabyte-scale storage, durability SLA (eleven nines), file size range, global access.
📋 Chapter 1 — Summary
  • Summary content pending.
02
Chapter Two

Questions to Ask

Questions to Ask
Coming Soon
Questions to Ask
This chapter covers key questions: block vs object storage, chunking strategy, deduplication, versioning, access control.
📋 Chapter 2 — Summary
  • Summary content pending.
03
Chapter Three

Naive Design

Naive Design
Coming Soon
Naive Design
This chapter covers storing files as BLOBs in a relational database and why it fails at scale.
📋 Chapter 3 — Summary
  • Summary content pending.
04
Chapter Four

Refined Design

Refined Design
Coming Soon
Refined Design
This chapter covers metadata service + chunk storage service with erasure coding for durability and resumable uploads.
📋 Chapter 4 — Summary
  • Summary content pending.
05
Chapter Five

Alternatives

Alternatives
Coming Soon
Alternatives
This chapter covers two approaches: replication (3x copies) vs erasure coding — trade-offs in storage cost and rebuild speed.
📋 Chapter 5 — Summary
  • Summary content pending.
06
Chapter Six

Real Companies

Real Companies
Coming Soon
Real Companies
This chapter covers how Amazon S3, Google GCS, and Dropbox achieve eleven nines durability with different architectures.
📋 Chapter 6 — Summary
  • Summary content pending.
07
Chapter Seven

Best Practices

Best Practices
Coming Soon
Best Practices
This chapter covers content-addressed storage for dedup, pre-signed URLs for direct uploads, chunked multipart upload.
📋 Chapter 7 — Summary
  • Summary content pending.
08
Chapter Eight

What Could Go Wrong

What Could Go Wrong
Coming Soon
What Could Go Wrong
This chapter covers metadata service as SPOF, silent data corruption without checksums, cold data becoming inaccessible.
📋 Chapter 8 — Summary
  • Summary content pending.