Your SlideShare is downloading. ×
Node
Node
Node
Node
Node
Node
Node
Node
Node
Node
Node
Node
Node
Node
Node
Node
Node
Node
Node
Node
Node
Node
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

3,521

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,521
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
5
Comments
0
Likes
1
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
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript

    • 1. Building for the real-time web with Node.js Timothy Strimple tstrimple@gmail.com @tstrimple
    • 2. What is the real-time web?
    • 3. Real-time web.The real-time web is a set of technologies and practices thatenable users to receive information as soon as it is published by itsauthors, rather than requiring that they or their software check asource periodically for updates.
    • 4. Examples of real-time websites• Twitter• Facebook• Google real-time analytics• Monitter.com• http://kaazing.me/• http://demo.kaazing.com/forex/
    • 5. What is node.js? • Node + Javascript • Node is the cross platformframework provides the non-blocking layer which which is the core of node.js. • Filesystem access • Networking • DNS • Etc...
    • 6. What is node?• Node is designed to be massively scalable.• Jason Hoffman (CTO & Founder Joyent): Goal is one CPU (core) and < 1 GB ram hosting10GB/s, 1 million end points
    • 7. Similar platforms • Similar to other event driven frameworks. • Python: Twisted • C: LibEvent • Ruby: EventMachine • Unlike these other frameworks, Node.js is not burdened by existing blocking libraries.
    • 8. Non-blocking.In node, non blocking means that any activity taking a long time tofinish, such as file access, network communication, and networkoperations, are requested and put aside until the results are readyto be returned ia a callback function.
    • 9. Why Javscript? • It’s FAST! (V8) • Lots of commercial support. • Microsoft vs. Google vs. Mozilla
    • 10. Why Javscript?• It flattens your stack • You have to use javascript anyway• First class functions! • Makes event driven programming very easy.
    • 11. Socket.IOMaking real-time communication easy.• Supported Communication Transports • WebSocket • Adobe Flash Socket • Ajax Long Polling • Ajax multi-part streaming • Forever iframe • JSONP Polling
    • 12. Socket.IOSupported Browsers• Desktop • Mobile • Internet Explorer 5.5+ • iPhone Safari • Safari 3+ • iPad Safari • Google Chrome 4+ • Android WebKit • Firefox 3+ • WebOs WebKit • Opera 10.61+
    • 13. Lets see some code!
    • 14. When to use node?• Web APIs • Json EVERYWHERE!• Streaming data • Real time encoding of data as it is being uploaded• Soft real-time applications • Versus Hard or Firm real-time
    • 15. When not to use node? • Simple CRUD web applications • CPU heavy applications
    • 16. Contact Information tstrimple@gmail.com @tstrimple

    ×