Javscript – As They say “One language to Rule Them All”
Now coming to important question, So here it is.
Why use MEAN Stack and How Fast is NodeJS actually?
Finally, if u want to know how fast nodeJS is we will explain in NodeJS section below.
Now, Let’s look into Individual technologies one by one.
MONGODB (king of NoSQL databases)
When we say king of NoSQL databases, you obviously want to know why Here is the article on GigaOM check out:
MongoDB is a cross-platform, document-oriented database that provides, high performance, high availability, and easy scalability. It works on the concept of collection and document which is very handy when working with large databases.
MongoDB is, a kind of NoSQL database. As a NoSQL database, MongoDB shuns the relational database’s table-based structure to adapt JSON-like documents that have dynamic schemas which it calls BSON. This makes data integration for certain types of applications faster and easier.
EXPRESS.JS (Fast, unopinionated, minimalist web framework for Node.js)
$ npm install express –save
AngularJS extends HTML attributes with Directives and binds data to HTML with Expressions.
AngularJS is a structural (MVW) framework for dynamic modern web apps. It lets you use HTML as your template language and lets you extend HTML’s syntax to express your application’s components clearly and easily. AngularJS’s data binding and dependency injection eliminate much of the code you would otherwise have to write. And it all happens within the browser, making it an ideal partner with any server technology.
Some of the amazing features of AngularJS:
SPEED AND PERFORMANCE
- Inbuilt Testing, Animation, and Accessibility.
Angular’s Official Website is a great starting point. CodeSchool created a great tutorial for beginner and the angular videos by Egghead and You can also check out official documentation for AngularJS 1+ and for Angular 2+ (Latest).
Node.js is very popular nowadays because of it’s feature like:
- Node.js uses an event-driven, non-blocking I/O model
- Which makes it lightweight and efficient
- Node.js’ package ecosystem, npm, is the largest ecosystem of open source libraries in the world.
Because of these features, Node.Js because very popular in no time and Now its developer’s favorite language for developing Rest APIs and Building high scaling apps.
So Now coming to the very interesting point, How fast is NODEJS?
Node.js uses asynchronous handling of events by default. Java and Python use threading by default. *
This may not seem important, but prior to the Apache Web server being converted to support an async event model, it would tend to fall down at anywhere from 1000-5000 concurrent connections, and many of those connections would have extremely long latencies.
Then other servers came along like Nginx and Lighttpd that run on an async event model. Instead of topping out at serving 5000 connections badly, you could suddenly support 70,000 concurrent connections on the same server, and those connections respond with much better latency.
Python, on the other hand, is so much slower than V8, the JIT compiler used in NodeJS, that even when attempting async development I would expect NodeJS to be faster.
* You can write code that uses an async event model in Java, but I’ve never seen anyone do it, and it doesn’t seem to be the standard way to approach problems in Java. I’ve at least encountered people who use an async model in Python, but the language and ecosystem aren’t set up to support it. In NodeJS, the support is baked in.
Enjoyed reading, Don’t forget to share.
Now as you know one or two things about MEAN stack, Go and Build something amazing and share it with the community.