In this tutorial you will learn about the Nodejs Introduction and its application with practical example.
What is Node.js?
In traditional web-serving technologies each connection (request) open up a new thread, which is prone to be blocked on I/O and handle multiple simultaneous users. Whereas Node.js operates on asynchronous non-blocking event driven I/O model, allowing it to support tens of thousands of concurrent connections, this can easily beat traditional threaded server environments like PHP and Ruby on Rails. Node.js highly efficient and scalable as compared to traditional servers which allocate limited number of threads to handle requests.
Who uses Node.js?
Node.js is trusted and backed by large enterprises running mission-critical applications. Below is a list of a few of them –
Where to Use Node.js?
Node.js is perfect framework/platform for building following type of application –
- I/O Intensive Applications
- Real-time Applications like Multiplayer Games, Stock Trading, Chat App etc.
- JSON APIs based Applications
- Single Page Applications
- Data(Audio/Video) Streaming Applications
- Proxy or HTTP Web Server
- Network Applications
- High Concurrency Applications
- File Uploading Tools
- Process Monitoring Tools
Where Not to Use Node.js?
Node.js operates on single threaded environment thus it is recommended not to use Node.js for CPU intensive applications.