Questions tagged [amazon-dynamodb]

Amazon DynamoDB is a proprietary closed-source cloudnative key-value and document database optimized for horizontal scaling. It's a fully managed, multiregion, multimaster database with built-in security, backup and restore, and in-memory caching for internet-scale applications. DynamoDB is hosted on AWS, but also has a local deployment option just for development and functional testing. Used on amazon.com.

Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. It enables customers to offload the administrative burdens of operating and scaling distributed databases to AWS so they don’t have to worry about hardware provisioning, setup and configuration, replication, software patching, or cluster scaling.

With a few clicks in the AWS Management Console or by making use of the Amazon Dynamo DB API, customers can launch a new Amazon DynamoDB database table, scale up or down their request capacity for the table without downtime or performance degradation, and gain visibility into resource utilization and performance metrics.


Related tags :

13785 questions
48
votes
1 answer

Dynamodb vs Redis

We're using AWS, and considering to use DynamoDB or Redis on our new service. Below is our service's character Insert/Delete occur over between hundreds and thousands per minute, and will be larger later. We don't need quick search, only need to…
JoonT
  • 1,106
  • 1
  • 13
  • 29
48
votes
1 answer

What is the difference between partition key and sort key in amazon dynamodb?

With contrast to primary key, composite key and candidate key, what is a partition key and a sort key in dynamodb?
Samarth Juneja
  • 766
  • 1
  • 8
  • 21
47
votes
3 answers

Difference between AWS SDK DynamoDB client and DocumentClient?

I want to know the difference between the AWS SDK DynamoDB client and the DynamoDB DocumentClient? In which use case should we use the DynamoDB client over the DocumentClient? const dynamoClient = new AWS.DynamoDB.DocumentClient(); vs const…
47
votes
1 answer

DynamoDB update Item multi action

I am trying to update an item in DynamoDB table: var params = { TableName: 'User', Key: { id: 'b6cc8100-74e4-11e6-8e52-bbcb90cbdd26', }, UpdateExpression: 'ADD past_visits :inc, past_chats :inc', …
Hoang Nguyen Ba
  • 531
  • 1
  • 5
  • 7
47
votes
5 answers

Local DynamoDB: How to view contents of a table?

For listing all tables in a locally-installed instance of DynamoDB, I know that the command is: aws dynamodb list-tables --endpoint-url http://localhost:8000 Now, I want to view the contents of one of the tables. What is the command to do that?
yash
  • 471
  • 1
  • 4
  • 6
47
votes
8 answers

How do I promisify the AWS JavaScript SDK?

I want to use the aws-sdk in JavaScript using promises. Instead of the default callback style: dynamodb.getItem(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); //…
Martin Kretz
  • 1,523
  • 2
  • 13
  • 20
47
votes
4 answers

Amazon - DynamoDB Strong consistent reads, Are they latest and how?

In an attempt to use Dynamodb for one of projects, I have a doubt regarding the strong consistency model of dynamodb. From the FAQs Strongly Consistent Reads — in addition to eventual consistency, Amazon DynamoDB also gives you the flexibility…
46
votes
6 answers

How to use “IN” statement in FilterExpression using array - dynamodb

Checked AWS document but did not find any working example. Here is my attempt var params = { TableName: "User", IndexName:"a-b-index", KeyConditionExpression: "Country = :country and #s = :status", …
Nirmal Goswami
  • 814
  • 1
  • 7
  • 18
46
votes
1 answer

Is there a DynamoDB max partition size of 10GB for a single partition key value?

I've read lots of DynamoDB docs on designing partition keys and sort keys, but I think I must be missing something fundamental. If you have a bad partition key design, what happens when the data for a SINGLE partition key value exceeds 10GB? The…
Martin Bayly
  • 2,413
  • 3
  • 19
  • 19
46
votes
2 answers

Is it possible to do a conditional put or update in DynamoDB?

Let's say that I am storing records with following structure in DynamoDB: { "id": "57cf5b43-f9ec-4796-9de6-6a50f556cfd8", "created_at": "2015-09-18T13:27:00+12:00", "count": 3 } Now, is it possible to achieve the following in one…
Piotr Zurek
  • 2,800
  • 2
  • 24
  • 32
46
votes
6 answers

AWS DynamoDB - Pick a record/item randomly?

Any ideas how to pick an item/record randomly from a DynamoDB table? I don't believe there are any provisions for this in the API. I thought about maintaining a table of NumericId|MyOtherKey ("NumericIdTable") and then generating a random number…
ben
  • 1,448
  • 1
  • 17
  • 12
45
votes
2 answers

How to calculate Read Capacity Unit and Write Capacity Unit for DynamoDB

How to calculate RCU and WCU with the data given as: reading throughput of 32 GB/s and writing throughput of 16 GB/s.
pavikirthi
  • 1,569
  • 3
  • 17
  • 26
45
votes
4 answers

How to return the inserted item in dynamoDB

I am using nodeJS sdk to put the item to dynamoDB, The item is: { "eventId": date + '-' + eventName + '-' + eventPurpose, "eventName": eventName, "eventPurpose": eventPurpose, "eventDates": eventDates, "attendees": attendees } The…
45
votes
2 answers

DynamoDB create index on map or list type

I'm trying to add an index to an attribute inside of a map object in DynamoDB and can't seem to find a way to do so. Is this something that is supported or are indexes really only allowed on scalar values? The documentation around this seems to be…
BryceH
  • 2,740
  • 2
  • 21
  • 24
44
votes
1 answer

How to model one-to-one, one-to-many and many-to-many relationships in DynamoDB

What is the best way to model these relationships in DynamoDB? One-to-one relationships One-to-many relationships Many-to-many relationships
F_SO_K
  • 13,640
  • 5
  • 54
  • 83