procrastinationmonkey
procrastinationmonkey

Reputation: 381

What are pros and cons of using AWS S3 vs Cassandra as a image store?

Which DB is better for storing images in a photo-sharing application?

Upvotes: 5

Views: 2748

Answers (3)

Kris
Kris

Reputation: 61

You can store photos in Amazon S3, but photo's metadata in someother database.

Amazon S3 well suited for any objects for large size as well.

Upvotes: 0

Erick Ramirez
Erick Ramirez

Reputation: 16353

We don't recommend storing images directly in Cassandra. Most companies (they're household names you'd know very well and likely using their services) store images/videos/media on an object store like AWS S3 and Google Cloud Store.

Only the metadata of the media are stored in Cassandra for very fast retrieval -- S3 URL/URI, user info, media info, etc.

The advantage of using Cassandra is that it can be deployed to a hybrid combination of public clouds so you're not tied to one vendor. Being able to distribute your Cassandra nodes across clouds means that you can get as close as possible to your users. Cheers!

Upvotes: 3

Jay
Jay

Reputation: 335

AWS S3 is an object storage service that works very well for unstructured data. It offers infinite store where the size of an object is restricted to 5TB. S3 is suitable for storing large objects.

DynamoDB is a NoSQL, low latency database which is suitable for semi-structured data. DynamoDB uses cases are usually where we want to store large number of small records and have a millisecond latency, DynamoDB record size limit is 400KB

For a photosharing application, you need Both S3 and DynamoDB. S3 acts as a storage, DynamoDB is your Database which lists all galleries, files, timestamps, captions, users etc

Upvotes: 0

Related Questions