Nowadays, developing a web application requires a server side scripting language with the development of some code to run on it. Such code often contains the APIs. As the market and technology going faster matching up the speed of time, many IT firms have started working on the MEAN stack. What does the MEAN stack stand out for?
MEAN stands for
MongoDB– It is a schema-less No SQL database system. It saves the data in the form of binary JSON which makes it lighter and easier to pass data between client and server. MongoDB provides a deep query ability i.e. support of dynamic queries on documents using a document-based query language that’s nearly as powerful as SQL.
Express JS– Express is a minimal and flexible Node.js web application framework. It provides a robust set of features for the web and mobile applications. Express provides a thin layer of fundamental web application features, without obscuring Node.js features.
AngularJS and MongoDB both deals with JSON data, as NodeJS and ExpressJS do. The data flows from each layer without the need of reformatting or rewriting. MEAN uses the same JSON format for data everywhere which makes it simpler and saves the time of reformatting as it passes through each layer. Having JSON through the MEAN stack makes the working with the external APIs easier: GET, manipulate, present, POST, and store all with one format.
Disadvantages of using MEAN stack
- When you need a script to be run, example, a cronjob to supplement what your web application does, you need to use another language, because sequential processing is not that natural to do. It defeats the purpose of why using node in the first place. So, to avoid context switching between different languages in the front-end and back-end.
- When using angular, you need to forget the backward compatibility. even developers of the framework realized that there is something wrong and decided to rewrite the framework almost from scratch.
- MongoDB using memory mapped file, let the Operating System handle the caching. The size of you database is limited by virtual memory provided by Operating System and hardware.