stackstash

DynamoDB vs MongoDB

DynamoDB and MongoDB are free.

AWS key-value and document database that scales without a server to patch.

Try it

Pros of DynamoDB

  • No servers to run

  • Scales with traffic

  • Fits the rest of AWS

Cons of DynamoDB

  • Awkward when you need joins

  • Easy to get the data model wrong

  • Tied to AWS

A document database that stores records as JSON-like documents instead of table rows.

Try it

Pros of MongoDB

  • Add fields without a migration

  • Documents map cleanly to JavaScript objects

  • Free Atlas tier to start

Cons of MongoDB

  • Joins and reports are harder than in SQL

  • Without a schema, data drifts out of shape

  • Atlas jumps in price past the free and Flex tiers