Sanwaad presentation
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Sanwaad presentation

on

  • 476 views

 

Statistics

Views

Total Views
476
Views on SlideShare
476
Embed Views
0

Actions

Likes
0
Downloads
2
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Sanwaad presentation Presentation Transcript

  • 1. Node.js
  • 2. Set of libraries on top of V8
  • 3. Evented I/O e.g. ioOperation(args, callbackFunction );
  • 4.
    • Evented
      • setTimeout(function(){
      • console.log(“world”);},2000);
      • console.log(“hello”);
    • Sequential
      • print(“hello”);
      • sleep(2);
      • print (“world”);
  • 5. No threads :) More scalable Code in js Benefits
  • 6. WebSocket
  • 7. Full duplex single socket connection
  • 8. Polling Client Server Something new ? NO !!! Something new ? NO !!! Something new ? Yeah! Here it is !
  • 9. Long-Polling = polling with time factor
  • 10. Benefits Bi-directional communication Full duplex Less overhead as compared to HTTP/AJAX
  • 11. Sanwaad
  • 12. The real-time chat server
  • 13. Design Server: app.js – router sanwaad.js – controller index.jade – view
  • 14. Design... Client: landing HTML page lib.css – cascaded stylesheet lib.js – client side java script jquery.js – a js library to write less and do more
  • 15. Design... Testing: qunit.js – javascript test suite utest.js – unit tests testRunner.html – Test Runner
  • 16. Demo
  • 17. Questions ?