Reputation: 454
I am developing a service that use Amazon SQS service to store data. I would like to save the data into key, value structure so client thats going to consume the queue should send the key to get the data. Its possible to maintain this kind of structure or suggest any other appropriate Amazon service for following requirement.
Upvotes: 2
Views: 2953
Reputation: 2043
SQS will not work for several reasons:
For a kv store, you should use something like Amazon SimpleDB or DynamoDB.
Upvotes: 2
Reputation: 31
SQS is not right choice for this key pair storage...use dynamo DB with SQS...
Upvotes: 2
Reputation: 21
You can also combine SQS and S3, where you can store the url of each individual S3 object entry in the SQS queue as reference.
Upvotes: 0
Reputation: 7440
SQS is probably not the right tool for this use case. You cannot "retrieve messages by key", you can only "retrieve messages", the message you receive being entirely up to whatever SQS wants to give you.
I would take a look at DynamoDB or S3 depending on your requirements. DynamoDB for low-latency, predictable throughput of structured data and S3 if you don't have requirements for these features.
Upvotes: 2