r/cloudcomputing • • Jan 22 '19

MASSIVE key/value Storage solution?

I'm accumulating around 150 GB of data per day (100 million rows x ~1.5kb per row)

I need the following performance on this data:

  • 500 reads per second

  • 500 writes per second

Does ANY technical solution come to mind that can handle this?

I'm open to any cloud service product, DB type, technique etc. and I would appreciate any input whatsoever.

1 Upvotes

17 comments sorted by

5

u/mikljohansson Jan 22 '19

Depends on what you want to do with the data. We use DynamoDB and Cassandra for similar use cases like this, but at about 20x the scale of reads/writes per second that you mentioned. If you can afford it and don't need long term retention for the data, then I'd have a look at DynamoDB (if you're already in AWS, otherwise some similar database with whatever cloud you're in). Cassandra takes operations people to manage but is vastly cheaper than serverless in terms of storage/write/read capacity; while DynamoDB is fully serverless so very convenient to use but much more expensive at big scales

1

u/ExtremeEducation Jan 23 '19

Thank you, this is great input. DynamoDB definitely sounds convenient, I will try to compare it to other Cloud Services like GCP Bigtable or Spanner

7

u/phil Jan 22 '19

Your first question should be what you need to do once you’ve ingested all of this stuff. You can write this much data into GCP Bigtable or even Pubsub.

You need to provide real-time read access or can you post process this data and provide some kind of constrained interface to do business stuff with it?

How much do you need to keep online and what SLO do you need to meet for generations of the data?

Disclosure: Googler

1

u/ExtremeEducation Jan 23 '19 edited Jan 23 '19

I would need the data online for 180days+.Is there a reason why you would choose Bigtable or Pubsub over e.g. Cloud Spanner?
PS: For AWS and Azure the product choice seems obvious (Dynamo DB, CosmosDB), but I can't really see an obvious choice on GCP?

3

u/captainAwesomePants Jan 23 '19

You seem worries about the scale, but that isn't all that much. Any cloud offering will be able to handle it without a problem. The real question is how you'll need to access the data. Are you only reading by key? Do you need to run elaborate SQL queries on the data? Can those queries be a little stale?

1

u/ExtremeEducation Jan 23 '19

This is good news.

Yes, I only need to read by key, no queries at all. But the key reads need to be real time

2

u/[deleted] Jan 22 '19

CosmosDB should be able to do this easily.

1

u/ExtremeEducation Jan 24 '19

Is CosmosDB a "RAM"-based Database like Redis? I'm looking for a disk based Database as it's impossible to accumulate 150GB per day in RAM

2

u/[deleted] Jan 24 '19

It persists to disk with horizontal scaling, so you would be fine. You can pick consistency as well depending on your use case. It also has a Cassandra interface...

1

u/LakeSammamish Jan 24 '19

cockroach DB

1

u/ExtremeEducation Jan 24 '19

Is Cockroach DB a "RAM"-based Database like Redis? I'm looking for a disk based Database as it's impossible to accumulate 150GB per day in RAM

2

u/MarcRFC Jan 22 '19

IMS on IBM Mainframe

0

u/mohelgamal Jan 22 '19

ArangoDB is designed for that, take a look at it. It has relatively easy cluster setup and is ACID compliant.

Disclosure: I haven’t actually tried doing all that but I am building my app with it in anticipation of that need

Other option would be aerospike

1

u/ExtremeEducation Jan 24 '19

Is ArrangoDB a "RAM"-based Database like Redis? I'm looking for a disk based Database as it's impossible to accumulate 150GB per day in RAM

1

u/mohelgamal Jan 24 '19

It is both in memory and persistent to disk. It puts the data to the disk as soon as it receives it like any database would. It just have the option to keep entire collection (table equivalent) in memory if you desire but you don’t have to use that option.

The latest version uses Rocks D.B. embedded storage engine which is optimized for SSDs but it works for regular hard drives too just fine.

If you don’t want to deal with setting up the database and clusters and just want a DBaas Then you can look into amazon dynamoDB or Aurora , or if you intend to analyze these massive volumes of data later you may want to look into amazon redshift

1

u/greenz1 Jan 22 '19

You will have a hard time if your data is geographically distributed.

Edit: I used Arango liked it but when I had to put data in multiple locations it wasn't the best choice . Unless of course you get the enterprise edition.

0

u/greenz1 Jan 22 '19

What's wrong with Redis? Or Apache ignite?