Amazon DynamoDBย vsย Azure Cosmos DB

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

Amazon DynamoDB

3K
2.6K
+ 1
195
Azure Cosmos DB

404
767
+ 1
127
Add tool

Amazon DynamoDB vs Azure Cosmos DB: What are the differences?

Developers describe Amazon DynamoDB as "Fully managed NoSQL database service". All data items are stored on Solid State Drives (SSDs), and are replicated across 3 Availability Zones for high availability and durability. With DynamoDB, 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. On the other hand, Azure Cosmos DB is detailed as "A fully-managed, globally distributed NoSQL database service". Azure DocumentDB is a fully managed NoSQL database service built for fast and predictable performance, high availability, elastic scaling, global distribution, and ease of development.

Amazon DynamoDB and Azure Cosmos DB belong to "NoSQL Database as a Service" category of the tech stack.

Some of the features offered by Amazon DynamoDB are:

  • Automated Storage Scaling โ€“ There is no limit to the amount of data you can store in a DynamoDB table, and the service automatically allocates more storage, as you store more data using the DynamoDB write APIs.
  • Provisioned Throughput โ€“ When creating a table, simply specify how much request capacity you require. DynamoDB allocates dedicated resources to your table to meet your performance requirements, and automatically partitions data over a sufficient number of servers to meet your request capacity. If your throughput requirements change, simply update your table's request capacity using the AWS Management Console or the Amazon DynamoDB APIs. You are still able to achieve your prior throughput levels while scaling is underway.
  • Fully Distributed, Shared Nothing Architecture โ€“ Amazon DynamoDB scales horizontally and can seamlessly scale a single table over hundreds of servers.

On the other hand, Azure Cosmos DB provides the following key features:

  • Fully managed with 99.99% Availability SLA
  • Elastically and highly scalable (both throughput and storage)
  • Predictable low latency: <10ms @ P99 reads and <15ms @ P99 fully-indexed writes

"Predictable performance and cost" is the top reason why over 53 developers like Amazon DynamoDB, while over 13 developers mention "Best-of-breed NoSQL features" as the leading cause for choosing Azure Cosmos DB.

Lyft, New Relic, and Sellsuki are some of the popular companies that use Amazon DynamoDB, whereas Azure Cosmos DB is used by Microsoft, Rumble, and Property With Potential. Amazon DynamoDB has a broader approval, being mentioned in 429 company stacks & 173 developers stacks; compared to Azure Cosmos DB, which is listed in 24 company stacks and 23 developer stacks.

Advice on Amazon DynamoDB and Azure Cosmos DB

We are building a social media app, where users will post images, like their post, and make friends based on their interest. We are currently using Cloud Firestore and Firebase Realtime Database. We are looking for another database like Amazon DynamoDB; how much this decision can be efficient in terms of pricing and overhead?

See more
Replies (1)
William Frank
Data Science and Engineering at GeistM ยท | 2 upvotes ยท 26K views
Recommends

Hi, Akash,

I wouldn't make this decision without lots more information. Cloud Firestore has a much richer metamodel (document-oriented) than Dynamo (key-value), and Dynamo seems to be particularly restrictive. That is why it is so fast. There are many needs in most applications to get lightning access to the members of a set, one set at a time. Dynamo DB is a great choice. But, social media applications generally need to be able to make long traverses across a graph. While you can make almost any metamodel act like another one, with your own custom layers on top of it, or just by writing a lot more code, it's a long way around to do that with simple key-value sets. It's hard enough to traverse across networks of collections in a document-oriented database. So, if you are moving, I think a graph-oriented database like Amazon Neptune, or, if you might want built-in reasoning, Allegro or Ontotext, would take the least programming, which is where the most cost and bugs can be avoided. Also, managed systems are also less costly in terms of people's time and system errors. It's easier to measure the costs of managed systems, so they are often seen as more costly.

See more
Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Amazon DynamoDB
Pros of Azure Cosmos DB
  • 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
  • 27
    Best-of-breed NoSQL features
  • 20
    High scalability
  • 15
    Globally distributed
  • 14
    Automatic indexing over flexible json data model
  • 10
    Always on with 99.99% availability sla
  • 10
    Tunable consistency
  • 7
    Javascript language integrated transactions and queries
  • 6
    Predictable performance
  • 5
    High performance
  • 5
    Analytics Store
  • 2
    Ease of use
  • 2
    No Sql
  • 2
    Rapid Development
  • 2
    Auto Indexing

Sign up to add or upvote prosMake informed product decisions

Cons of Amazon DynamoDB
Cons of Azure Cosmos DB
  • 4
    Only sequential access for paginate data
  • 1
    Document Limit Size
  • 15
    Pricing
  • 3
    Poor No SQL query support

Sign up to add or upvote consMake informed product decisions

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.

What is Azure Cosmos DB?

Azure DocumentDB is a fully managed NoSQL database service built for fast and predictable performance, high availability, elastic scaling, global distribution, and ease of development.

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

What companies use Amazon DynamoDB?
What companies use Azure Cosmos DB?
See which teams inside your own company are using Amazon DynamoDB or Azure Cosmos DB.
Sign up for Private StackShareLearn More

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

What tools integrate with Amazon DynamoDB?
What tools integrate with Azure Cosmos DB?

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

Blog Posts

GitHubPythonNode.js+47
45
68251
GitHubGitGoogle Analytics+30
25
14642
GitHubDockerAmazon EC2+23
12
6314
GitHubPythonSlack+25
7
2791
DockerSlackAmazon EC2+17
18
5576
What are some alternatives to Amazon DynamoDB and Azure Cosmos DB?
Google Cloud Datastore
Use a managed, NoSQL, schemaless database for storing non-relational data. Cloud Datastore automatically scales as you need it and supports transactions as well as robust, SQL-like queries.
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.
Amazon SimpleDB
Developers simply store and query data items via web services requests and Amazon SimpleDB does the rest. Behind the scenes, Amazon SimpleDB creates and manages multiple geographically distributed replicas of your data automatically to enable high availability and data durability. Amazon SimpleDB provides a simple web services interface to create and store multiple data sets, query your data easily, and return the results. Your data is automatically indexed, making it easy to quickly find the information that you need. There is no need to pre-define a schema or change a schema if new data is added later. And scale-out is as simple as creating new domains, rather than building out new servers.
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.
Amazon S3
Amazon Simple Storage Service provides a fully redundant data storage infrastructure for storing and retrieving any amount of data, at any time, from anywhere on the web
See all alternatives
How developers use Amazon DynamoDB and Azure Cosmos DB
Avatar of Karma
Karma uses Amazon DynamoDBAmazon DynamoDB

For most of the stuff we use MySQL. We just use Amazon RDS. But for some stuff we use Amazon DynamoDB. We love DynamoDB. It's amazing. We store usage data in there, for example. I think we have close to seven or eight hundred million records in there and it's scaled like you don't even notice it. You never notice any performance degradation whatsoever. It's insane, and the last time I checked we were paying $150 bucks for that.

Avatar of Volkan ร–zรงelik
Volkan ร–zรงelik uses Amazon DynamoDBAmazon DynamoDB

zerotoherojs.com โ€™s userbase, and course details are stored in DynamoDB tables.

The good thing about AWS DynamoDB is: For the amount of traffic that I have, it is free. It is highly-scalable, it is managed by Amazon, and it is pretty fast.

It is, again, one less thing to worry about (when compared to managing your own MongoDB elsewhere).

Avatar of CloudRepo
CloudRepo uses Amazon DynamoDBAmazon DynamoDB

We store customer metadata in DynamoDB. We decided to use Amazon DynamoDB because it was a fully managed, highly available solution. We didn't want to operate our own SQL server and we wanted to ensure that we built CloudRepo on high availability components so that we could pass that benefit back to our customers.

Avatar of nrise
nrise uses Amazon DynamoDBAmazon DynamoDB

๋ช‡๋ช‡ ๋กœ๊ทธ๋Š” ํ˜„์žฌ AWS DynamoDB ์— ๊ธฐ๋ก๋˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๊ฐœ์„ ์„ ํ†ตํ•ด mongodb ๋กœ ์˜ฎ๊ธธ ๊ณ„ํš์„ ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์•„์ฃผ ๊ฐ„๋‹จํ•œ ๋ฐ์ดํ„ฐ๋ฅผ ์Œ“๋Š” ์šฉ๋„๋กœ๋Š” ๋‚˜์˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ๋‹ค๋งŒ, ์ฟผ๋ฆฌ๊ฐ€ ์•„์ฃผ ์ œํ•œ์ ์ž…๋‹ˆ๋‹ค. ์‚ฌ์šฉํ•˜๊ธฐ ์ „์— ๋ฐ˜๋“œ์‹œ DynamoDB ์˜ ์ŠคํŽ™์„ ํ™•์ธํ•  ํ•„์š”๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.

Avatar of Daniel Kovacs
Daniel Kovacs uses Azure Cosmos DBAzure Cosmos DB

If you need a document-based database with geo-redundancy (imagine AU-HU distance), this is the way to go.

Avatar of HyperTrack
HyperTrack uses Amazon DynamoDBAmazon DynamoDB

To store device health records as it allows super fast writes and range queries.