Collecting Photo Stream in Node.js on Heroku

4,440 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,440
On SlideShare
0
From Embeds
0
Number of Embeds
1,535
Actions
Shares
0
Downloads
14
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Collecting Photo Stream in Node.js on Heroku

  1. 1. Collecting Photo Stream in Node.js on Heroku @stomita (ja) @shinichitomita (en)
  2. 2. Who am I ?• CEO at Mashmatrix, Inc.• JavaScript Developer• Formerly (almost forgot) • Identity (OpenID/SAML/SSO) @stomita • JavaEE • Oracle• Ex-Salesforce.com (2006/12-2007/12)
  3. 3. Objective• Collect and store photos tweeted in the world• Add metadata to photos manually by crowd • Category ? (food/people/landscape) • Venue ? (foursquare)
  4. 4. Twitter Streaming APIhttps://dev.twitter.com/docs/streaming-api
  5. 5. Photo Stream• Set tracking keywords to filter tweets with photo uploading services URL • e.g. tracks=lockerz,plixi,tweetphoto,twitpic,yfrog, photozou,twitgoo,instagr• Extract photo URLs by pre-given rule • e.g. http://twitpic.com/7wiwlw => http://twitpic.com/show/thumb/7wiwlw
  6. 6. ArchitectureStreaming JSON
  7. 7. Twitter-Nodehttps://github.com/technoweenie/twitter-node
  8. 8. Visualization• Present photo stream to users in real-time• Not our primary goal, but just interesting• Don’t think, FEEL.
  9. 9. tweet-photo-stream http://tweet-photo-stream.herokuapp.com/https://github.com/stomita/tweet-photo-stream
  10. 10. socket.io• A Node.js library, enabling push messaging to browsers• Stream Transport Supported : • WebSocket/FlashSocket/XHR-Multipart/ XHR-polling/JSONP-polling• Used as fallback of SocketStream
  11. 11. ArchitectureStreaming socket.io
  12. 12. Similar Work - Twitcaps http://twitcaps.com/
  13. 13. Twitcaps - Not Real-time Delayed Streaming Ajax Polling
  14. 14. Issue• Heroku Node.js doesn’t support WebSocket yet (as of Dec 2011) • Fallbacks to XHR-polling • c.f. Joyent No.de SmartMachine
  15. 15. End

×