News for hackers. Stuff that matters.
Re:MongoDB Wire Protocol Specification License by rubyist5eva on Wednesday July 21, 2021 @01:11PM (#27909041)
Just another reason why mongodb is trash - does it even go without saying anymore?

Every single company I've ever worked for was crushed by the unreliability of mongo. They're ultra-expensive consulting is also a ripoff - in one case the guy came, suggested a bunch of stuff w.r.t. changing up our queries and indexes, left, then a day later the database exploded and we had to roll back everything he suggested. We tried again piecemeal, which eventually lead to the same thing happening again. Eventually spending the cash to train the engineers and admins to be able to do the tuning ourselves - which ended up being completely different than the garbage the consultant suggested. Let me emphasize that this consultant was from the MongoDB company - not some third party. Completely incompetent company at all levels.

Mongodb exists to extort money from idiots on their cloud offering where costs balloon out of control. It was easily 40% of our monthly infrastructure bill and what we got out of it definitely did not reflect that.

We refused to pay them. Don't ever give Atlas money.

Re:MongoDB Wire Protocol Specification License by BozeWolf on Wednesday July 21, 2021 @01:34PM (#27909357)
We use mongodb in my current clients cloud product. I agree mongo sucks big time. It has nothing to offer for our relational data (sql please) or for our little search index (elastic, or postgres please). Except for the database, the rest of our architecture is quite alright.

What i do not agree on is that their atlas product is bad. It has a very nice and helpful dashboard. Atlas is quite solid when used from google cloud (downtime/slow performance just once in 2 years) and their consultant was very helpful. Not really fast response times, but it was not urgent. Also their offering is not super expensive, but we only have 50-100gb of data. Consultancy was good value for money.

Dont give atlas money because you probably want a relational database for relational data and use elastic (or postgres if small scale) for search or statistics. Mongodb also sucks with scaling, it suffers from the same issues as normal databases, except that they dont call it a problem. Which means, you, the developer should fix it. It also sucks with scaling, because expertise on using mongo is scarce.

Almost done at this client. Learned a lot about mongo. Would never recommend it to another client. Would recommend running managed sql databases by a cloud provider if their offering was as good as atlas.

Re:MongoDB Wire Protocol Specification License by altdataseller on Wednesday July 21, 2021 @01:57PM (#27909683)
Do you or anyone else have any opinions of Elastic’s Cloud offering?
Re:MongoDB Wire Protocol Specification License by danpalmer on Wednesday July 21, 2021 @01:29PM (#27909303)
I did my masters research project at university on the issues with MongoDB's distributed consensus protocol (or lack thereof). One of my friends suggested the title "Distributed Cisterns".

That said, I think that the wire protocol is probably ~fine for a schemaless document store if that's what you want. I know that Apple implements MongoDB with FoundationDB, so that there are much stronger guarantees behind it, but they can still use MongoDB drivers in various languages, and that seems reasonable.

Re:MongoDB Wire Protocol Specification License by nextaccountic on Wednesday July 21, 2021 @01:32PM (#27909340)
Can you share the pdf? Thanks.
Re:MongoDB Wire Protocol Specification License by rjzzleep on Wednesday July 21, 2021 @01:42PM (#27909462)
Different author but definitely worth a read:

https://jepsen.io/analyses/mongodb-4.2.6

https://jepsen.io/analyses

Older discussion for an older version of mongodb:

https://news.ycombinator.com/item?id=9417773

Re:MongoDB Wire Protocol Specification License by mkl95 on Wednesday July 21, 2021 @01:43PM (#27909477)
I have worked for a couple of companies that swear by Mongo, with similar results.

Mongo is just a poorly designed piece of software you shouldn't trust for any mission critical service, unless you are willing to dedicate a lot of resources to constantly put out fires.

Re:MongoDB Wire Protocol Specification License by jart on Wednesday July 21, 2021 @01:54PM (#27909637)
Remember in the early 2010's when every bro on the Internet became an expert on scalability because he used MongoDB? https://youtu.be/b2F-DItXtZs (sort of like how Rust users are security experts today) I've been working on building a better database than MongoDB and it's called redbean. https://redbean.dev/ It supports web-scale nosql because you can use the executable pkzip structure as a document object store. It also embeds SQLite for SQL too.
Re:MongoDB Wire Protocol Specification License by altdataseller on Wednesday July 21, 2021 @01:58PM (#27909697)
Why do they swear by it then?
Re:MongoDB Wire Protocol Specification License by mkl95 on Wednesday July 21, 2021 @02:29PM (#27910135)
Sometimes tech companies have the wrong people at C-level. These people constantly make bad decisions, and have their subordinates pay for them.

Investors are often oblivious to these details. If the company is not doing as well as expected due to crippling tech debt, high turnover rates, dumb decisions, etc. the CEO will come up with an excuse (since COVID, this is easier than ever).

Re:MongoDB Wire Protocol Specification License by rubyist5eva on Wednesday July 21, 2021 @02:43PM (#27910301)
Because they drank the kool-aid that joins are bad (so implement them in your application instead!)....oops, mongo has joins now. It's still trash.
Re:MongoDB Wire Protocol Specification License by gqewogpdqa on Wednesday July 21, 2021 @06:47PM (#27913130)
Out of curiosity from somebody watching, what makes you say it's still trash?
Re:MongoDB Wire Protocol Specification License by HideousKojima on Wednesday July 21, 2021 @02:17PM (#27909962)
Because they don't understand RDBMSes and how to turn them for performance and have bought into cargo cult thinking.
Re:MongoDB Wire Protocol Specification License by lmilcin on Wednesday July 21, 2021 @02:15PM (#27909940)
I am tech lead for for large scale trade processing system based on MongoDB for one of the largest banks in the world. We have billions of documents and tens of terabytes of data, which is all processed both daily in huge batches as well as in real time, for various reasons (regulatory, for example).

MongoDB is an immature product, yes.

But it is good at some things.

As long as you learn what things it is good at and what things it is not good at it can be quite viable solution, depending on your problem.

Learn and plan accordingly.

Re:MongoDB Wire Protocol Specification License by rubyist5eva on Wednesday July 21, 2021 @02:44PM (#27910320)
> As long as you learn what things it is good at and what things it is not good at it can be quite viable solution, depending on your problem.

My experience is that the things that mongo is "good at", there are competing products that are just as good. Mongo downsides - such as not giving a crap if you lose data - make it a non starter when there are so many better products that actually protect your data.

Re:MongoDB Wire Protocol Specification License by lmilcin on Wednesday July 21, 2021 @03:05PM (#27910614)
> My experience (...)

So what is your experience? I have stated mine.

> My experience is that the things that mongo is "good at", there are competing products that are just as good.

So what does that mean? Nothing.

Every product is a set of compromises. The one that is suitable doesn't need to be perfect in every (or any) respect. It just needs to have the set of compromises that suits your project.

> Mongo downsides - such as not giving a crap if you lose data - make it a non starter when there are so many better products that actually protect your data.

Database do not (typically) "protect" data. There are some database that make it impossible to remove data once stored, but in general if you count on your database to prevent data loss, you are just waiting for a junior engineer to make a blunder and remove half your database, whether it is MongoDB or Oracle.

What all this means is that you cannot count on any database to prevent data loss and you have to organize some kind of way to protect your data. This usually means some kind of backup, snapshotted replica, redo log, etc.

Re:MongoDB Wire Protocol Specification License by rubyist5eva on Wednesday July 21, 2021 @06:11PM (#27912837)
> Database do not (typically) "protect" data.

This is a laugh. There is decades of work and research put into databases and making sure that what you put in comes out correctly and consistently. Things which mongo referred to as "not web scale" for years.

Obviously you can lose data when you make stupid mistakes or God decides to smite you - that's not what I was referring to. Pretty good strawman though.

Re:MongoDB Wire Protocol Specification License by ksec on Wednesday July 21, 2021 @02:40PM (#27910265)
But somehow they are fifth in DB Ranking [1]. So despite all the hate on HN, they are quite widely deployed. The same goes to MySQL as well.

[1] https://db-engines.com/en/ranking

Re:MongoDB Wire Protocol Specification License by rubyist5eva on Wednesday July 21, 2021 @02:45PM (#27910339)
Just because something is popular doesn't make it good. Especially in web development where even the fads have fads. Managers and non-techs also eat up the sales pitch and force it on teams that don't know any better.
Re:MongoDB Wire Protocol Specification License by Thaxll on Wednesday July 21, 2021 @02:21PM (#27910019)
"Don't ever give Atlas money."

Atlas works fine and it's reliable, on the consultant thing I can't comment, but MongoDB as it is today is a good DB.

Re:MongoDB Wire Protocol Specification License by ithrow on Wednesday July 21, 2021 @02:00PM (#27909730)
Same story with Datomic. My conclusion is that databases are hard and require lots of time and resources to be reliable.
Re:MongoDB Wire Protocol Specification License by FinalBriefing on Wednesday July 21, 2021 @01:50PM (#27909574)
Is there an alternative that is easy-ish to migrate to?