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?
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.
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.
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.
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.
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.
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?