DynamoDB
DynamoDB is a very important part of the AWS ecosystem; it typically serves as the backend database for numerous cloud native applications. DynamoDB is a distributed high-performance database hosted in the cloud, which is offered as a service by AWS.
DynamoDB components
Before we discuss how to write code that can interact with DynamoDB, we will need to first cover some important concepts regarding the database. DynamoDB consists of the following components:
- Tables: Like a typical database engine, DynamoDB stores data in a collection of tables. For example, in our MyEvents application, we can have an
events
table that would store events information such as concert names and start dates. Similarly, we can also have abookings
table to host booking information for our users. We can also have ausers
table to store our users information. - Items: Items are nothing more than the rows of the DynamoDB tables. Information inside an item is known as attributes. If we take the
events
table...