Book Image

DynamoDB Applied Design Patterns

By : Uchit Hamendra Vyas
Book Image

DynamoDB Applied Design Patterns

By: Uchit Hamendra Vyas

Overview of this book

Table of Contents (17 chapters)
DynamoDB Applied Design Patterns
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Data format


DynamoDB uses the JavaScript Object Notation (JSON) format to send the request to, and receive the response from, the DynamoDB endpoint. One important rule of thumb is that the DynamoDB endpoint gets this JSON request and parses it into its native format (which is not JSON). During this time, some data loss might occur because of compatibility issues. For example, JSON supports the date data type, but DynamoDB does not support it. So the JSON request should not have a DynamoDB incompatible data type. In order to avoid this situation, DynamoDB has already listed the allowed data types, and they are as follows:

  • S: This denotes the String data type to store strings such as "Kuppu"

  • N: This denotes the Number data type to store numbers such as 2014

  • B: This denotes the Binary data type

  • SS: This denotes the StringSet data type to store string sets such as {"Uchit", "Vyas"}

  • NS: This denotes the NumberSet data type to store number sets such as {2013, 2014}

  • BS: This denotes the BinarySet...