- Trending Categories
- Data Structure
- Operating System
- MS Excel
- C Programming
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
It is open source and lightweight language
It is used for both front-end and back-end development
It can be used with other languages
What is NodeJS?
NodeJS has a number of modules in which some of them are inbuilt and some of them can be downloaded from internet. HTTP is one such NodeJS module which allows us to use NodeJS on server side. ExpressJS is the NodeJS framework that is used for developing web applications.
Features of NodeJS
It is a cross platform application i.e. it can run on windows, Unix, Linux, mac etc.,
As it is developed using V8 engine, it is very fast in code execution
A NodeJS based server doesn’t wait for data from API. It moves to the next one once it access the previous API. In order to keep track of responses of previous APIs it uses a notification mechanism called Events.
It is single threaded and uses event loop model. A single thread is used to handle multiple requests. The thread processes the first request and then moves to the next one. But in the background, I/O operations are performed for that 1st request. Once the requested data is ready to send, it sends a message called event queue. Node continuously monitor this event queue in the background. Once it finds it event in the queue, it processes it. This makes Node the best for developing I/O intensive apps.
NodeJS is asynchronous, i.e., non blocking. If a request needs to access the database, it doesn’t wait for single request until the data is processed. In the meanwhile, thread checks for the next request.
It is an open-source and light weight scripting language which is used to make dynamic web applications
It is a programming language
It is a runtime environment
It is used in client side
Using NodeJS we can built real-time applications
ExpressJS, AdonisJS, MeteorJS are some of the frameworks of NodeJS
Kickstart Your Career
Get certified by completing the courseGet Started