How can I decide if I should use a NoSQL vs a SQL database engine?

I plan to build an app using Node.js as my Rest API Service and Angular for my Admin side.

I've tried to create Rest API using Node.js with MongoDB as my database server.

MongoDB is a transactional DB, not a relational DB. So my question is, is MongoDB not good as my database server because it's a transactional DB? (for storing all data let's say data for e-commerce)? How can I know which one to use, MongoDB or a regular SQL database.

Thanks for your answer.

Upvotes: 0

Views: 2622

Answers (1)

Christopher Francisco
Christopher Francisco

Reputation: 16288

You have a couple of concepts wrong.

First, Angular is a frontend framework not a backend. Angular runs in the browser. Perhaps you mean you will use as your "admin" panel or whatever but it's a frontend technology. It will need to talk to an API server, which is the backend part.

Second, database engine selection is chosen depending on the system non-functional requirements. There are plenty of articles you can research so that you can make the decision, such as this one from MongoDB official site. There's also a video on it too.

Upvotes: 1

Related Questions