Your SlideShare is downloading. ×
Node.js
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Node.js

620
views

Published on

Node.js Presentation talks about its overview, how it works, some great examples and comparison with other technologies like SignalR.

Node.js Presentation talks about its overview, how it works, some great examples and comparison with other technologies like SignalR.

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
620
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
23
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Node Js A platform for scalable network applications... By M. Riyaz
  • 2. Topics  Introduction.  What is Node Js?  Why Node Js?  Begin with node js.  Node Js vs SignalR.  Making Believable.  Tough Part.
  • 3. Introduction
  • 4. What is Node Js?  Node.js is server side program that is based on v8 JavaScript engine.  Node.js is designed to write scalable Internet applications.  Node.js programs are written in server side JavaScript.  Node JS contains a built-in http server. This http server can be control using server side JavaScript. Using this can develop simple client-server based web application also.
  • 5. Introduction : How its work? On Special Demand : If the fast food joint followed a traditional thread-based model, you'd order your food and wait in line until you received it. The person behind you wouldn't be able to order until your order was done. In an event-driven model, you order your food and then get out of line to wait. Everyone else is then free to order.
  • 6. Why Node Js?  Node.js is well suited for applications that have a lot of concurrent connections and each request only needs very few CPU cycles, because the event loop (with all the other clients) is blocked during execution of a function.  If server side application code requires very less cpu cycle. In other world application are doing non blocking operation and does not have heavy algorithm or Job which consumes lots of CPU cycle. then you can use Node Js.  If you are Java Script programmer and comfortable in writing Single Threaded code just like client side JS.  Node JS can be use to serve client site scripts as css,javascript,images etc. Using this web server load will be reduce hence get high performance application.
  • 7. Begin with Node Js? var http = require("http"); //Modules (already build libraries) http.createServer(function(request, response) { response.writeHeader(200, {"Content-Type": "text/plain"}); response.write("Hello Team from Node.Js!!! Now believed, He can…"); response.end(); }).listen(7777); //It can be anything. But shouldn’t be already on IIS //Make a call for define port using localhost in your web browser. Browser > localhost:7777
  • 8. Node js vs SignalR Node Js (*)  This is a server side software system.  Programs are written on the server side in JS.  This is a packaged compilation of G. v8 engine, core lib written in JS  Using Modules & JS.  Need to write code for specific call.  Supported OS : Mac, Linux, Solaris, Windows* SignalR (Microsoft)  This is a server side software system.  Programs are written on the server side in C#.  SignalR is a library for Asp. Net (auto. best transport given the clients )  Using Hub & Persistent Conn.  Provide hooks for connected.  Supported OS :  Cool
  • 9. Making Believable  1. Bottom Level (Fresher’s program ) 2. Middle Level (Push type notification) 3. Top Level (Live video streaming with mobile cam)
  • 10. Thank you!

×