Chapter 7. DynamoDB Best Practices

In this chapter, we will cover the following topics:

  • Using a standalone cache for frequently accessed items
  • Using the AWS ElastiCache for frequently accessed items
  • Compressing large data before storing it in DynamoDB
  • Using AWS S3 for storing large items
  • Catching DynamoDB errors
  • Performing auto-retries on DynamoDB errors
  • Performing atomic transactions on DynamoDB tables
  • Performing asynchronous requests to DynamoDB

Introduction

In the previous chapter, we discussed how to impose security constraints to secure the data. In this chapter, we are going to talk about DynamoDB implementation best practices, which will help you improve the performance while reducing the operation cost. So, let's get started.

Get DynamoDB Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.