Storing JSON as string in DynamoDB vs List/Map types

Viewed 37755

I am using DynamoDB for storage. I need to store a Java object in one attribute within a table. I see two approaches:

  1. One to convert the object to JSON using Jackson on the client side, and then store the JSON string in the attribute.
  2. Another way is to use DynamoDB List/Map types to store my object.

What are the pros and cons of each (In terms of item size, flexibility in Dynamo DB queries)?

1 Answers
Related