Please enable JavaScript.
Coggle requires JavaScript to display documents.
DynamoDB (Streams (Options (Keys only—only the key attributes of the…
DynamoDB
Streams
-
-
-
guarantees
-
For each item that is modified in a DynamoDB table, the stream records appear in the same sequence as the actual modifications to the item.
Options
-
New image—the entire item, as it appears after it was modified
Old image—the entire item, as it appeared before it was modified
-
Stream records are organized into groups, or shards
-
-
-
Operations
-
-
Query
-
-
-
-
-
Query operation allows you to limit the number of items that it returns in the result (Limit parameter)
Scan
-
-
-
-
-
-
-
Scan can parallels data fetching by dividing a table on segments (see Segment, TotalSegments)
UpdateItem
-
replaces the entire item, rather than replacing individual attributes
behaves like an "upsert" operation: The item is updated if it exists in the table, but if not, a new item is added (inserted)
supports conditional writes, where the operation succeeds only if a specific ConditionExpression evaluates to true
supports atomic counters, or attributes of type Number that can be incremented or decremented
consists of one or more clauses. Each clause begins with a SET, REMOVE, ADD or DELETE keyword
-
DeleteItem
delete data from a table, one item at a time, by primary key
supports conditional writes, where the operation succeeds only if a specific ConditionExpression evaluates to true
-
-
-
-
-
Secondary indexes
Global
-
-
-
"global" because queries on the index can span all of the data in the base table, across all partitions
-
-
-
-
when you write an item to the base table, the data types for attributes must match the index key schema's data types.
During the backfilling phase (of index creation), you cannot add or delete other indexes on the table.
Local
-
-
"local" in the sense that every partition of a local secondary index is scoped to a base table partition that has the same partition key value
-
When you query a local secondary index, the query can also retrieve attributes that are not projected into the index
Limitations
For each partition key value, the total size of all indexed items must be 10 GB or less.
You cannot add a local secondary index to an existing table, nor can you delete any local secondary indexes that currently exist
-
-
-
You can project a total of up to 20 attributes into all of a table's local and global secondary indexes.
-
Requirements
-
Dynamo is built for an infrastructure within a single administrative domain where all nodes are assumed to be trusted
-
-
Partitions
-
-
-
Limits
3,000 read capacity units
or 1,000 write capacity units
-
Types
-
Document
List
FavoriteThings: ["Cookies", "Coffee", 3.14159]
-
-
-
Set
String set
["Black", "Green" ,"Red"]
-
Binary set
["U3Vubnk=", "UmFpbnk=", "U25vd3k="]
-
Time To Live
allows you to define when items in a table expire so that they can be automatically deleted from the database
-
-
-
Dynamo can be characterized as a zero-hop DHT, where each node maintains enough routing information locally to route a request to the appropriate node directly