File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Spring Boot AWS DynamoDB
2
+
3
+ DynamoDB is a Document style database. In other words semi-structured database. It has the capability
4
+ to scale depending upon the size of data, And it supports 35 levels of nesting on data. Data is stored
5
+ in solid state drives, and is spread across 2 geographical datacenter so data can never be lost.
6
+
7
+ DynamoDB supports two types of primary key attributes
8
+
9
+ single attribute - Hash Key/Partition Key
10
+ this hash key is used to calculate the hash value which is then used to determine the physical
11
+ location where the data will be stored
12
+ no two keys can have same values in single attribute
13
+
14
+ composite attribute - Hash Key + Range Key/Sort Key
15
+ this is a combination of hash key and a range key.
16
+ two items can have same hash key but different range key
17
+
18
+ You can use DynamoDB directly from the cloud environment or you can use the dynamodb local a downloadable version provided by amazon
19
+
20
+ In this example, we are going to directly connect and work with the cloud version
21
+
22
+ DynamoDBMapper is a Object mapper for domain-object interaction with DynamoDB.
23
+
24
+ DynamoDBSaveExpression - you can use this to adding multiple expressions for your need.
25
+ For example, you may want to save only if an attribute has a particular value.
26
+
27
+ ExpectedValue - it represent a condition to be compared with an attribute value
You can’t perform that action at this time.
0 commit comments