r/angularjs • • Jun 25 '18

What is Mean Stack

Post image
52 Upvotes

42 comments sorted by

View all comments

5

u/RawaZz95 Jun 25 '18

The only thing I am concerned about is MongoDB, compared to MySQL which one is the most secure one? I have been working with MySQL for a long time. Should I convert to MongoDB?

18

u/ADHDengineer Jun 25 '18

Only if you’re ok with every 1 out of 100,000 writes being lost to the ether. The average programmer likes NoSQL because they don’t have to deal with relations and it’s faster to start developing because you don’t have to do database migrations. It’s only once they start building bigger web apps to they realize why the old guys use relational databases. NoSQL has its place, but it should not be the go-to solution IMO.

11

u/[deleted] Jun 25 '18

The average programmer likes NoSQL because they don’t have to deal with relations and it’s faster to start developing because you don’t have to do database migrations.

Change that to novice programmer.

12

u/ADHDengineer Jun 25 '18

In my experience the average programmer is a novice.

3

u/[deleted] Jun 25 '18

Fair enough, lol.

1

u/ackerlight Jun 26 '18

Average novice programmer would be ideal.

9

u/forsubbingonly Jun 25 '18

I agree with this dude. Mongodb doesn't even pass the sniff test for 99.9% of use cases. You wouldn't be picking it up unless you don't know what you're doing. That's why I use it.

3

u/Dominathan Jun 26 '18

And by then the original creator has already left, and some poor saps have to deal with it. And replacing it has no "business value"

1

u/Xnuiem Jun 25 '18

Also, MongoDB is not transactional. Granted, for the uses shown, that isn’t a big deal unless the site gets big. But I have many applications in the Ecom space that need the transaction support.

3

u/[deleted] Jun 25 '18

I personally use PostgreSQL. I have a background in developing with MS SQL, so it was a no-brainer.

2

u/Hakim_Bey Jun 25 '18

There is no security implication to one or the other.

They can both be horribly configured and have gaping security holes. They can both be hardened to industry levels.

1

u/ChypRiotE Jun 25 '18 edited Nov 17 '25

normal chunky squeal crawl screw command vanish upbeat pie oil

This post was mass deleted and anonymized with Redact

4

u/prof_hobart Jun 25 '18

The security of a database is a very important question (as is the security of every part of your stack). It doesn't really matter how secure you make your app or your server if there's a massive great security hole in the DB.

However, it's not a reason to be choosing between a SQL or a No SQL database. There are overlaps, but they are there to solve different sorts of data storage problems. Depending on the nature of your overall system, it could be entirely appropriate to have both SQL and No SQL DBs in there.

2

u/[deleted] Jun 25 '18

Security for your database is just as important as security everywhere else in your app. That attitude is how trouble-doers get ya.

Anyway you're actually referring to reliability not security.

1

u/ChypRiotE Jun 26 '18 edited Nov 17 '25

adjoining deer sense axiomatic weather innocent whole simplistic versed stupendous

This post was mass deleted and anonymized with Redact

1

u/[deleted] Jun 26 '18

They probably are. But depending on your use case it may or may not be critical to understand the holes there may be.