Need advice about which tool to choose?Ask the StackShare community!

Amazon DocumentDB

74
62
+ 1
0
Amazon DynamoDB

3.7K
3.2K
+ 1
195
Add tool

Amazon DocumentDB vs Amazon DynamoDB: What are the differences?

Introduction

Amazon DocumentDB and Amazon DynamoDB are two popular database services offered by Amazon Web Services (AWS). While both are designed to store and manage data, they have some key differences that set them apart.

  1. Database Structure: Amazon DocumentDB is a document-oriented NoSQL database that uses a JSON-like format to store and retrieve data. It allows for flexible and scalable schema design and supports complex queries. On the other hand, Amazon DynamoDB is a key-value store NoSQL database that stores data in tables and uses primary keys for data retrieval. It is highly scalable and can handle millions of requests per second.

  2. Data Consistency Model: Amazon DocumentDB provides immediate, read-after-write consistent data, ensuring that any read operations after a write operation will always return the updated data. In contrast, Amazon DynamoDB by default provides eventual consistency, which means that there may be a slight delay in getting the most up-to-date data after a write operation. However, DynamoDB also offers strong consistency as an option.

  3. Scaling Capabilities: Amazon DocumentDB allows horizontal scaling by adding additional instances to a cluster. This enables high availability and increased capacity as the workload grows. On the other hand, Amazon DynamoDB scales automatically and does not require manual intervention for handling increased traffic or storage needs. It can seamlessly handle bursts of traffic without impacting performance.

  4. Supported Workload: Amazon DocumentDB is well-suited for applications that require complex queries, extensive data modeling, and real-time analytics. It is a good choice for scenarios where data structures evolve over time and flexibility in schema design is important. On the contrary, Amazon DynamoDB is geared towards applications that require high throughput and low latency for large volumes of read and write operations. It excels in scenarios such as gaming leaderboards, session management, and real-time streaming data.

  5. Pricing Model: Amazon DocumentDB is priced based on the instance size and the storage capacity used, with separate charges for additional data transfer. On the other hand, Amazon DynamoDB is priced based on the provisioned read and write capacity, with additional charges for storage and data transfer. DynamoDB offers on-demand pricing as well for applications with unpredictable workloads.

  6. Geographical Distribution: Amazon DocumentDB can be provisioned in multiple Availability Zones within an AWS region for improved fault tolerance and low-latency data access. Amazon DynamoDB is a fully managed, multi-region and multi-master database service that can be globally distributed with automatic replication of data across regions for high availability.

In Summary, Amazon DocumentDB is a document-oriented NoSQL database with flexible schema design and immediate consistency, suitable for complex queries and analytics. Amazon DynamoDB is a key-value store NoSQL database with high scalability and low latency, ideal for applications with high throughput and low latency requirements.

Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Amazon DocumentDB
Pros of Amazon DynamoDB
  • 0
    Storage elasticity
  • 0
    Scalable
  • 0
    Easy Setup
  • 62
    Predictable performance and cost
  • 56
    Scalable
  • 35
    Native JSON Support
  • 21
    AWS Free Tier
  • 7
    Fast
  • 3
    No sql
  • 3
    To store data
  • 2
    Serverless
  • 2
    No Stored procedures is GOOD
  • 1
    ORM with DynamoDBMapper
  • 1
    Elastic Scalability using on-demand mode
  • 1
    Elastic Scalability using autoscaling
  • 1
    DynamoDB Stream

Sign up to add or upvote prosMake informed product decisions

Cons of Amazon DocumentDB
Cons of Amazon DynamoDB
    Be the first to leave a con
    • 4
      Only sequential access for paginate data
    • 1
      Scaling
    • 1
      Document Limit Size

    Sign up to add or upvote consMake informed product decisions

    What is Amazon DocumentDB?

    Amazon DocumentDB is a non-relational database service designed from the ground-up to give you the performance, scalability, and availability you need when operating mission-critical MongoDB workloads at scale. In Amazon DocumentDB, the storage and compute are decoupled, allowing each to scale independently, and you can increase the read capacity to millions of requests per second by adding up to 15 low latency read replicas in minutes, regardless of the size of your data.

    What is Amazon DynamoDB?

    With it , you can offload the administrative burden of operating and scaling a highly available distributed database cluster, while paying a low price for only what you use.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Amazon DocumentDB?
    What companies use Amazon DynamoDB?
    Manage your open source components, licenses, and vulnerabilities
    Learn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Amazon DocumentDB?
    What tools integrate with Amazon DynamoDB?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    GitHubPythonNode.js+47
    55
    72769
    GitGitHubSlack+30
    27
    18680
    GitHubDockerAmazon EC2+23
    12
    6608
    GitHubPythonSlack+25
    7
    3220
    DockerSlackAmazon EC2+17
    18
    6024
    What are some alternatives to Amazon DocumentDB and Amazon DynamoDB?
    MongoDB
    MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding.
    MongoDB Atlas
    MongoDB Atlas is a global cloud database service built and run by the team behind MongoDB. Enjoy the flexibility and scalability of a document database, with the ease and automation of a fully managed service on your preferred cloud.
    Elasticsearch
    Elasticsearch is a distributed, RESTful search and analytics engine capable of storing data and searching it in near real time. Elasticsearch, Kibana, Beats and Logstash are the Elastic Stack (sometimes called the ELK Stack).
    Atlas
    Atlas is one foundation to manage and provide visibility to your servers, containers, VMs, configuration management, service discovery, and additional operations services.
    MySQL
    The MySQL software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software.
    See all alternatives