Haystack – Facebook’s Photo Storage System

Haystack – Facebook’s Photo Storage System

Haystack is a custom object storage system developed by Facebook to store and serve billions of photos efficiently. It minimizes disk operations by caching metadata in memory and stores multiple photos per file to reduce overhead. The system balances high throughput, fault tolerance, simplicity, and cost efficiency, supporting large-scale photo sharing.