DEV Community


AWS DynamoDB: Single or Multitable

Warren Parad
Long time software architect, creating application security plug-ins for any software application with Authress. Talk to me about security in microservices or service authorization.
Originally published at wparad.Medium on ・1 min read

Always, always, always use a single table, if possible.

Only use multiple tables if:

  • Each of the tables have different numbers of GSI
  • Tables have local secondary indices
  • You want to manually control scaling
  • You have DDB Cognito/federate permission integration
  • Different tables have different permissions/owned by different services
  • Some of the data should be replicated between regions but other data not

Otherwise, you should merge tables without thinking about it.

Discussion (0)