NodeJS Introduction
§ In this tutorial we will discuss NodeJS will help
you learn the essentials of Node.js starting from the basics to an advanced
level.
Prerequisites
§ Before proceeding with this tutorial, you should have a Basic knowledge of HTML, JavaScript and web application is recommended.
WEB APPLICATION REQUIREMENTS :ü Browser software.
WEB Server Software :
§ Web server software is special piece of s/w (or) special s/w which can manages the web applications and web resources we executes this web resources automatically or dynamically whenever your requesting .
§ NodeJS is the Server side scripting language.
§ By using NodeJS, we can develop Http Servers.
§ We can develop Node application by using JavaScript.
§ Node follows Event Driven Model.
§ Node supports the modules. Predefined modules & custom modules.
What happened when you send a request in NodeJS
§ Whenever we send a request in NodeJS. NodeJS listen the first request and after listing the first request NodeJS becomes ready to listing another request at the same time i.e. NodeJS does not wait for I/O completion of the first request.
§ A NodeJS uses non-blocking I/O operations. This allows a single process to serve multiple requests at the same time. Instead of process being blocked and waiting for single I/O operation to complete, this waiting time is used to serve other requests. All Node.js libraries and the Node core api offer non-blocking operations with few minor exceptions.
What difference between NodeJs and other server side web technology just
like(Java/PHP/.Net)
Java |PHP |.Net
§ Browser Sends request to server.
§ Server sends request to database or file.
§ While the database or file is being read/written, the server simply waits until the operation is completed.
§ After completion of database/file operation, the content is sent to the browser.
§ The server is ready to receive next request.
NodeJS
§ Browser Sends request to server.
§ Server sends request to database or file.
§ Server will not wait until the completion of database operation/file operation simply it receives another request starts its processing.
§ After completion of database/file operation, the content is sent to the browser.
Post a Comment