A preliminary study of node js
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

A preliminary study of node js

on

  • 2,204 views

 

Statistics

Views

Total Views
2,204
Views on SlideShare
2,124
Embed Views
80

Actions

Likes
0
Downloads
45
Comments
0

2 Embeds 80

http://wd.alibaba-inc.com 59
http://fd.aliued.cn 21

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

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

A preliminary study of node js Presentation Transcript

  • 1. The First Experience Of 2011-07-29
  • 2. Topic•••••
  • 3. JavaScript
  • 4. The JavaScript Age
  • 5. The JavaScript Age 2000-2009 LAMP
  • 6. Browser Wars
  • 7. JavaScript Engine ...
  • 8. JavaScript Engine
  • 9. ••
  • 10. Web Server••
  • 11. Server-side JavaScript
  • 12. Trends
  • 13. NodeJSJavaScript Node standard library C Node bindings thread event pool loop V8 (libeio) (libev)
  • 14. Why?
  • 15. Whatʼs NodeJs ?••••••••
  • 16. NodeJs Choose?
  • 17. Google V8 JavaScript Engine • • • •
  • 18. Evented
  • 19. Evented
  • 20. EventedotherThing(); // execute immediately;
  • 21. Benefits••••
  • 22. the advantages of Single- threaded performanceNginx(single-thread) vs Apache(multi-thread) http://blog.webfaction.com/a-little-holiday-present
  • 23. the advantages of Non-blocking Nginx(non-blocking) vs Apache(blocking)
  • 24. Smaller is Better Smaller is Better 80 60response time (ms) server 40 nginx thin tornado node 20 50 100 150 200 250 300 concurrency
  • 25. Smaller is Better concurrency=300, Smaller is Better 400 300response time (ms) server nginx 200 thin tornado node_buffer 100 24 26 28 210 212 214 216 218 response size (bytes)
  • 26. Ajax vs Comet
  • 27. ••
  • 28. , ,
  • 29. CommonJS
  • 30. CommonJS••••
  • 31. CommonJS Module••
  • 32. Module Example
  • 33. ECMAScript 5
  • 34. ECMAScript 5••••••
  • 35. Digg in the node
  • 36. Getting Starthttps://github.com/joyent/node/wiki/Installation
  • 37. Node Package Manage
  • 38. IDE base on nodeIDE base on node http://www.cloud9ide.com/
  • 39. NodeJS ...•••••
  • 40. Hello World
  • 41. NodeJS Modules
  • 42. Module Types
  • 43. Rendering HTML - nodejs-dom••
  • 44. Rendering HTML - nodejs-dom•••
  • 45. Want to see more?
  • 46. Demo••••••
  • 47. YUI3 for NodeJS http://github.com/yui/nodejs-yui3video http://www.yuiblog.com/blog/2010/09/29/video-glass-node/
  • 48. YUI3var YUI = require("yui3").YUI;YUI().use(*,function(Y){ Y.log(hello jayli!);});
  • 49. Links••••••