I am trying to store a bunch of network measurements in DynamoDB and I am not sure of the correct partition key and range key. My data will look like this:
{
count: 33,
total: 45,
timestamp: 21231133,
data: {
key1: value1,
key2: value2,
key3: value3,
key4: value4,
key5: value5}
}
I need to be able to retrieve data that has a timestamp between timestamp1 and timestamp2. I will be storing the data every second, and retrieving at a slower interval (maybe every 30 seconds).
I need to avoid hot-partitions and still be able to quickly query the data. I would not want to do a table scan.
Thanks,