News for hackers. Stuff that matters.
Re:Was MongoDB Ever the Right Choice? by matwood on Wednesday March 27, 2019 @07:25AM (#19499774)
The problem with thinking a library like Mongoose satisfies those constraints is that it only works with a single application. Every database I've worked with that made it beyond a prototype outlived the original application. So you either end up building an RDBMS app/api in front of mongo for every new application to use or you have to translate those constraints to every client.

I'm of the opinion to let the "awesome, heavily-used, heavily-tested" RDBMSs built to manage data and constraints do just that.

Re:Was MongoDB Ever the Right Choice? by flurdy on Wednesday March 27, 2019 @08:33AM (#19500198)
True, using a library to hide the limitations of a DB smells bad. It is fixing the problem in the wrong location.

I may have misread your comment but rarely do more than one client application access a database. Especially in today's often Microservices architecture. So using a library as mentioned is fine. And as the app evolves/gets rewritten you can keep the library or replace it with a similar one.

Over 10+ years ago I did join a few projects with existing architecture that had evolved to multiple applications accessing the same database. And they were a nightmare but that is rare to encounter these days as most people have learned that one app = one DB. (Data warehousing is a possible exception, but mostly those datasets are exported instead as well as streams for machine learning).

Probably preaching to the choir but multiple clients mean feature freeze/deadlock, no DB refactoring and spaghetti architecture.

Re:Was MongoDB Ever the Right Choice? by aeorgnoieang on Wednesday March 27, 2019 @04:24PM (#19505632)
> rarely do more than one client application access a database

That has not been my experience!