[erlang-questions] Storing images
Mon May 19 10:57:12 CEST 2014
The access pattern for images and it’s meta-data is different.
They have different TTL properties and caching hierarchy.
Therefore, storing images and its meta-data inside single record is not good idea.
You are absolutely right that distributed binary storage for images shall be separated from metadata storage.
The best solution depends on many factors including your hosting requirements, CDN vendors, costs, etc...
I would use Riak for meta-data but AWS S3 + CloudFront for binary content.
On 19 May 2014, at 06:52, Lloyd R. Prentice <lloyd@REDACTED> wrote:
> Suppose I anticipate unknown thousands of records, each containing meta-data associated with an image. Each image averages, say, 100KB. Retrieval is by key and queries on the meta data. Retrieval predominates over insert. Reliability and speed of access are high on the requirements list.
> I'm considering Riak. But...
> - Would it be best practice to store the each image in its associated record or would it be better to store the images separately in, say, directories or in a separate distributed file system such as leoFS?
> - Is there a better solution altogether?
> Many thanks,
> Sent from my iPad
> erlang-questions mailing list
More information about the erlang-questions