News for hackers. Stuff that matters.
Re:Ask HN: Do you still use MongoDB? by tmlee on Friday May 22, 2020 @09:52AM (#23272048)
While there are many people here who are sharing their bad experience with MongoDB, just curious if you all find the experience with DynamoDB similar?

Since they are both of the NoSQL family.

Re:Ask HN: Do you still use MongoDB? by danenania on Friday May 22, 2020 @12:51PM (#23274137)
DynamoDB is a lot more explicit about its tradeoffs. Much of the backlash against Mongo was because it basically claimed to be well-suited to any use case, when its sweet spot was really far narrower. To be successful with Mongo, you need to design the entire app around its limitations, but those limitations were initially downplayed and obscured.

People were convinced that Mongo was a good choice as a default, general purpose db, when it clearly wasn’t for about a million reasons.

I don’t think DynamoDB is marketed or viewed in the same way. The docs are pretty clear about needing to design your data model to specifically work well with Dynamo. People using it seem to generally be aware of its limitations, and deliberately choose to accept them for the sake of performance and scalability. At least that’s my perception.

Re:Ask HN: Do you still use MongoDB? by rumanator on Friday May 22, 2020 @09:16PM (#23278921)
> I don’t think DynamoDB is marketed or viewed in the same way. The docs are pretty clear about needing to design your data model to specifically work well with Dynamo.

More importantly, AWS is very explicit in letting newcomers be perfectly aware that DynamoDB's usecases are, that they are very specific niche use cases, and that if users require schemas and joins then they should just stick with either relational databases or graph databases.

Those who overpromise will always disappoint.

Re:Ask HN: Do you still use MongoDB? by hartror on Friday May 22, 2020 @06:11PM (#23277648)
What are those good use-cases for mongo?
Re:Ask HN: Do you still use MongoDB? by danenania on Sunday May 24, 2020 @01:33AM (#23289375)
Basically when speed and horizontal scalability are very important, and consistency/durability are less important. It’s also pretty good for unstructured or irregularly structured data that’s hard to write a schema for.

Web scraping or data ingestion from apis might be a reasonable use case. Or maybe consumer apps/games where occasional data loss or inconsistency isn’t a big deal.

It can also be used effectively as a kind of durable cache (with a nice query language) in place of redis/memcached if you give it plenty of ram. While its guarantees or lack thereof aren’t great for a database, they’re pretty good for a cache.

Re:Ask HN: Do you still use MongoDB? by jaydestro on Friday May 29, 2020 @09:18AM (#23349626)
I worked for a big news website- we used mongodb for pixel tracking data.

I went on to work at mongodb

Re:Ask HN: Do you still use MongoDB? by garethmcc on Friday May 22, 2020 @11:03AM (#23272837)
DynamoDB is a completely different beast and would use no other data store unless I had to. It can pretty much handle any transactional workload I need.

It's cheap, its fast and it scales super high. Don't need much more

Re:Ask HN: Do you still use MongoDB? by electricEmu on Friday May 22, 2020 @12:34PM (#23273914)
DynamoDB is consistent and scalable, not fast and cheap.

DDB is great for storing data that is required to be scalable and never needs to be joined. Add in DAX, developer time necessary to orchestrate transactions, calculate the scaling costs and...that's how AWS gets you.

Plus, local development requires half-complete emulators or a hosted database you're charged for.

No, maybe people should think twice about DynanoDB.

Re:Ask HN: Do you still use MongoDB? by danenania on Friday May 22, 2020 @01:05PM (#23274338)
This came up in a thread a few days back, but people considering it should note that Dynamo’s transactions are limited to 25 rows. That may be enough for most operations, but I definitely wouldn’t say it can handle “any transactional workload”. I ran into this limit pretty quickly when trying it out.
Re:Ask HN: Do you still use MongoDB? by gnulinux on Friday May 22, 2020 @10:08AM (#23272198)
I'm curious as well, since my company is moving from Postgres to DynamoDB.
Re:Ask HN: Do you still use MongoDB? by john-tells-all on Friday May 22, 2020 @11:12AM (#23272958)
Could you share your use case?