Read Consistency, Operations, and Transactions
Continuing the momentum from the previous chapters of Part 2 of the book, which focuses on data modeling, let us maintain this thematic flow but pivot purely into the read aspect of DynamoDB for this chapter.
If you are used to Relational Database Management Systems (RDBMS) and have been following along with the earlier parts of this book, you know by now that NoSQL or DynamoDB works differently. It is about organizing data in a new way, and you need to be open-minded about learning this.
The main idea is to make your data model work well for the specific ways in which you want to get information. This means giving up some flexibility to make things work smoothly and consistently. Your workload, being read-heavy or write-heavy, is one of the aspects that decides how you should set up your data.
For example, in a read-heavy scenario, you want your model to work efficiently from the beginning. You don’t want the database...