2 ms·
Not enough information: what are access patterns like? How often do we add new files? Can we tolerate a disk read most of the time? Are we going to see zipf
by patio11 16y ago
Not enough information: what are access patterns like? How often do we add new files? Can we tolerate a disk read most of the time? Are we going to see zipf distributed popularity or even popularity?
BCC has happily chugged through a few million GIFs and PDFs using nested directories, on a single VPS. (Low concurrency requirements and all files being accessed less than ten times in a lifetime makes it easy.)
Anyhow, so the simplest thing that works, rearchitecture when you become Facebook. (You probably won't need to. But spend your resources to achieve success, nit to guard against the problems of successful people.)