🌐
Reddit
reddit.com › r/mongodb › mongodb vs dynamodb head-to-head: which should you choose?
r/mongodb on Reddit: MongoDB vs DynamoDB Head-to-Head: Which Should You Choose?
June 8, 2022 - There are many NoSQL databases available in the market. Two popular options are MongoDB and Amazon DynamoDB, and architects often find themselves choosing between the two. In this article, we’ll compare MongoDB and Amazon DynamoDB to each other and highlight their significant differences.
🌐
Reddit
reddit.com › r/nosql › mongodb vs dynamodb vs documentdb vs elastisearch for my usecase
r/nosql on Reddit: MongoDB vs DynamoDB vs DocumentDB vs Elastisearch for my usecase
January 19, 2024 -

Disclaimer: I don't have any experience with NoSQL

Hi, I'm currently developing a fantasy sports web app, now a game can have many matches and each match can also have many stats results(let's say a match contains at minimum 20 rows of stats results(for both Player A and Player B) that will be stored in the database).

Now that would be a hell of a load being put into my mysql database. So I thought of using nosql, since the structure of results also varies per game type.

Now, I don't really know which to use, and all while considering that we are on budget, so the most cost effective db would be preferred. We are on AWS environment btw.

Top answer
1 of 3
4
MongoDB is almost never the answer. A couple of questions: how many is "many"? Your many may not be my many. how quickly do the queries need to return? 1ms, 100ms, 1s, 10s? how many concurrent queries? When you say load on the DB, are you concerned with the number of rows in the DB, query complexity, both? To be honest unless you're dealing with very high load (many thousands of inserts per second), or billions of rows you're probably better off with a SQL database. You're going to get better performance per dollar spent. NoSQL is expensive. They exist to shard load beyond what's capable on a single machine. You're almost always going to have a cluster of machines. Nothing about your use case make me think that you've reached that scaling limit.
2 of 3
2
I would do managed Postgres or MySQL (RDS or PlanetScale) for this. Once you prove that it works and it's successful enough that you have pain from the volume, you partition on match id or similar, adding more - separated - relational clusters as needed (or just pay PlanetScale to do this for you). If it helps you, we do about 0.5TiB of new data per day per postgres RDS instance, maybe about 250M new rows per day give or take. Tables use Postgres partitioning, partitioned by month, we keep the last 90 days. Older than 90 days we dump to Delta Lake. I think 0.5TiB per day is too high, it means ~40TiB disk footprint per instance. Some maintenance operations are slow at this scale in RDS. I'd plan for - but not implement! - partitioning to keep each relational db around 4-5TiB total footprint, adding more as needed. Either way, wouldn't touch DynamoDB with a 10-foot-pole for this unless you hate money.
🌐
Reddit
reddit.com › r/aws › dynamodb or mongodb in ec2 instance?
r/aws on Reddit: DynamoDB or MongoDB in ec2 instance?
June 21, 2020 -

We are planning to migrate our ecosystem completely to the AWS. Currently mongodb is used as a backend with replica set . Our system is both write heavy and read heavy. And data is extremly unstructred. And it stores few millions of records. And very high throughput.

So which is better in AWS for this use case. MongoDB in EC2 or DynamoDB interms of performance, cost, consistency and HA?

🌐
Reddit
reddit.com › r/aws › has anyone migrated to dynamodb from mongodb?
r/aws on Reddit: Has anyone migrated to DynamoDb from MongoDb?
August 13, 2017 -

What were your reasons, how did it go? I see that DynamoDb now has Document mode to allow any json which is a definite advantage vs just a key-value store.

But I cannot believe how verbose and limiting their API seems to be - e.g for JS - http://docs.aws.amazon.com/amazondynamodb/latest/gettingstartedguide/GettingStarted.NodeJs.03.html

Compared to using MongoDb driver this is about 10x harder! Why do I need to construct UpdateExpression etc vs just passing in the new json?

I realize its not really meant to be a replacement for traditional NoSql but am trying to see if it makes sense.

e.g. How is the search performance, indexing etc? Right now we have ~5m records in one mongo table and the search performance for full text can be hit/miss. I'm guessing the AWS alternative would be ElastiSearch or Cloudsearch with import ffrom DynamoDb.

🌐
Reddit
reddit.com › r/aws › advice from switching to mongodb to dynamodb
r/aws on Reddit: Advice from switching to MongoDB to DynamoDB
August 19, 2018 -

Hello all,

Context: I am running into some trouble using MongoDB, and looking to possibly move towards DynamoDB. Right now, I am currently hosting a MongoDB database running Mongo 4.0 using an EC2 Instance. It is a copy of our production database, which is on an identical EC2 instance, but is running Mongo 3.0. I currently use the copy to take in a dump from the production, and run an aggregation query on it. This aggregation query creates a new collection, using complex aggregations from three different collections. Hosting two EC2 instances costs a lot of money.

I mainly get rid of extraneous data, change a data string to a date object (so I can query by date later on) and change a few strings to integers to allow for sorting.

For simplicities sake, we'll call the production Database A and the copy Database B. Again, the only difference between the two is that MongoDB is upgraded. I want to upgrade production eventually to 4.0, but we are worried that it will mess with our application. In my testing, it doesn't seem to have an effect, but again, we don't want to ruin our application.

I then use an AWS Lambda function, where I query the copied database, and perform more aggregation. Mainly, I query by a date range, and then group all of the data together. Data is grouped using a unique YoutubeId, and an Event Type (i.e, wedding, bar mitzvah etc). It counts how many times that youtubeId appears, the number of 'likes' the youtube link got from our users, and a few other stats. It then outputs this information to a CSV file, and uploads that to an S3 bucket. That allows us to download CSV files more than 6MB without worrying about Lambda limitations.

The Question: My biggest question would be: is this possible in DynamoDB? I need to perform these advanced aggregations and basically output a new collection. I need to do sums, and transform data. It is a lot, but MongoDB has been good because its aggregation pipeline is so advanced.

If that is not possible, how can I lower costs on Database B? It has a lot of extraneous collections on there, that really aren't necessary. It has 27 collections, but in reality, I only need to use 3. I can then eliminate those once I have the outputted aggregation of them, creating just one collection.

🌐
Reddit
reddit.com › r/indiehackers › mongodb ($57) vs aws dynamodb ($1.25) -> best database for indie hackers
r/indiehackers on Reddit: MongoDB ($57) vs AWS DynamoDB ($1.25) -> Best Database for indie hackers
May 6, 2025 -

I am an Software Engineer by profession working at one of the Indian IT service companies, i have recently started my indie hacking journey to develop small micro SAAS products and offer it to the internet users. But while choosing tech stack for my SAAS i encountered a tech decision regarding Database choice. on one hand i had mongoDB which marc lou (famous indie hacker) recommends for everyone which has free tier of 500 MB Storage and on other hand i had lot of other Database choices out there. i decided to go with mongoDB and built some landing pages with it, i built an landing page by integrating mongoDB but observed an real issue that i missed. issue was LATENCY!

yes, mongoDB is one of the best NoSQL Databases out there which has great GUI to interact and integrating it is quite easy but the mongoDB free tier offers no protection against latency issue's. i kept my cluster in oregon USA and hit it from india, it took request-response 3 Seconds to complete (industry average is in single digit milli-seconds)
This latency issue was just the start, when i analyzed deeper i got to know that mongoDB can get far more price in long run if u stick with it.

So i compared many of the database options out there and selected aws DynamoDB which is managed database by AWS and here's the price comparison for 5 GB Data, 50K read per day, 10K writes per day

it's been 15-20 days now and i have learned aws DynamoDB from scratch and completing it this week, i think it'll be cheaper and reliable to build with aws DynamoDB but let's see what issue's i face in coming time in my journey.

Feel free to drop your opinions in comment section

Find elsewhere
🌐
Reddit
reddit.com › r/aws › mongodb atlas vs dynamodb (as a aws user)
r/aws on Reddit: MongoDB Atlas vs DynamoDB (as a AWS user)
October 3, 2019 -

I'm looking for a good comparison between fully-managed database services. We don't have a lot of engineering resources, but I expect rapid data growth 20 GiB for year 1, 100GiB year 2.I often see DynamoDB vs MongoDB, but I don't think it's a fair comparison, as one is a service and the other is a database.

Do you have any experience with one of these? I'm looking for anything: cost, scalability, tooling (e.g. pymongo vs PynamoDB), performance, etc.

🌐
Reddit
reddit.com › r/developersindia › mongodb vs aws dynamodb vs cassandra vs other nosql key value stores
r/developersIndia on Reddit: MongoDb vs AWS DynamoDb vs Cassandra vs other NoSQL Key Value stores
July 26, 2024 - I made a table of comparison between dynamodb, mongodb and others. I feel like it’s pretty important to know this before making a database decision…
🌐
Reddit
reddit.com › r/webdev › mongodb atlas vs dynamodb (as a aws user)
r/webdev on Reddit: MongoDB Atlas vs DynamoDB (as a AWS user)
October 3, 2019 -

I'm looking for a good comparison between fully-managed database services. We don't have a lot of engineering resources, but I expect rapid data growth 20 GiB for year 1, 100GiB year 2.I often see DynamoDB vs MongoDB, but I don't think it's a fair comparison, as one is a service and the other is a database.

Do you have any experience with one of these? I'm looking for anything: cost, scalability, tooling (e.g. pymongo vs PynamoDB), performance, etc.

Top answer
1 of 7
181

I know this is old, but it still comes up when you search for the comparison. We were using Mongo, have moved almost entirely to Dynamo, which is our first choice now. Not because it has more features, it doesn't. Mongo has a better query language, you can index within a structure, there's lots of little things. The superiority of Dynamo is in what the OP stated in his comment: it's easy. You don't have to take care of any servers. When you start to set up a Mongo sharded solution, it gets complicated. You can go to one of the hosting companies, but that's not cheap either. With Dynamo, if you need more throughput, you just click a button. You can write scripts to scale automatically. When it's time to upgrade Dynamo, it's done for you. That is all a lot of precious stress and time not spent. If you don't have dedicated ops people, Dynamo is excellent.

So we are now going on Dynamo by default. Mongo maybe, if the data structure is complicated enough to warrant it, but then we'd probably go back to a SQL database. Dynamo is obtuse, you really need to think about how you're going to build it, and likely you'll use Redis in Elasticcache to make it work for complex stuff. But it sure is nice to not have to take care of it. You code. That's it.

2 of 7
67

With 500k documents, there is no reason to scale whatsoever. A typical laptop with an SSD and 8GB of ram can easily do 10s of millions of records, so if you are trying to pick because of scaling your choice doesn't really matter. I would suggest you pick what you like the most, and perhaps where you can find the most online support with.

🌐
Reddit
reddit.com › r/aws › which nosql do you use on aws? is anyone using elasticsearch?
r/aws on Reddit: Which NoSql do you use on AWS? Is anyone using ElasticSearch?
January 17, 2017 -

We are a pretty small startup, right now using MongoDb. We are planning a migration to AWS.

DynamoDB seems to have too many limitations - in the structure, indexes etc, to be a replacement for Mongo.

I would never have thought of it but after reading some people seem to be using ES as a primary db. Is this feasible? This seems to be the only complete NoSql option on AWS and as a bonus we'd get search for free.

The other option is to host Mongo on EC2 manually but a managed service is more attractive if the costs and features are comparable.

edit - lots of comments on 'why Mongo, why NoSql'. That's not really the point here, changing architectures is fine which is why I considered Dynamo, but we can't rewrite the entire app to use SQL e.g. We have Mongo because one of the key pieces in our tech stack depended on it. And the db isn't holding us back w.r.t performance, schemaless document db fits our use case very well. Cassandra doesn't have this.

This whole 'Mongo is bad' groupthink reminds me of how we had 'MySql is bad' when NoSql was the new thing. Every tech has its use cases, its all about the compromises you choose.

🌐
Reddit
reddit.com › r/aws › switching from mongodb to dynamodb and having trouble wrapping my head around how to check if a value exists in the database already.
Switching from MongoDB to DynamoDB and having trouble wrapping my head around how to check if a value exists in the database already. : r/aws
March 22, 2023 - In DynamoDB, the keys are more of an optimization feature than a data integrity feature. Ideally, you'll decide what are the access patterns of your app and model the table to make those accesses efficient.
🌐
MongoDB
mongodb.com › compare › mongodb-dynamodb
Comparing DynamoDB And MongoDB | MongoDB
April 21, 2021 - Compare DynamoDB vs MongoDB on querying, indexing, data consistency, and more. Learn how key features align with your application’s scalability and performance needs.