Your SlideShare is downloading. ×
0
Sanwaad presentation
Sanwaad presentation
Sanwaad presentation
Sanwaad presentation
Sanwaad presentation
Sanwaad presentation
Sanwaad presentation
Sanwaad presentation
Sanwaad presentation
Sanwaad presentation
Sanwaad presentation
Sanwaad presentation
Sanwaad presentation
Sanwaad presentation
Sanwaad presentation
Sanwaad presentation
Sanwaad presentation
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

Sanwaad presentation

284

Published on

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
284
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
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
  • 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 ?

×