What is Nostr?
Simon Willison /
npub13v9…w5eu
2024-02-10 16:24:10

Simon Willison on Nostr: S3 question: I'm considering a bucket design where every uploaded file is stored as: ...

S3 question: I'm considering a bucket design where every uploaded file is stored as:

2014-02-10/73WakrfVbNJBaAmhQtEeDv/original-filename.pdf

So that's /date/UUID/filename

This is to avoid clashes if a user uploads multiple files with the same name

Are there any downsides to having a unique "folder" prefix per file like this?

I'm specifically interested in non-obvious performance or cost implications

(Side question: would this be a problem on regular Linux file systems aside from S3?)
Author Public Key
npub13v97j0kknscwnf5pt87nsn7cxzxwfwl3dsu7ss8qsq7ukmqgwg8q84w5eu