252 points · by codyogden · 7y ago · 283 comments
Cloud providers have been able to stand on the shoulders of giants, profiting immensely from millions of lines of open source code while giving little of it back, and we seem to be largely fine with this. Will we be fine depending on their services when the cloud providers become the new Oracle, free to raise prices extravagantly when we have no other choice?
If MongoDB Inc can't compete in the enterprise cloud market simply because they are not AWS (as mentioned by threeseed), what should their business model be? Licensing to cloud providers would have been ideal, but the response from AWS in this case wasn't encouraging. By boycotting MongoDB in this case are we telling future innovators that their work will simply be stolen and resold for profit if it gets popular? That scares me a lot more than some project changing their license.
MongoDB was advertised as being Open Source and Free Software, distributed under an OSI-compliant and FSF-compliant license. Now they are trying to eat their cake and have it too.
> "then are lambasted when they try to prevent a competitor from copying it wholesale?"
Because that's not what open source is about. Open source is about contributing to the commons, such that your competitors can make a profit from your work.
If your competitors aren't able to do that, then the software is not open source. Period. And in this case, we should point out that MongoDB Inc by owning the copyright doesn't have to play by the same rules, they aren't beholden to the same rules as everyone else.
> "If MongoDB Inc can't compete in the enterprise cloud market simply because they are not AWS (as mentioned by threeseed), what should their business model be?"
Why the fuck should we care what their business model would be? That's for them to figure out.
But if they sell something as open source and they close source it, then we, the schmucks that bought into it, will point out that MongoDB is no longer open source and treat it as a proprietary piece that comes with the caveats of proprietary software, like lock in, etc.
So I hope somebody forks MongoDB from the version when it was open source.
Cloud providers are now barred from using new MongoDB versions.
Is that fair? Well, the developers (a company) made a choice. They want the revenue from the support/monitoring business, AWS is eating their lunch. So either they completely change their business or try to somehow stop AWS et al. from doing that.
Since MongoDB just recently released 4.x with distributed transactions, it made sense to do the license change thing. Otherwise no one would care (and anyone stuck on AWS would just continue to use whatever 3.x compatible AWS provided).
And still, it's likely that AWS will continue to offer their non-feature-parity fork for quite some time.
So, in that sense anyone who cares or cared for AGPL MongoDB tech should have advocated for this license change a lot sooner.
To what end? Why should we use a fork that's supported by a few people when we can still use the Community Edition that's from the horse's mouth? The idea of forking things for the fun of it actually perpetuates the problem that we already have with OSS. We want to get things for free, use them to make money, but still expect support for new features and bug fixes. This is worse when someone does this in their 'free time'.
Let's discuss the merits of forking from when it was open source. Percona has a fork, or is it not fit for purpose as they also adopted the SSPL thing?
Wait, how has a fork of MongoDB also adopted MongoDB's evil license? How are they able to take contributions from MongoDB and package them under the same license? Do they share the source code internally, or do they upstream changes that are in the open?
> Why the fuck should we care what their business model would be? That's for them to figure out.
Isn't restricting Amazon and others from profiting from their efforts part of figuring out this business model?
> But if they sell something as open source and they close source it, then we, the schmucks that bought into it, will point out that MongoDB is no longer open source and treat it as a proprietary piece that comes with the caveats of proprietary software, lock in, etc.
Did MongoDB sell you their product as open-source? Which specific product? Was it the Community database, or the Enterprise one? Your argument lacks substance, because you're responding to someone who's asking why people are moving to another closed source product, one whose source code you can't even inspect.
(edit: typo)
That no one has done that already suggests that no one thinks it’s worth doing. And it isn’t, Postgres is properly free, and more than surpasses Mongo in all aspects.
MariaDB, the MySQL fork, didn't happen over night.
Give it time.
This kind of first order reasoning is nice, but the reality of software economics is a tad bit more complex. The assumption that the market is large, that the commons helps everybody sort of equally are not true in a lot of sectors. Namely, as IT transforms itself a lot of things become almost zero-marginal-cost. Starting a new server? Setting up a new database? Backup/Snapshot? Load balancing? Scaling? Just click that AWS web console shit, and you're good to go. And this out-competes the others.
I'm not saying that changing licenses is super-A-OK, but the fact is the license was never good in the first place, because it failed to take into account what will happen when AWS starts to offer MongoDB.
Furthermore, I have no problem with anyone holding the view that MongoDB should then compete with AWS, and/or focus on on-premise computing, and/or slowly pivot away from building MongoDB itself to whatever. But anyone holding this view should recognize the aforementioned reality that cloud computing is happening, IT is not just a hydra, it's an ouroboros too, it's eating itself.
Not sure what we are talking about, personally I don't make that assumption, although I recognize that others might.
Yes, roads and highways help big companies more than they help small companies. That doesn't mean that smaller companies don't benefit from the existence of roads and highways.
> "the fact is the license was never good in the first place, because it failed to take into account what will happen when AWS starts to offer MongoDB"
Without that license, let's be honest, MongoDB wouldn't have gotten popular in the first place. MongoDB has been plagued by technical issues too and without it being open source, one of the carrots being used, MongoDB wouldn't have been a blip on anyone's radar.
So this is a conundrum and I understand the reasons why MongoDB Inc has switched, I do, but I just don't care.
Because the nature of the thing has changed — and for example I would now need a lawyer to find if my own product is safe or not with an on-premises MongoDB solution, because I can no longer rely on OSI's definition to tell me if my use is OK or not. And yes, we've got random opinions on the Internet about what you can and cannot do, but that's not valid legal advice.
And even if my use of MongoDB is OK for now, who's to say they won't change the license again in the future to something even more abhorrent. This means that for me going forward is that MongoDB is no longer reliable from a legal standpoint.
That said I dislike MongoDB but for various other reasons.
Then you've misunderstood what "open source" means. The term "open source" was invented specifically to describe software with the following properties (among others) [1]:
~~~
1. Free Redistribution
The license shall not restrict any party from selling or giving away the software as a component of an aggregate software distribution containing programs from several different sources. The license shall not require a royalty or other fee for such sale.
[...]
3. Derived Works
The license must allow modifications and derived works, and must allow them to be distributed under the same terms as the license of the original software.
~~~
Any software which doesn't meet those criteria isn't open-source.
[1] https://opensource.org/osd
(edit: formatting)
Of course, this is just one of the many so called "open source" companies that chose open source because they thought it would get them more users but in reality don't care much about FOSS.
- There is nothing wrong with Proprietary software. MongoDB is vilified because they built community on the assumption what this software will be Open Source. Because of this many spend a lot of their own time helping to promote MongoDB and one day MongoDB changed their license. Amazon's DocumentDB makes no Open Source promises
- Your competitors can copy your software is one of the downsides of having your software Open Source. You however may get much better adoption curve in return.
- This is not MongoDB boycott. If repository promises to its users it will only contain Open Source software and MongoDB is not any more it naturally has to be removed. Keeping it will mean breaking promise to repository users
- MongoDB can't compete with AWS is quite far fetched statement. Competing with AWS could possibly slowed MongoDB growth of course.
The bait and switch strategy is deceptive. It's aim is to milk customers to give some money back the the VCs. But this license minefield is user-hostile.
Users don't like companies exhibiting hostile behavior towards them. Simple.
They didn't use an Open Source license with the intention of getting popular and then pulling the rug out from underneath users.
They tried to make their money by offering their tech as a service and found that they couldn't compete against the resources of large cloud providers who were happily profiting off of their (and the community's) hard work.
And now the community's hard work is licensed under a new and restrictive license which, due to legal constraints, cannot be used in entreprise setups.
I feel like if just cannot be repeated enough: You control which license your software is supplied under! If you want to create open source software, you have to live by that decision and follow the license. You can’t slap an open license on the software and complain when people “abuse” the fact that it’s open.
One in which OSI obviously is paid by cloud vendors to denounce alternative licenses, lobbies for developers to be treated like kattle open for abuse, yet portrays themselves as representing developers, and bogusly claims ownership of the term "Open Source", contributing to monopolization and the weaponization of developer's work for surveillance a la Android.
Every time I run `brew update` (or perhaps _any_ brew command), I make 6 requests to "https://downloads.mongodb.org/current.json" (one for each version of the formula), and one request to get the SHA for mongdb-shell?
This defaults the whole point of a formula - metadata describing an installable. If that .json file is compromised in any way then suddenly you are downloading anything from _anywhere_ with no checks. By embedding the hash and the download URL in the formula, like literally every other formula does, the download will fail if the release is modified. And there is a git audit trail of any formula modifications.
No thanks.
After several years of pain e.g. cursor timeouts (even when supposedly disabled), iterating over the same document multiple times in the one query etc. and of course no transactions (since added). I eventually migrated to PSQL (using some custom scripts) and everything is so much easier to maintain, much more stable and much faster.
We're still using MongoDB for our analytics though, as it's inherently unstructured non-relational data, so MongoDB does actually do an okay job. Well, except for the run away memory usage which leads to k8s killing the DB server for violating memory constraints every so often. Yes, MongoDB itself is configured with memory constraints, it seems WiredTiger ignores them.
Licensing was considered, however honestly MongoDB itself is (or at least was) so bad that licensing wasn't the primary motivating factor.
EDIT: Just to clarify, most of our data is relational, however we do have some unstructured data in PSQL stored in JSONB columns. They work a treat and in some cases have complex indexes on them - they far out-perform anything MongoDB was able to offer us.
Why do we do it? Cost saving. It's that simple. For your information, I wouldn't say we do it "properly" either. We do a decent job though.
Basically, for us (and many other businesses) DBs are not the bottle-neck. Our business model facilitates a heap of static content that's served (via a CDN) without even hitting the DB. When the DB is used, it's 99% read-only; except for the analytics which aren't business critical.
As with all things, it's a trade-off.
Are you saying companies are hurt by the license, or are you saying companies are hurt by software's behavior (e.g. consistency model)?
Then their sales people started coming around and asking for insane sums of money (like $10,000 per instance per year plus 100% markup on hardware to run in AWS - support is extra). They were worried about amazon and others offering a better so next they changed the license.
If it had been SQL it would have been easy to drop in another database. But Mongodb is so different from anything else that you need a major rewrite to get away from it. Postgres has some similiar functionality but it’s not drop in. Amazon has a more or less public beta of DocumentDB which as far as I can tell is a mongodb compatible interface to aurora backend - it works but doesn’t have the polish of RDS yet.
> If it had been SQL it would have been easy to drop in another database.
Not true at all. Way too many organisations are locked into Oracle just because it's too hard to switch to something cheaper.If the companies got lured into using MongoDB as a service, then I understand that prices could increase and companies could be in a pickle. But if companies got lured into using MongoDB as software, I don't see how they could have a problem.
Well actually....
One corner case. If you are using Mongo with the Mongo Linq driver in C#, you can switch it out for an RDMS without changing too much code with just a little foresight.
Hahaha. No.
If anything, migrating from something like Mongo might possibly be easier. Because it's non-relational, you probably have very little business logic in your database layer.
Unlike with Sql.
And even though Sql has a standard syntax, beyond vanilla CRUD queries, there are many differences. Even if 2 engines support the same synatx, the idiomatic way of doing something will differ.
(For example, cursors in Sql Server is extremely slow, whereas its a perfectly acceptable way of doing list operations in Postgres)
CouchDB is quietly weeping in a corner.
Additionally I'm curious how the license is harming companies, as I mentioned in this comment: https://news.ycombinator.com/item?id=20862996
MongoDB had a good run, I enjoyed it before migrating away. This license definitely hurts companies.
What to? I built my own Open Source solution (MIT/Zlib/Apache2).
Around same time Firebase was getting popular, and Graph databases were the way forward.
Combined them all together, now have Internet Archive and HackerNoon running it (https://github.com/amark/gun) in production!
Could you elaborate on how companies are hurt by the license?
I had the opportunity to redesign the architectures of few productions running apps because of this superstition "Companies are falling due to MongoDB, lets switch to another DB"
Every single time, as an architect I have found that developers are just being fancy about their first-hand experience with some other database and they are unable to think in new direction which MongoDB is built for.
Following are the things most people miss:
1. MongoDB is not safe/secure. Anyone can hack it -> the default configuration were not optimized in previous MongoDB version but it doesn't mean it lacked User security API.
2. MongoDB does not support JOINs or query API just sucks -> No, it doesn't. First, You need to learn about denormalization and schema handling. Second, MongoDB supports JOIN semantics such as $lookup & $graphLookup. Third, it supports ElasticSearch like text searching capabilities and scoring. Fourth, it supports data aggregation pipelines with various ways to compose the data transforming operations including above 2.
3. It does not have triggers like RDBMS -> It has "change streams" which is more flexible than Trigger. This feature also enables multiple application servers in microservice architecture to use MongoDB as a central store. Want a custom ETL streaming pipeline? You got it.
4. It does not scale like ABC or XYZ DB -> Again understand point #2. Also, look into docs how distributed sharding works across replica sets. Spend some quality time figuring out what should be the KeyField to be used for distributed sharding of Data.
5. Licencing sucks -> Have you understood the whole project cost and complexity ? Have you actually looked at all the terms and conditions or are you just a big fan of OSS and for that you can support any stupid alternative?
Also, you got downvoted by the same people that upvoted the stackoverflow post on the problems of downvoting on technical problems on the internet.
People might not like or know the technology and are guided by older tech gurus from the previous generation such as Edgar Frank "Ted" Codd, although he was a genius, now the market is much larger and there's a lot more use cases.
Additionally, most people know RDBs such as mysql and that's what they are comfortable with, i.e. can't get out of their comfort zone and give an honest and good try to something else or don't even have time.
Also it's what's taught in courses as superior to non relational databases.
I would not change our MongoDB clusters for Postgres/MySQL/etc even if I could do it with a single command. In this case it's not relational data though, for a large business relational model I would stick with RDBs.
And I am still yet to find any database that even comes close to its single tuple update speed.
2) Of course. But MongoDB is orders of magnitude faster in some cases, has better horizontal scalability capabilities, better drivers and some nicer semantics e.g. around streaming.
I stored about 2KB of data for 72 hours and got charged fifteen dollars before I realised the mistake.
They really need to come up with a per mb per hour option.
I evaluated DocumentDB and price wasn’t the issue (at our scale, the price is OK).
Main blocker is that it’s locked at Mongo 3.4 API compatibility, which is several major versions behind. But worse, their implementation of the 3.4 API is incomplete, so while they advertise “Mongo Compatible”, it really isn’t a drop in replacement.
As much as I love a managed service this was a very disappointing effort from AWS.
But we can do Hunger Games too. There's no wrong answers.
I'm not enough of a DB person to know if it was Mongo, or the ORM I was using (Waterline), but my data is extremely structured and relational. Once I switched over to Knex/Objection with a Postgres DB, everything went much smoother. The transition, though, took around two months, was hell, and I almost turned back many times.
>... they continue to build on top of a broken foundation (MongoDB) ...but last I heard Stripe was still running a very outdated version ...
What I don't understand is the many people who are talking about AWS' replacement being a solution for people migrating from MongoDB.
From the comments, it seems:
- it's expensive to use. Someone spent $15 for 2KB data over 3 days [https://news.ycombinator.com/item?id=20862196] - it's only compatible with MongoDB 3.4, which seems not to be enough for some people.
What are the reasons to move to AWS' very offering that MongoDB (and others) are trying to prevent from making money off their investment? Is it a feeling of 'betrayal' that the license has now changed?
MongoDB has had an attitude that the source for the community product is available, but that they mostly develop their product using their core team. [https://www.techrepublic.com/article/mongodb-ceo-tells-hard-...]
So, did the change to their Server License thing result in people having to pay for the Community Edition?
Is the move from MongoDB because it's incompatible with one's data needs (in which case, why didn't one do enough research)?
Why move to AWS' offering instead of 'supporting' these companies? If AWS and Azure thought to create MongoDB Compatible abstraction layers, then surely they saw something useful/good in parts of the database? Then why punish the companies that innovated in creating these technologies?
Lastly, the idea that companies will be fully-OSS and make money from unicorn dust fails once those holding these opinions are on the driver's seat. How many foundations do you donate to, that support the OSS that you use?
The current trend of continuing to want things for free from companies, but being willing to spend an extra fee for a 'managed service' from a cloud provider will hurt a lot of otherwise innovative companies in the coming decade.
People tend to come to believe something organically and then later cherry-pick facts and observations that back those beliefs up. So even if MongoDB did what it had to do, or did what would otherwise be morally defensible in the most popular moral frameworks (as I personally believe to be the case), people who have a personal or emotional stake in the future of OSS will be looking outwardly for a villain. If it failed, it must be a failure of someone who crossed OSS. MongoDB seems the only choice for a villain in that regard.
Rationally, MongoDB's decision made sense because of the real actual threat of AWS and others offering alternatives (at various levels of baking) that seek to undermine MongoDB.
If this is the path that we choose to take, we'll see more companies go back to the closed source model (which MongoDB hasn't gone in).
Article 13 requires you make the source code of only vaguely related software available. So if you use a proprietary backup system, or someone else is doing your hosting stack, you can't use the license without breaching.
Having to either own your entire stack or only using FOSS for the entire stack doesn't really fit the "freedom" part of open source.
Section 13 of the mongodb license notes that all supporting software must use that license. That impacts everything in your stack. Consider kernel drivers, javascript libraries in your UI, and everything in between. Use Ansible to manage you stuff? That won't work with this license.
The goal of this license isn't to get all the "Service Source Code" under the license. They know that the people who would run a service don't have that within their power.
Instead, the goal of the license is to force many folks to have to purchase a separate license from the SSPL. The whole point of the license is to limit freedoms.
[1] - The freedom to run the program as you wish, for any purpose
In practice, it's impossible because you aren't the copyright holder of your kernel, firmware, webserver etc. so you can't change their license to SSPL.
Depends on what you think 'open source' licence means. The source is literally openly available. There are just some extra restrictions on what you can do with it. The FSF and the OSI don't own what 'open source' means, of course - the term predates them and comes from intelligence.
Ref please?
The FSF was certainly around pushing for "free software" long before "open source" was commonly used to refer to copyleft / permissive licenses. And the sole purpose for OSI's existence is exactly to define what is and is not "open source".
In any case, it is very important to define terminology and protect its use. The goal of "open source" is certainly not to simply let people look at the source, but to let people use the source in certain ways. People have thought long and hard about exactly what the minimum standards are to consider something "free software" or "open source".
You can find the core criteria for OSI here: https://opensource.org/osd
And the "Four Freedoms" for the Free Software Foundation here:
Both ESR and the OSI will tell you this.
For example http://www.catb.org/~esr/open-source.html
> Yes, we're aware of the specialized meaning "open source" has in the intelligence community. This is a feature, not a bug.
The OSI tried and failed to trademark 'open source' - because it's simply a description.
https://opensource.org/pressreleases/certified-open-source.p...
> We have discovered that there is virtually no chance that the U.S. Patent and Trademark Office would register the mark "open source"; the mark is too descriptive
Maybe it turned out to be a bug after all!
Here you go:
Regardless, the word isn't really the important part of Homebrew's decision. Whatever you want to call it, Homebrew has decided it can't include MongoDB in its repository while guaranteeing the freedoms of its users. A semantic debate over the meaning of 'open source' won't change that.
That doesn't mean the semantic debate is useless, but regardless of where you fall on that debate, MongoDB's license does not guarantee freedom 0 of the FSF's definition, and that's going to effect which open source organizations are willing to distribute or build on top of MongoDB. You should expect platforms like Homebrew that care about freedom 0 to continue to abandon MongoDB.
Undisclosed personal definitions are an unnecessary impediment to mutual understanding.
You are misinformed, at best.
1. FSF predates the term "open source", that much is true. 2. OSI coined the term "open source." And FSF has has always had issues with that. 3. OSI, on their front page, above the fold, advertises their mission as stewarding the definition of "open source". Again, FSF isn't so keen on that.
In any case, if you want to come up with your own definition of "open source" you are asking to be the third person in a three-way fight. Good luck with that.
Anyway, I have not looked at MongoDB's license. If it is too restrictive for the taste of this or that distro, then I guess it has achieved MongoDB's objective.
The trademark office didn't think so. And ESR said they used the existing term from the intelligence community, which I guess is why.
This just doesn't happen in any other industry, if you go to a baker, you must pay for the bread, you can't in most cases even ask how this bread was made or know for sure that price was fair or not, and mind you this is just slice of bread, while in technology it takes years of experience and knowledge just to create something as crucial as a database, and yet people expect everything to be free, very liberal licensing to even profit from the product without sharing it with the original maker. I don't even like or even respect MongoDB as a database, but the amount of hostility towards anybody trying to make money off a FREE and OPEN SOURCE complex software is totally beyond me.
To your baker analogy, I don't have any objection to a baker withholding their recipe. But if a bunch of bakers want to share recipes, and they form a special supermarket where only these recipe-included products will be sold, why is it considered hostility for them to exclude a product that doesn't make its recipe freely available?
Nobody's being mean to MongoDB. Even with Homebrew, MongoDB can still distribute its own source. It's just that MonboDB doesn't belong in the same store aisle that they used to be in. People are only getting ticked that MongoDB is trying to position itself as some kind of open source savior, that its advocating that MongoDB should still be allowed into the recipe-included bakery chain, even though it's not following the same rules.
If I run a vegan bakery and I don't include sausages, that's not me being mean to the meat industry. If I run an Open Source repository and I don't include proprietary software, then what part of that is hostile?
More practically, MongoDB offers their own managed hosting service. Are they paying the Linux Foundation for the OS they’re almost certainly running? How about nginx / HAProxy / Let’s Encrypt / whatever else they’re using in their stack? This isn’t to say that there’s anything wrong with charging for software, but it’s pretty hypocritical to point their finger at others for profiting off free software whilst doing so themselves.
[1] https://en.wikipedia.org/wiki/The_Free_Software_Definition
Put another way: Amazon is a corporate member of the Linux Foundation. Why is it okay for MongoDB to profit off Amazon's labor without paying, but not vice versa?
A better metaphor would be if the bakery had started by using volunteers to create all the recipes, and then the baker decided that people could only use those recipes if they followed his terms so that the baker could stop other bakeries from competing. This obviously upsets the people who contributed to the recipes thinking they would be open for anyone to use.
Mongo started as an open source project, used that openness to build community (and indeed their product itself), and then pulled the rug out from under everyone to gain a competitive advantage.
I can understand why some people would not choose to give their code away for free, but trying to be both open source while having the benefits of being closed source seems like they are trying to exploit the open source community.
I was not able to find an active fork; the closest thing I'm finding so far is here, but it hasn't seen any activity for 7 months:
[1] https://www.postgresql.org/docs/9.1/datatype-character.html
These restrictions mean it is no longer an open source project. It is also worrying for a lot of people that mongo was willing to change license terms like this, as it means they may be willing to do so in the future if it brings them more money.
Since mongo has reached the point where they're competing on license terms, not on service or via their product, mongodb may not be the best choice for someone starting a new project. At this point lots of other options exist, with stable and open source solutions like postgres having document store features built in as well. In fact for a lot of use cases postgres already performs much better than mongodb, leaving the real question to be why anyone would choose to use mongodb at this point.
Ultimately this is only a worry for people who choose software that is apparently not good enough right now, but hope it will become good enough in the future.
Mongo provides you computer code packed into a tarball and forbids you from profiting from new code derived from it by your own work. Is this ethical?
Is either example more or less ethical if the price is, or is not, $0?
That’s the debate in a nutshell.
(I declare no position on either scenario presented, and will not, so that the explanation stands apart from my ethical opinions.)
I don't have any problems with it ethically: if they did the work and own the copyrights, they can make whatever conditions they want as far as I'm concerned. It's just not open source.
It also gives you source code but attaches some pretty significant conditions that in most cases would prevent you from profiting from new code derived from it.
At a previous job I shipped Mongo as the store (under AGPL) because at the time the replication story for PGSQL was too complex compared to mongo. But I reached a point where I was going to replace Mongo with elasticsearch and get rid of Solr at the same time.
For a long time, the only reason ElasticSearch was not the ugly duckling of distributed systems was because MongoDB existed. It does not have a good history at all. There was a time that Elastic even claimed that it beat the CAP theorem, which always makes me chuckle when I'm reminded of it, and historically they also have been quite vague about the distributed properties (and shortcomings) of ES.
It works fine as a secondary datastore when you would benefit from all of the implemented search functions, but I wouldn't trust it for consistency (so I guess in a way it is a replacement for mongo \s)
Not only that but having operated ES clusters before, it's a tricky thing to manage, and depending on your workload they can be very resource hungry.
PostgreSQL is very solid though, and will scale well for the majority of people. I highly recommend this over ES, not to mention it does have some search features too, you should check them out.
I work on a team at Target that provides a log aggregation product and we’re finding that a single index with a well-defined schema used to troubleshoot applications via logs is very easy to manage and scale. We support some legacy patterns like “index per application” that are a pain in the ass to manage.
Just to provide some context, we manage about 40 clusters that range from a few data nodes to about 160 data nodes with the majority falling in the 16-60 node ballpark. We don’t have a problem with data loss due to elasticsearch, generally speaking.
Has this changed?
I've run into some weird issues in the past with data types changing by themselves, but it may have been user error: in any case being able to reindex from scratch fixed the problem.
As a counterpoint, mongo also still has some outstanding issues with jepsen tests, but they are working on being compliant. Honestly, as far as resiliency, I’m not sure either has solved the problem perfectly.
However, the number of documents is large, and for some documents previous versions will have to be stored, as well.
With Mongo out, do you have any suggestions? Is PostgreSQL the best option here? I'm fairly new to this space.
Example:
Here’s a fantastic new mixing machine. You can make your own for free and use it in other applications such as making smoothies or cakes. You may not start an industrial mixing biz and charge money for it. That’s my biz model.
* Yes, but that's de facto _not_ open source, because all OS licences allow commercial use by definition;
* A licence isn't a magic bullet, you can have this model but if you're not prepared to enforce it it's useless.
The idea is probably that one would have to pay for commercial usage, which absolutely is compatible with open source.
Are there any forks with momentum?
But if you really do need NoSQL to deal with scalability or more advanced requirements, I like DynamoDB. I like it not because it’s user-friendly (it’s not very), but because its limitations are very clear and out-front, and if you try to do something it’s not suited for, you’ll quickly realize it’s hopeless.
Mongo is the opposite—it gives you the impression that you can use it for all kinds of things, and it feels easy in the beginning. But without careful planning, it will lead you merrily into awful traps, because its underlying limitations are glossed and patched over by the api rather than being made explicit.
IMO the use case for mongodb in its heyday was great support for schema-less storage, which was perceived as a way to give your team velocity. And also great support for operating a cluster over primary keys.
(The performance story vs SQL is overstated -- a lot of their early benchmarks were from tuning down safety margins like fsync. You can do that in SQL DBs too).
postgres has pretty good json support these days and mysql is getting there (managed mysql tends to lag a version).
No idea how that works as I don't have any experience with either of them.
https://opensource.com/article/19/8/open-source-licensing#co...
I use lmdb pretty extensively. It is single-file (well, it has a lock file) key/value store, can be read-from/written-to by multiple processes, and embeds nicely. It has Python bindings, but I've only used it from C.
It's worth noting that sqlite's typing is very flexible, so you probably want to add a `check (data is null or json_valid(data) = 1)` to ensure the data is _actually_ valid json.
You can then index based on json queries, eg `create index some_index on something((json_extract(data, '$.someField')))` and then do an indexed query, eg `select * from something where json_extract(data, '$.someField') = 'blah'`.
In our experience it's all working quite well :-)
(Groking json_each and json_tree took a few goes, but now is working well (eg we join onto json_each to allow a row "labels" containing a list of label (rather than a one-to-many table join for something_labels)).)
It supports querying, see json_extract function.
https://www.sqlite.org/json1.html
I use it a lot to return JSON from normalized data, for apps to consume.
My 2 cents: Best to keep data normalized and in separate columns. If you gotta keep data in jsonb, keep only the data that you don't need to query on. Anything you need to query, you better put it as a column. You'll thank me later.
Downsize or diversify
Good luck!
At this point I think it's a coin-toss whether we move to an RDBMS or try to use their newish JSON Schema support (and other features) to achieve some sanity.
And, to be fair, Mongo's hosted management console is really good, the support has been excellent, and since we switched over to their hosted solution I don't think we've had a single problem that wasn't of our own making.
My guess is it won't have a big impact, because customers who care about the license being open source probably wouldn't have been paying MongoDB in the first place.