DynamoDB is an AWS NoSQL database. It's a managed AWS service that allows you to store and retrieve data at scale without managing or maintaining a database server.
You need to understand a few key concepts about DynamoDB before digging into its integration with AWS Lambda:
- Structure and Design:
- Table: This is a set of items (rows) where each item is a set of attributes (columns) and values.
- Partition key: This is also called a hash key. It's a unique ID used by DynamoDB to determine the partition (physical location) in which the item can be found (read operation) or will be stored (write operation). A sort key might be used to order/sort items in the same partition.
- Index: Similar to relational databases, indexes are used to speed up queries. In DynamoDB, two types of indexes can be created:
- Global Secondary Index (GSI)
- Local Secondary Index...